Element
Anelement is a part of a webpage. InXML andHTML, an element may contain a data item or a chunk of text or an image, or perhaps nothing. A typical element includes an opening tag with someattributes, enclosed text content, and a closing tag.

Elements andtags arenot the same things. Tags begin or end an element in source code, whereas elements are part of theDOM, the document model for displaying the page in thebrowser.
In this article
See also
- Basic HTML Syntax
- Defining custom elements
- The
Elementinterface, representing an element in the DOM.