click below
click below
Normal Size Small Size show me how
6.7.2026
javascript
| Question | Answer |
|---|---|
| querySelector() | Returns the first element that matches a given CSS selector |
| querySelectorAll() | Returns all elements that match a given CSS selector |
| parentElement | Returns the parent element for a node |
| parentNode | Returns the parent node for a node |
| previousElement Sibling | Returns the previous sibling element for a node |
| previousSibling | returns the previous sibling node for a node |
| nextElementSibling | Returns the next sibling element for a node |
| nextSibling | Returns the next sibling node for a node |
| firstElementChild | Returns the first child element for a node |
| firstChild | Returns the first child node for a node |
| lastElementChild | Returns the last child element for a node |
| lastChild | Returns the last child node for a node |
| childNodes | Returns all child nodes for a node |
| children | Returns all child elements for a node |