If you find this helpful, please click the Google Button to the left, if it is white, to make it turn blue or red. Thank you! (It also helps find this page again more easily.) |
HTML Tutorial - HTML Tag List
HTML 5 Declarations, Elements (HTML Tags) and Attributes
See the HTML Cheat Sheet for a handy reference for coding HTML tags and attributes.
Tags in HTML Grouped by Function
- Declarations and Structure Tags in HTML 5
- Sectioning Tags in HTML 5
- Heading and Footer Tags in HTML
- Content Grouping Tags in HTML
- Link Tags in HTML
- Semantic Phrase Elements in HTML
- Style Tags in HTML
- Formatting Tags in HTML
- Change Tracking Tags in HTML
- List Tags in HTML
- Table Tags in HTML
- Form Tags in HTML
- Embedded Content Tags in HTML 5
- Metadata Tags in HTML
- Interactive Content Tags in HTML 5
- Scripting Tags in HTML
HTML Tags By Category
A category indicates where an HTML tag can be used. The category assignments are not mutually exclusive. For example, all Embedded Content tags are also included in the Phrasing Content category and all Phrasing Content tags are also included in the Flow Content category.
- Embedded content tags can be used where embedded content is expected, where phrasing content is expected and where flow content is expected
- Phrasing content tags can be used where phrasing content is expected and where flow content is expected
- Flow content tags can only be used where flow content is expected
- HTML Heading Tags
- HTML Sectioning Tags
- HTML Metadata Tags
- HTML Interactive Content Tags
HTML Tags By Content Model
- HTML tags with a void content model cannot have an content, not even HTML comments
- HTML tags with a empty content model expect nothing but white space and possibly HTML comments
- HTML tags with a text content model expect nothing but text content and possibly HTML comments and white space
- HTML tags with a flow content model can contain flow elements, phrasing elements or embedded content elements
- HTML tags with a phrasing content model can contain phrasing elements or embedded content elements
- HTML tags with a transparent content model can contain the same type of content as the content model where the tag is used
- HTML tags with a metadata content model can contain metadata elements
Declarations and Structure Tags in HTML 5
Including <html>, <head> and <body> Tags
Declarations for HTML 5
- <?xml?> declaration
- The <?xml?> declaration indicates the what character encoding, such as UTF-8 for Unicode or ASCII, has been used to encode the document. It also indicates that the document can be processed by aggregators and other generic XML parsers in addition to HTML browsers.
- DOCTYPE declaration
- The DOCTYPE declaration indicates that the document should be displayed according to the HTML 5 specifications, which results in more consistent appearance in different web browsers. Note that there is no DTD in HTML 5.
Processing Instructions for HTML 5
- xml style sheet instruction (XSLT)
- The
xml-stylesheet
processing instruction can be used to reference XSLT templates, which can be applied to multiple web pages, to avoid repeating the code for common elements on all web pages, and can be cached on the client side by web browsers, to improve page load times.
Document Structure Tags in HTML 5
The purpose of the structure elements is to provide a single element containing all other HTML code for the document and to separate the page title and other metadata information in the head section from the actual visible content of the document in the body section.
- <html> tag
- The <html> tag is the top element of an HTML document and encloses all of the other HTML code for the document. Only HTML declarations and HTML comments should appear outside the html element.
- <head> tag
- A single <head> tag encloses metadata about the HTML document that is not directly displayed to the user but can be used by HTML browsers.
- <body> tag
- A single <body> tag encloses the visible content of the HTML document.
HTML Phrase Elements
HTML Tags for Phrase Elements in HTML 5
Phrase elements, as defined in HTML 4, are one type of inline element that can be used to mark up phrases and are some of the tags that can be used in phrasing content. Each type of phrase element indicates a particular semantic meaning to the phrase in its inner HTML.
- <abbr> tag
- The <abbr> tag should be used for both acronyms and abbreviations.
- <acronym> tag
- The <acronym> tag is one of the deprecated tags in HTML 5.
- <cite> tag
- <code> tag
- <dfn> tag
- <em> tag
- <figcaption> tag
- <kbd> tag
- <mark> tag
- <q> tag
- <s> tag
- for content that is inaccurate, incorrect or no longer relevant, often displayed in a strike-through font using a
text-decoration: line-through
style - <samp> tag
- <strong> tag
- <sub> tag
- <sup> tag
- <time> tag
- <u> tag
- <var> tag
The HTML style elements below can also be used to mark up phrases and give them some visual distinction without indicating any additional semantic meaning.
HTML Metadata Tags and Attributes
Metadata Tags in HTML 5
- HTML Comments
- <base/> tag
- <command/> tag
- <link/> tag
- <meta/> tag
- <rdf:RDF> tag
- <style> tag
- <title> tag
HTML Microdata Attributes
For more information, see the HTML Microdata Tutorial.