Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Instruction
Attribute Selectors
HTML elements can accept various types of attributes. For example an id
attribute, a class
attribute, or href
and title
attributes.
<div id="main-content" class="box" title="Tooltip">
...
</div>
CSS provides a way to target an element based on its attributes and values, with attribute selectors. To target an attribute, you define the attribute name inside square b...