The following contains a complete list of standard tags belonging to the latest HTML5 and XHTML 1.1 specifications.
5-15 Minutes to read
All Tags
This section lists every tag of the HTML5 standard in one single table. All other sections on this page show the same tags again, but sorted by the job they do. If you already know the name of a tag and only want to look up what it stands for, this table is the fastest place to search.
The table below contains a list of HTML5 elements alphabetically along with a brief description.
Legend:
Can be used with all HTML versions
Obsolete, should be replaced
New in version V5
| The Info column tells you whether a tag is still fine to use. A tag marked with still works in most browsers, but it is no longer part of the standard. Replace it, mostly by a CSS rule or by a newer tag. Tags marked with came with HTML5 and are not available in older HTML versions. |
| Tag | Info | Description | ||
|---|---|---|---|---|
|
| Not a tag in the usual sense, but the very first line of every page. It tells the browser which HTML version the page is written in. For HTML5 the short form | ||
|
| Specifies a hyperlink. | ||
|
| Specifies an abbreviated form of a longer word or phrase. | ||
|
| Specifies an acronym. Use | ||
|
| Specifies the author’s contact information. | ||
|
| Embeds a Java applet (mini Java applications) on the page. Use | ||
|
| Specifies a specific area within an image map. | ||
|
| Specifies an article: a block of content that makes sense on its own, for example a blog post, a news story or a user comment. | ||
|
| Specifies some content loosely related to the page content. The | ||
|
| Embeds a sound, or an audio stream in an HTML document. | ||
|
| Displays text in a bold style. Use | ||
|
| Specifies the base URL for all relative URLs in a document. | ||
|
| Specifies the base font for a page. Use CSS instead. | ||
|
| Marks a piece of text that may run in another writing direction than the text around it, from right to left for example. A typical use case is a user name inside a sentence. | ||
|
| Overrides the current text direction. | ||
|
| Displays text in a large size. Use CSS instead. | ||
|
| Defines a section that is quoted from another source. | ||
|
| Specifies the document’s body. | ||
|
| Produces a single line break. | ||
|
| Creates a clickable button. | ||
|
| Specifies a region in the document, which can be used to draw graphics on the fly via scripting (usually JavaScript). | ||
|
| Specifies the caption or title of the table. | ||
|
| Align contents in the center. Use CSS instead. | ||
|
| Indicates a citation or reference to another source. | ||
|
| Specifies text as computer code. | ||
|
| Specifies attribute values for one or more columns in a table. | ||
|
| Specifies attributes for multiple columns in a table. | ||
|
| Connects a piece of visible text with a value a machine can read, given by the | ||
|
| Defines a set of pre-defined options for an | ||
|
| Specifies a description, or value for the term | ||
|
| Defines text that has been deleted from the document. | ||
|
| The | ||
|
| Specifies a definition. | ||
|
| The | ||
|
| Specifies a directory list. Use | ||
|
| Specifies a division or a section in a document. | ||
|
| Specifies a description list. | ||
|
| Specifies a term (an item) in a description list. | ||
|
| Specifies emphasized text. | ||
|
| Embeds an external application into an HTML document, typically media content like audio or video.
| ||
|
| Specifies a set of related form fields. | ||
|
| Specifies a caption or legend for a figure. | ||
|
| Defines a figure illustrated as part of the document. | ||
|
| Specifies font, color, and size for text. Use CSS instead. | ||
|
| Defines the footer of a document or a section. | ||
|
| Specifies an HTML form for user input. | ||
|
| Specifies a single frame within a frameset. | ||
|
| Specifies a collection of frames or other framesets. Frames are no longer part of HTML5. Use | ||
|
| Specifies the head portion of the document that contains information about the document such as title. | ||
|
| Defines the header of a document or a section. | ||
|
| Groups a heading together with the text that belongs to it, a title and its subtitle for example.
| ||
|
| Specifies HTML headings.
| ||
|
| Produces a horizontal line. | ||
|
| The | ||
|
| Displays text in an italic style. Use | ||
|
| Displays a URL in an inline frame. | ||
|
| Defines an image. | ||
|
| Specifies an input control. | ||
|
| Specifies a block of text that has been inserted into a document. | ||
|
| Specifies text as keyboard input. | ||
|
| Defines a form control for generating a public-private key pair. The tag came with HTML5, but has been taken out of the standard again. No current browser supports it, so it should not be used. | ||
|
| Specifies a label for an | ||
|
| Specifies a caption for a | ||
|
| Specifies a list item. | ||
|
| Specifies the relationship between the current document and an external resource. | ||
|
| Defines the main or dominant content of the document. | ||
|
| Specifies a client-side image-map. An image map is a list of coordinates relating to a specific image, created in order to hyperlink areas of the image to various destinations as opposed to a normal image link, in which the entire area of the image links to a single destination.
| ||
|
| Defines text highlighted for reference purposes. | ||
|
| Embeds a mathematical formula, written in MathML, into an HTML document. Like | ||
|
| Defines a list of commands, a toolbar for example.
| ||
|
| Was meant to specify a single command inside a | ||
|
| Provides structured metadata about the document content. | ||
|
| Defines a scalar measurement within a known range, or a fractional value. This is also known as a gauge. | ||
|
| Specifies a section of navigation links. | ||
|
| Specifies an alternate content that displays in browsers that do not support frames. | ||
|
| Specifies alternative content to display when the browser doesn’t support scripting. | ||
|
| Specifies an embedded object. | ||
|
| Specifies an ordered list. | ||
|
| Specifies a group of related options in a selection list. | ||
|
| Specifies an option in a selection list. | ||
|
| Defines the result of a calculation. | ||
|
| Specifies a paragraph. | ||
|
| Specifies a parameter for an | ||
|
| Specifies a container for multiple image sources. | ||
|
| Specifies a block of preformatted text. | ||
|
| Defines the completion progress of a task. | ||
|
| Specifies a short inline quotation. | ||
|
| Marks the base text of a ruby annotation. The tag is deprecated. Write the base text directly inside | ||
|
| Provides fall-back parentheses for browsers that don’t support ruby annotations. Those browsers show the pronunciation in brackets instead. | ||
|
| Specifies the pronunciation of the characters shown in a ruby annotation. | ||
|
| Groups a second set of ruby annotations, a translation for example. The tag is deprecated. Use | ||
|
| Defines a ruby annotation: small text placed above or beside characters to show how they are pronounced. It is mainly used for East Asian scripts. | ||
|
| Defines contents that are no longer accurate or no longer relevant. | ||
|
| Specifies text as sample output from a computer program. | ||
|
| Places script in the document for client-side processing. | ||
|
| Marks the part of a page that holds search or filter controls, a search form for example. The tag was added to HTML in 2023. | ||
|
| Specifies a section of a document, such as header, footer etc. | ||
|
| Specifies a selection list within a form. | ||
|
| A placeholder inside a web component (a custom element). Content written between the tags of the component is shown at the position of the matching slot. | ||
|
| Displays text in a smaller size. | ||
|
| Defines alternative media resources for the media elements like | ||
|
| Specifies an inline section in a document. | ||
|
| Displays text in strikethrough style. Should be replaced by CSS styles. | ||
|
| Indicates strongly emphasized text. | ||
|
| Inserts CSS style information into the head of a document. | ||
|
| Specifies subscripted text. | ||
|
| Specifies a summary for a | ||
|
| Specifies superscripted text. | ||
|
| Embeds SVG (Scalable Vector Graphics) content in an HTML document. | ||
|
| Specifies a data table. | ||
|
| Groups a set of rows defining the main body of the table data. | ||
|
| Specifies a cell in a table. | ||
|
| Specifies the fragments of HTML that should be hidden when the page is loaded, but can be cloned and inserted in the document by JavaScript. | ||
|
| Specifies a multi-line text input element. | ||
|
| Groups a set of rows summarizing the columns of the table. | ||
|
| Specifies a header cell in a table. | ||
|
| Groups a set of rows that describes the column labels of a table. | ||
|
| Defines a time and/or date. | ||
|
| Specifies a title for the document. | ||
|
| Specifies a row of cells in a table. | ||
|
| Specifies text tracks for the media elements like | ||
|
| Displays text in a teletype style. Should be replaced by CSS styles. | ||
|
| Displays text with an underline. | ||
|
| Specifies an unordered list. | ||
|
| Specifies a variable. The | ||
|
| Embeds video content in an HTML document. | ||
|
| Defines a line break opportunity. |
Structural Tags
Structural tags build the skeleton of a page. They mark the large building blocks: the document itself, its head and body, the header and the footer, the navigation, the main content area and the single sections and paragraphs inside it. Most of these tags say nothing about the look of a page. They tell the browser, search engines and screen readers what a part of the page is. How a block is displayed is decided by CSS.
Legend:
Can be used with all HTML versions
Obsolete, should be replaced
New in version V5
| The Info column tells you whether a tag is still fine to use. A tag marked with still works in most browsers, but it is no longer part of the standard. Replace it, mostly by a CSS rule or by a newer tag. Tags marked with came with HTML5 and are not available in older HTML versions. |
| Tag | Info | Description |
|---|---|---|
|
| Specifies a hyperlink. |
|
| Specifies an article: a block of content that makes sense on its own, for example a blog post, a news story or a user comment. |
|
| Specifies some content loosely related to the page content. |
|
| Specifies the document’s body. |
|
| Produces a single line break. |
|
| Defines a widget from which the user can obtain additional information or controls on-demand. |
|
| Specifies a division or a section in a document. |
|
| Specifies the head portion of the document that contains information about the document. |
|
| Defines the header of a document or a section. |
|
| Groups a heading together with the text that belongs to it, a title and its subtitle for example. |
|
| Specifies HTML headings. |
|
| Produces a horizontal line. |
|
| Specifies the root of an HTML document. |
|
| Defines the footer of a document or a section. |
|
| Defines the main or dominant content of the document. |
|
| Specifies a section of navigation links. |
|
| Specifies a paragraph. |
|
| Marks the part of a page that holds search or filter controls, a search form for example. The tag was added to HTML in 2023. |
|
| Specifies a section of a document, such as header, footer etc. |
|
| Specifies an inline section in a document. It adds no meaning of its own and is mostly used to attach a CSS class to a piece of text. |
|
| Specifies a summary for the |
Metadata Tags
Metadata tags carry information about the page instead of content the visitor reads. They are placed in the <head> section of the document. Typical jobs are the page title shown in the browser tab, a short description for search engines, the link to a stylesheet and the character set the page uses. Except for the title, a visitor never sees these tags.
Legend:
Can be used with all HTML versions
Obsolete, should be replaced
New in version V5
| The Info column tells you whether a tag is still fine to use. A tag marked with still works in most browsers, but it is no longer part of the standard. Replace it, mostly by a CSS rule or by a newer tag. Tags marked with came with HTML5 and are not available in older HTML versions. |
| Tag | Info | Description |
|---|---|---|
|
| Not a tag in the usual sense, but the very first line of every page. It tells the browser which HTML version the page is written in. For HTML5 the short form |
|
| Specifies the base URL for all relative URLs in a document. |
|
| Specifies the base font for a page. Use CSS instead. |
|
| Specifies the relationship between the current document and an external resource. |
|
| Provides structured metadata about the document content. |
|
| Inserts style information (commonly CSS) into the head of a document. |
|
| Specifies a title for the document. |
Form Tags
Form tags collect input from a visitor and send it to a server. A form is built from a <form> container plus the single controls inside it: text fields, checkboxes, selection lists, buttons and the labels that explain them. Fields that belong together can be grouped with <fieldset> and <legend>, which keeps longer forms readable.
Legend:
Can be used with all HTML versions
Obsolete, should be replaced
New in version V5
| The Info column tells you whether a tag is still fine to use. A tag marked with still works in most browsers, but it is no longer part of the standard. Replace it, mostly by a CSS rule or by a newer tag. Tags marked with came with HTML5 and are not available in older HTML versions. |
| Tag | Info | Description |
|---|---|---|
|
| Creates a clickable button. |
|
| Defines a set of pre-defined options for an |
|
| The |
|
| Specifies a set of related form fields. |
|
| Specifies an HTML form for user input. |
|
| Specifies an input control. |
|
| Defines a form control for generating a public-private key pair. The tag came with HTML5, but has been taken out of the standard again. No current browser supports it, so it should not be used. |
|
| Specifies a label for an |
|
| Specifies a caption for a |
|
| Defines a scalar measurement within a known range, or a fractional value. This is also known as a gauge. |
|
| Specifies a group of related options in a selection list. |
|
| Specifies an option in a selection list. |
|
| Specifies a selection list within a form. |
|
| Specifies a multi-line text input control (text area). |
Formatting Tags
Formatting tags work on single words or on short pieces of text inside a paragraph. They mark text as important, as a quotation, as source code, as a key on the keyboard, as inserted or deleted, or as superscript and subscript. Whenever possible, pick a tag that describes the meaning of the text, like <strong> or <em>. Tags that only change the look, like <font> or <center>, are obsolete. Use CSS for pure styling.
Legend:
Can be used with all HTML versions
Obsolete, should be replaced
New in version V5
| The Info column tells you whether a tag is still fine to use. A tag marked with still works in most browsers, but it is no longer part of the standard. Replace it, mostly by a CSS rule or by a newer tag. Tags marked with came with HTML5 and are not available in older HTML versions. |
| Tag | Info | Description | ||
|---|---|---|---|---|
|
| Specifies an abbreviated form of a longer word or phrase. | ||
|
| Specifies an acronym. Use | ||
|
| Specifies the author’s contact information. | ||
|
| Displays text in a bold style. Use | ||
|
| Marks a piece of text that may run in another writing direction than the text around it, from right to left for example. A typical use case is a user name inside a sentence. | ||
|
| Overrides the current text direction. | ||
|
| Displays text in a large size.
| ||
|
| Defines a section that is quoted from another source. | ||
|
| Align contents in the center. Use CSS instead. | ||
|
| Indicates a citation or reference to another source. | ||
|
| Specifies text as computer code. | ||
|
| Connects a piece of visible text with a value a machine can read, given by the | ||
|
| Defines text that has been deleted from the document. | ||
|
| Specifies a definition. | ||
|
| Specifies emphasized text. | ||
|
| Specifies font, color, and size for text.
| ||
|
| Displays text in an italic style. Use | ||
|
| Specifies a block of text that has been inserted into a document. | ||
|
| Specifies text as keyboard input. | ||
|
| Defines text highlighted for reference purposes. | ||
|
| Defines the result of a calculation. | ||
|
| Specifies a block of preformatted text. | ||
|
| Defines the completion progress of a task. | ||
|
| Specifies a short inline quotation. | ||
|
| Marks the base text of a ruby annotation. The tag is deprecated. Write the base text directly inside | ||
|
| Provides fall-back parentheses for browsers that don’t support ruby annotations. Those browsers show the pronunciation in brackets instead. | ||
|
| Specifies the pronunciation of the characters shown in a ruby annotation. | ||
|
| Groups a second set of ruby annotations, a translation for example. The tag is deprecated. Use | ||
|
| Defines a ruby annotation: small text placed above or beside characters to show how they are pronounced. It is mainly used for East Asian scripts. | ||
|
| Defines contents that are no longer accurate or no longer relevant. | ||
|
| Specifies text as sample output from a computer program. | ||
|
| Displays text in a smaller size. | ||
|
| Displays text in strikethrough style. Use | ||
|
| Indicates strongly emphasized text. | ||
|
| Specifies subscripted text. | ||
|
| Specifies superscripted text. | ||
|
| Displays text in a teletype style. Use | ||
|
| Displays text with an underline. | ||
|
| Specifies a variable. | ||
|
| Defines a line break opportunity. |
List Tags
List tags put items into a list. HTML knows three kinds of list: an unordered list <ul> with bullets, an ordered list <ol> with numbers, and a description list <dl> that pairs a term <dt> with its explanation <dd>. Every entry of an unordered or an ordered list is written as an <li> item. Lists can be nested by placing a complete new list inside an <li> item.
Legend:
Can be used with all HTML versions
Obsolete, should be replaced
New in version V5
| The Info column tells you whether a tag is still fine to use. A tag marked with still works in most browsers, but it is no longer part of the standard. Replace it, mostly by a CSS rule or by a newer tag. Tags marked with came with HTML5 and are not available in older HTML versions. |
| Tag | Info | Description |
|---|---|---|
|
| Specifies a description, or value for the term |
|
| Specifies a directory list. Use |
|
| Specifies a description list. |
|
| Specifies a term (an item) in a description list. |
|
| Specifies a list item. |
|
| Specifies an ordered list. |
|
| Defines a list of commands, a toolbar for example. |
|
| Was meant to specify a single command inside a |
|
| Specifies an unordered list. |
Table Tags
Table tags display data in rows and columns, a price list or a timetable for example. A table is built row by row: <tr> starts a row, <th> marks a heading cell and <td> a normal data cell. Bigger tables can be split into a head, a body and a foot group, which helps the browser to repeat the headings when a long table is printed. Do not use tables to arrange the layout of a page. That is the job of CSS.
Legend:
Can be used with all HTML versions
Obsolete, should be replaced
New in version V5
| The Info column tells you whether a tag is still fine to use. A tag marked with still works in most browsers, but it is no longer part of the standard. Replace it, mostly by a CSS rule or by a newer tag. Tags marked with came with HTML5 and are not available in older HTML versions. |
| Tag | Info | Description |
|---|---|---|
|
| Specifies the caption or title of the table. |
|
| Specifies attribute values for one or more columns in a table. |
|
| Specifies attributes for multiple columns in a table. |
|
| Specifies a data table. |
|
| Groups a set of rows defining the main body of the table data. |
|
| Specifies a cell in a table. |
|
| Groups a set of rows summarizing the columns of the table. |
|
| Groups a set of rows that describes the column labels of a table. |
|
| Specifies a header cell in a table. |
|
| Specifies a row of cells in a table. |
Scripting Tags
Scripting tags bring JavaScript into a page and prepare content for it. The <script> tag either contains the program code or loads it from a file, and <noscript> offers a fallback text for visitors whose browser runs no scripts. <template> and <slot> hold markup that stays hidden until a script copies it into the page.
Legend:
Can be used with all HTML versions
Obsolete, should be replaced
New in version V5
| The Info column tells you whether a tag is still fine to use. A tag marked with still works in most browsers, but it is no longer part of the standard. Replace it, mostly by a CSS rule or by a newer tag. Tags marked with came with HTML5 and are not available in older HTML versions. |
| Tag | Info | Description |
|---|---|---|
|
| Specifies alternative content to display when the browser doesn’t support scripting. |
|
| Places script in the document for client-side processing. |
|
| A placeholder inside a web component (a custom element). Content written between the tags of the component is shown at the position of the matching slot. |
|
| Specifies the fragments of HTML that should be hidden when the page is loaded, but can be cloned and inserted in the document by JavaScript. |
Embedded Content Tags
Embedded content tags pull material from outside into the page: images, audio, video, vector graphics, mathematical formulas and even complete web pages shown in a frame. Most of these tags name the file they load in a src attribute. Always add the short text alternative a tag offers, the alt attribute of <img> for example. Visitors who cannot see the file then still learn what it shows.
Legend:
Can be used with all HTML versions
Obsolete, should be replaced
New in version V5
| The Info column tells you whether a tag is still fine to use. A tag marked with still works in most browsers, but it is no longer part of the standard. Replace it, mostly by a CSS rule or by a newer tag. Tags marked with came with HTML5 and are not available in older HTML versions. |
| Tag | Info | Description | ||
|---|---|---|---|---|
|
| Embeds a Java applet (mini Java applications) on the page.
| ||
|
| Specifies a specific area within an image map. | ||
|
| Embeds a sound, or an audio stream in an HTML document. | ||
|
| Specifies a region in the document, which can be used to draw graphics on the fly via scripting (usually JavaScript). | ||
|
| Embeds external application, typically multimedia content like audio or video into an HTML document. | ||
|
| Defines a caption or legend for a figure. | ||
|
| Defines a figure illustrated as part of the document. | ||
|
| Specifies a single frame within a frameset. Frames are no longer part of HTML5. Use | ||
|
| Specifies a collection of frames or other framesets. Frames are no longer part of HTML5. Use | ||
|
| Displays a URL in an inline frame. | ||
|
| Defines an image. | ||
|
| Specifies a client-side image-map. | ||
|
| Embeds a mathematical formula, written in MathML, into an HTML document. Like | ||
|
| Specifies an alternate content that displays in browsers that do not support frames. | ||
|
| Specifies an embedded object. | ||
|
| Specifies a parameter for an | ||
|
| Specifies a container for multiple image sources. | ||
|
| Defines alternative media resources for the media elements like | ||
|
| Embeds SVG (Scalable Vector Graphics) content in an HTML document. | ||
|
| Defines a time and/or date. | ||
|
| Specifies text tracks for the media elements like | ||
|
| Embeds video content in an HTML document. |