top of page
css selector
Use CSS selectors to find elements based on CSS properties:
Selector | Example | Example description | my id |
---|---|---|---|
#id | #input_comp-lkw89ak82 | Selects the element with id="firstname" | 1 |
.class | .KeFFnk | Selects all elements with class="intro" | 2 |
[attribute=value] | [type="checkbox"] | Selects all elements with the attribute name-value pair
type="checkbox" | 3 |
element | select | Selects all <select> elements | 4 |
.class1 | .name1 .name2 | Selects all elements with name2 that is a descendant of an element with name1 | 5 |
.class1 | .name1 .name2 | Selects all elements with name2 that is a descendant of an element with name1 | 6 |
test | tes | test | 7 |
8 | test | test | 8 |
bottom of page