Glossary · Beginner

HTML element

An HTML element represents structure or meaning in a document and is identified by its tag name and permitted content.

Editorial preview — publication review is still required.

Author
Editorial team
Reviewer
Publication review pending
Review tier
annual

Definition

An HTML element is a document component such as a heading, paragraph, link, or form control. Tags identify most elements in source, while the element is the node the browser creates from that source.

Why it matters

Choosing an element by meaning gives browsers and assistive technology more information than choosing it by appearance. CSS can change presentation without changing that purpose.

Example

<p>A paragraph is an element.</p>