Page 116 - Learn To Use HTML and CSS
P. 116
So You Want to Learn to Use HTML and CSS – Version 2020-06-12a Page 106
Chapter 10 — More CSS Selectors to Give Your Style Sheet Surgical Precision
width: 10em;
Free
}
/* put a bold border around required fields */
*[required] {
border: 5px groove black;
}
eBook
option[value="R"] {
color: red;
}
option[value="O"] {
} color: orange;
Edition
Please support this work at
http://syw2l.org
Free
Illustration 33: Attribute Selector
Pseudo-classes
eBook
120
Pseudo means false. These special selectors are typically added to the end of a simple selector
121
(class, id, tag, or universal) to create special behavior. As an example, we can change the style
of an element based on whether the mouse pointer is hovering over an element.
Edition
120 http://dictionary.reference.com/browse/pseudo
121 https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes
Copyright 2020 — James M. Reneau PhD — http://www.syw2l.org — This work is
licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

