MDN will be in maintenance mode on Wednesday September 20th, starting at 10 AM Pacific / 5 PM UTC, for about 1 hour.

Kinds of HTML content

Draft
This page is not complete.

Every HTML element is a member of some number of content categories that group elements that share a set of characteristics together. This is a loose grouping, in that it doesn't actually create a relationship among elements of these types, but it does help to define and describe their behavior, especially when you come upon their intricate details. This article describes these categories in brief and offers examples of each kind of element.

A more detailed discussion of these content categories and their comparative functionalities is beyond the scope of this article; for that, you may wish to read the relevant portions of the HTML specification.

The primary element categories

The primary categories of which HTML elements may be members are listed below. Although these categories are generally meant for the use of developers creating browsers and other user agents, they can be helpful in clarifying which elements can be used inside what other elements.

While there are more categories than these, they're typically special-case categories used by a limited number of elements.

It's also possible for elements to not be a member of any of these categories.

Metadata content

Content that establishes the behavior, presentation style, or metadata about the document, as well as content that establishes relationships with other documents or files. Most metadata content is not visible to the page's readers.

Flow content

Elements that are used in the body of a document or web application are considered flow content. Every element in the remaining categories below is also considered flow content.

Sectioning content

Elements that create scopes for headers and footers are members of this category.

Heading content

Phrasing content

Embedded content

Interactive content

Secondary categories

There are some secondary classifications of elements that can be useful to be aware of as well.

Script-supporting elements

Script-supporting elements are elements which don't directly contribute to the rendered output of a document. Instead, they serve to support scripts, either by containing or specifying script code directly, or by specifying data that will be used by scripts.

The script-supporting elements are:

Document Tags and Contributors

 Contributors to this page: Sheppy
 Last updated by: Sheppy,