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 1075468 of HTML element reference

  • Revision slug: Web/HTML/Element
  • Revision title: HTML element reference
  • Revision id: 1075468
  • Created:
  • Creator: slimsag
  • Is current revision? No
  • Comment

Revision Content

{{HTMLSidebar("Elements")}}

This page lists all the {{Glossary("HTML")}} {{Glossary("Element","elements")}}. They are grouped by function to help you find what you have in mind easily. Although this guide is written for those who are newer to coding, we intend it to be useful for anyone.

Basic elements

Basic elements are the backbone of any HTML document. You'll see these elements in the source code for all web pages, following the doctype declaration, which is on the first line of the page. The doctype specifies which version of (X)HTML that page is using. Elements comprising the contents of a Web page are placed between the opening {{HTMLElement("html")}} tag and the closing </html> tag. The {{HTMLElement("html")}} element is also known as the root element.

{{HTMLRefTable("HTML Root Element")}}

Document metadata

Metadata contains information about the page. This includes information about styles, scripts and data to help software ({{Glossary("search engine", "search engines")}}, {{Glossary("Browser","browsers")}}, etc.) use and render the page. Metadata for styles and scripts may be defined in the page or link to another file that has the information. 

{{HTMLRefTable("HTML Document Metadata")}}

Content sectioning

Content sectioning elements allow you to organize the document content into logical pieces. Use the sectioning elements to create a broad outline for your page content, including header and footer navigation, and heading elements to identify sections of content.   

{{HTMLRefTable("HTML Sections")}}

Text content

Use HTML text content elements to organize blocks or sections of content placed between the opening {{HTMLElement("body")}} and closing </body> tags. Important for {{Glossary("accessibility")}} and {{Glossary("SEO")}}, these elements identify the purpose or structure of that content.     

{{HTMLRefTable("HTML Grouping Content")}}

Inline text semantics

Use the HTML inline text semantic to define the meaning, structure, or style of a word, line, or any arbitrary piece of text.

{{HTMLRefTable("HTML Text-Level Semantics")}}

Image and multimedia

HTML supports various multimedia resources such as images, audio, and video.

{{HTMLRefTable("multimedia")}}

Embedded content

In addition to regular multimedia content, HTML can include a variety of other content, even if it's not always easy to interact with.

{{HTMLRefTable({"include":["HTML embedded content"], "exclude":["multimedia"]})}}

Scripting

In order to create dynamic content and Web applications, HTML supports the use of scripting languages, most prominently JavaScript. Certain elements support this capability.

{{HTMLRefTable("HTML Scripting")}}

Demarcating edits

These elements let you provide indications that specific parts of the text have been altered.

{{HTMLRefTable("HTML Edits")}}

Table content

The elements here are used to create and handle tabular data.

{{HTMLRefTable("HTML tabular data")}}

Forms

HTML provides a number of elements which can be used together to create forms which the user can fill out and submit to the Web site or application. There's a great deal of further information about this available in the HTML forms guide.

{{HTMLRefTable({"include": ["HTML forms"], "exclude":["Deprecated"]})}}

Interactive elements

HTML offers a selection of elements which help to create interactive user interface objects.

{{HTMLRefTable("HTML interactive elements")}}

Web Components

Web Components is an HTML-related technology which makes it possible to, essentially, create and use custom elements as if it were regular HTML. In addition, you can even create custom versions of standard HTML elements, as well.

Note: The elements for Web Components are are defined in the {{Glossary("W3C","World Wide Web Consortium")}} (W3C) Web Components collection of specifications rather than the HTML specification. In addition, the Web Components specification has not been finalized and is subject to change.

{{HTMLRefTable({"include":["Web Components"],"elements":["shadow"]})}}

Obsolete and deprecated elements

Warning: These are old HTML elements which are deprecated and should not be used. You should never use them in new projects, and should replace them in old projects as soon as you can. They are listed here for informational purposes only.

{{HTMLRefTable({"include":["Deprecated","Obsolete"]})}}

Revision Source

<div>{{HTMLSidebar("Elements")}}</div>

<p><span class="seoSummary">This page&nbsp;lists all the {{Glossary("HTML")}} {{Glossary("Element","elements")}}.</span> They are grouped by function to help you find what you have in mind easily. Although this guide is written for those who are newer to coding, we intend it to be useful&nbsp;for anyone.</p>

<h2 id="Basic_elements">Basic elements</h2>

<p>Basic elements are the backbone of any HTML document. You'll see these elements in the source code for all web pages, following the doctype declaration, which is on the first line of the page. The doctype specifies which version of (X)HTML that page is using. Elements comprising the contents of a Web page are placed between the opening {{HTMLElement("html")}} tag and the closing <code>&lt;/html&gt;</code> tag. The {{HTMLElement("html")}} element is also known as the root element.</p>

<p>{{HTMLRefTable("HTML Root Element")}}</p>

<h2 id="Document_metadata">Document metadata</h2>

<p>Metadata contains information about the page. This includes information about styles, scripts and data to help software ({{Glossary("search engine", "search engines")}}, {{Glossary("Browser","browsers")}}, etc.) use and render the page. Metadata for styles and scripts may be defined in the page or link to another file that has the information.&nbsp;</p>

<p>{{HTMLRefTable("HTML Document Metadata")}}</p>

<h2 id="Content_sectioning">Content sectioning</h2>

<p>Content sectioning elements allow you to organize the document content into logical pieces. Use the sectioning elements to create a broad outline for your page content, including header and footer navigation, and heading elements to identify sections of content.&nbsp; &nbsp;</p>

<p>{{HTMLRefTable("HTML Sections")}}</p>

<h2 id="Text_content">Text content</h2>

<p>Use HTML text content elements to organize blocks or sections of content placed between the opening {{HTMLElement("body")}} and closing <code>&lt;/body&gt;</code> tags. Important for {{Glossary("accessibility")}} and {{Glossary("SEO")}}, these elements identify the purpose or structure of that content.&nbsp; &nbsp;&nbsp;&nbsp;</p>

<p>{{HTMLRefTable("HTML Grouping Content")}}</p>

<h2 id="Inline_text_semantics">Inline text semantics</h2>

<p>Use the HTML inline text semantic to define the meaning, structure, or style of a word, line, or any arbitrary piece of text.</p>

<p>{{HTMLRefTable("HTML Text-Level Semantics")}}</p>

<h2 id="Image_and_multimedia">Image and multimedia</h2>

<p>HTML supports various multimedia resources such as images, audio, and video.</p>

<p>{{HTMLRefTable("multimedia")}}</p>

<h2 id="Embedded_content">Embedded content</h2>

<p>In addition to regular multimedia content, HTML can include a variety of other content, even if it's not always easy to interact with.</p>

<p>{{HTMLRefTable({"include":["HTML embedded content"], "exclude":["multimedia"]})}}</p>

<h2 id="Scripting">Scripting</h2>

<p>In order to create dynamic content and Web applications, HTML supports the use of scripting languages, most prominently JavaScript. Certain elements support this capability.</p>

<p>{{HTMLRefTable("HTML Scripting")}}</p>

<h2 id="Demarcating_edits">Demarcating edits</h2>

<p>These elements let you provide indications that specific parts of the text have been altered.</p>

<p>{{HTMLRefTable("HTML Edits")}}</p>

<h2 id="Table_content">Table content</h2>

<p>The elements here are used to create and handle tabular data.</p>

<p>{{HTMLRefTable("HTML tabular data")}}</p>

<h2 id="Forms">Forms</h2>

<p>HTML provides a number of elements which can be used together to create forms which the user can fill out and submit to the Web site or application. There's a great deal of further information about this available in the <a href="/en-US/docs/Web/Guide/HTML/Forms">HTML forms guide</a>.</p>

<p>{{HTMLRefTable({"include": ["HTML forms"], "exclude":["Deprecated"]})}}</p>

<h2 id="Interactive_elements">Interactive elements</h2>

<p>HTML offers a selection of elements which help to create interactive user interface objects.</p>

<p>{{HTMLRefTable("HTML interactive elements")}}</p>

<h2 id="Web_Components">Web Components</h2>

<p>Web Components is an HTML-related technology which makes it possible to, essentially, create and use custom elements as if it were regular HTML. In addition, you can even create custom versions of standard HTML elements, as well.</p>

<div class="note"><strong>Note: </strong>The elements for Web Components are are defined in the {{Glossary("W3C","World Wide Web Consortium")}} (W3C)&nbsp;<a href="https://www.w3.org/TR/components-intro/">Web Components collection of specifications</a>&nbsp;rather than the HTML specification. In addition, the Web Components specification has not been finalized and is subject to change.</div>

<p>{{HTMLRefTable({"include":["Web Components"],"elements":["shadow"]})}}</p>

<h2 id="Obsolete_and_deprecated_elements">Obsolete and deprecated elements</h2>

<div class="warning">
<p><strong>Warning:</strong> These are old HTML elements which are deprecated and should not be used.&nbsp;<strong>You should never use them in new projects, and should replace them in old projects as soon as you can.</strong>&nbsp;They are listed here for informational purposes only.</p>
</div>

<p>{{HTMLRefTable({"include":["Deprecated","Obsolete"]})}}</p>
Revert to this revision