Selectors can be combined in a single selector. One can write a selector that combines a class selector and an attribute selector.
strong.error { color: red; } One can be more specific by prefixing a class selector (or ID selector) with element name to target. In this case, the selector chooses the strong elements with the error class rather than every element with the error class.
The wildcard, * (asterisk), matches any element name in your code. For example,
* { border: 2px solid green; }
gives every element a two-pixel, green, solid border!
Examples and codes are given in an external file which I downloaded into C:\Program Files (x86)\Ampps\www\!HTML_Prac\Misc\Castro\Code Examples\htmlcss-vqs8-code-examples-v2.zip
However, clicking on this link will download this file into the C:\Users\Owner\Downloads\ folder.
ECLoc6965 discusses links based on their state.
Each of these contain a color specification.
One may also apply :active and :hover pseudo-classes to other elements, such as p:hover
p:hover { color: red; } like the next paragraph.
Hello everybody in the whole world!
For some reason, the spanned 'whole world!'did turn to green only when the closing bracket for span was not adjacent to the closing bracket of p.
I stopped at ECLoc6543 P207