HTML Element

An HTML element is a single building block of a web page, usually made of an opening tag, content, and a closing tag — for example <p>Hello</p>. Elements describe the meaning and structure of content.

Web

Most elements wrap content between a start tag and an end tag. A few, called void or empty elements (like <img> and <br>), have no content and no closing tag.

Elements can be nested inside one another to build the structure of a page, forming a tree the browser turns into the DOM.

Examples

HTML

<p>This whole thing is a paragraph element.</p>

Output:

Renders the text 'This whole thing is a paragraph element.' as a paragraph.

Learn it in a lesson

See also

Back to the Dictionary