HTML element

One building block of a web page, such as a paragraph, a button or a section, made of a start tag, its content and an end tag.

In more detail

In the DOM, each element becomes an Element node with properties such as tagName, attributes and children, and methods such as querySelector and closest. Elements are one kind of node; text and comments are nodes too but not elements.

Related terms

Taught in

References