HTML - (Content of an element|Content Model)
Table of Contents
1 - About
The contents of an element are its children in the DOM tree.
Each element has a content model: a description of the element's expected contents.
HTML Authors must not use HTML elements anywhere except where they are explicitly allowed, as defined for each element, or as explicitly required by other specifications (such as ATOM)
2 - Articles Related
3 - Category
Each element in HTML falls into zero or more categories that group elements with similar characteristics together.
- HTML - Metadata Content. Metadata is sometimes flow content. Metadata are sometimes phrasing content.
- HTML - (Flow|Body) Content. Sectioning content, heading content, phrasing content, embedded content, and interactive content are all types of flow content. Metadata is sometimes flow content.
- HTML - Embedded Content. Embedded content is also a type of phrasing content, and sometimes is interactive content.
- HTML - Interactive Content (User Interaction) (Element) Interactive content are sometimes phrasing content.
3.1 - Rendering
4 - Technology
4.1 - Javascript
- Selection of an element by Id and setting of the content:
document.getElementById('myId').textContent = 'New Content';