Selectors
- Selects all elements Try it
- Selects the current HTML element Try it
- Selects all <p> elements with class=”intro” Try it
- Selects the first <p> element Try it
- Selects the first <li> element of the first <ul> Try it
- Selects the first <li> element of every <ul> Try it
- Selects all elements with an href attribute Try it
- Selects all
<a>
elements with a target attribute value equal to “_blank” Try it
- Selects all
<a>
elements with a target attribute value NOT equal to “_blank” Try it
- Selects all
<button>
elements and <input>
elements of type=”button” Try it
- Selects all even
<tr>
elements Try it
- Selects all odd
<tr>
elements Try it