Web Development
HTML Course
CSS Course
JavaScript Course
PHP Course
Python Course
SQL Course
SEO Course

Content Models in HTML5

Each HTML element belongs to at least one content model.

Types of content:

Thus, there are 7 content models developed to extend the structural and semantic capabilities of HTML5:

html5 content models

Image taken from developer.mozilla.org.
  1. Metadata content – defines the presentation or behavior of the rest of the content, or establishes the document's relationship with other documents, or conveys information unrelated to the document itself;
  2. Flow content – usually contains text or embedded content;
  3. Sectioning content – sectioning elements that define the purpose of headings and footers;
  4. Heading content – defines the header of a section;
  5. Phrasing content – is the text of the document, as well as elements that mark up that text at the inline (intra-paragraph) level;
  6. Embedded content – content that imports another resource into the document;
  7. Interactive content – content specifically intended for user interaction.

Some of these models behave as Block Level, others as Inline Level.

Much more detailed information can be found in the specialized documentation W3 – Content models

Top