Simple Website - Selectors Flashcards
Type Selector
Also known as an “element selector” this CSS selector that isolates all the elements of a given type.
Descendent Selector
CSS selector that selects all the elements of a given type that are nested inside another type of element.
ID Selector
CSS selector that selects a single element based on its ID attribute.
Pseudo-Class
Dynamic selectors that change based on user interaction with the browser, such as hovering over a link, for example.
Class Selector
Selects any HTML element that contains a matching class attribute.
:nth-child(An+B)
The nth-child pseudo-class matches A(n)+B-1 siblings in the document tree. The A value that precedes n is required. By itself, this will match every “nth” element in a group. Both A and B must be integers.