March 2018
Beginner to intermediate
514 pages
13h 11m
English
The attribute selector works in conjunction with the previous selectors, but one goes one level deeper and queries the element for a specified attribute:
a[href="https://packt.org"] { color: green; }
The preceding example will select all links on the web page and color them in green if they are redirecting the user to the https://www.packtpub.com/ website.
Read now
Unlock full access