Lecture 5.1: HTML Content Models Flashcards
A Content Model
A content model refers to a browser’s application of an element’s behavior within its specific model, and its nesting rules.
The 2 Traditional Content Models (Before HTML5)
- Block-level Elements
- Inline Elements
Block-Level Elements Content Model
Browsers render elements in this category on their own/new line by default. These may nest either inline elements or other block-level elements.
**HTML5 Rough Equivalent: Flow Content
Inline Elements Content Model
Browsers render these elements on the same line as the elements before/after them (unless this is altered by a block-level element). These elements can nest other inline elements ONLY.
**HTML5 Rough Equivalent: Phrasing Content
Number of Content Models in HTML5
7
HTML5 Content Models/Types
1) Flow Content
2) Phrasing Content
3) Metadata Content
4) Sectioning Content
5) Heading Content
6) Interactive Content
7) Embedded Content
Flow Content Type
The elements in this category are most of the elements found within the body section of documents and applications.
Phrasing Content Type
The elements in this category define the document’s text and markup.
Metadata Content Type
The elements in this category set up the presentation/behavior of the document’s content, links, relationships between documents, and conveys other “out of band” information.
Sectioning Content Type
This category is a subset of the Flow Content Type and is usable everyhere that flow is expected. These elements create section(s) within the current outline, define the scope of headers and footers, as well as can potentially contain a heading and an outline.
Heading Content Type
This category is a subset of Flow Content and is useable wherever flow is expected. These elements define section titles whether marked by a sectioning or heading element.
Interactive Content Type
Elements included within this category are specifically designed for user interaction.
Embedded Content Type
These elements import other resources or insert content from another markup language or namespace into the document.