Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 710917 of Element

  • Revision slug: Glossary/Element
  • Revision title: Element
  • Revision id: 710917
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

An element is a part of a Web page or document. In XML and HTML, an element might contain a data item or a piece of a Web page such as a chunk of text or an image. A typical element includes an opening tag, attributes, content and a closing tag.

Element and tag are often used interchangeably though they are different: the tags (opening and closing) is the way to delineate an element in the source; the element is a part of the {{Glossary("DOM")}}, the model of the document used to display the page in the browser.

See also

Revision Source

<p>An <strong>element</strong> is a part of a Web page or document. In <a class="glossaryLink" href="https://developer.mozilla.org/en-US/docs/Glossary/XML" title="XML: XML stands for Extensible Markup Language. It is different and in some ways better than HTML which stands for HyperText Markup Language.">XML</a> and <a class="glossaryLink" href="https://developer.mozilla.org/en-US/docs/Glossary/HTML" title="HTML: The HyperText Markup Language (HTML) is a descriptive language specifically designed to structure web pages.">HTML</a>, an element might contain a data item or a piece of a Web page such as a chunk of text or an image. A typical element includes an opening tag, attributes, content and a closing tag.</p>
<p>Element and tag are often used interchangeably though they are different: the tags (opening and closing) is the way to delineate an element in the source; the element is a part of the {{Glossary("DOM")}}, the model of the document used to display the page in the browser.</p>
<h2>See also</h2>
<ul>
 <li>The {{domxref("Element")}} interface, representing an element in the DOM.</li>
 <li><a href="/en-US/docs/Web/Guide/HTML/Element">More details about elements.</a></li>
</ul>
Revert to this revision