

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Select elements of that type
Select elements with that class
Select elements with that id Select elements with the i id *It is best practice to not use ids in CSS
Select elements that are descendants of the first element Select anchors that are inside a div
Select elements that are direct children of the first element Select anchors that are direct children of a div
Selector
Select elements that are siblings of the first element and come after the first element Selects all anchors that are siblings of a div and come after the div
Selector
Select elements that are siblings of the first element and come directly after the first element Selects all anchors that are siblings of a div and come directly after the div
Select elements that match any selector in the list Selects all anchors and all divs
Select elements that match all the selector combinations Selects all divs with the class c
Attribute
Select elements that have that attribute Select elements with the a attribute
Select elements that have that attribute with exactly that value Select elements with the a attribute with a value of 1
Select elements that have that attribute which start with that value Select elements with the a attribute with a value that starts with 1
Select elements that have that attribute which end with that value Select elements with the a attribute with a value that ends with 1
Select elements that have that attribute which contain that value anywhere Select elements with the a attribute with a value that contains a 1
Pseudo Element
Creates an empty element directly before the children of selected element
Creates an empty element directly after the children of selected element
Pseudo Class State
Select elements that are hovered by the mouse Select buttons that are being hovered
Select elements that are focused. Select buttons that are being focused *Focus is set by either tabbing to an element or clicking an element such as a button or anchor tag
Select inputs that are required Select inputs with the required attribute
Select checkboxes/radio buttons that are checked Select inputs that are checked
Select inputs that are disabled Select inputs with the disabled attribute