Prefixed by a colon :, they are a different way to target elements that
already exist.
They have the same specificity as classes of 0,0,1,0.
Example:
button:hover {
color: blue;
}
:focus:hover:active element being clicked:link unvisited link:visited visited link:root represent top level of document, where global css rule aare apply.:first-child :last-child:empty match elements with no child:nth-child() flexible class with different uses, see example below:.myList:nth-child(5) {/* Selects 5th element with .myList */}
.myList:nth-child(3n) { /* Selects every 3rd element with .myList */}
.myList:nth-child(3n + 3) { /* Selects every 3rd element with class myList, beginning with the 3rd */}
.myList:nth-child(even) {/* Selects every even element with class myList */}