HTML - (Content of an element|Content Model)

> (World Wide) Web - (W3|WWW) > HyperText markup Language (HTML)

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)


3 - Category

Each element in HTML falls into zero or more categories that group elements with similar characteristics together.

3.1 - Rendering

The content is rendered within the css box in the middle.

See CSS - Content (Property)


4 - Technology

4.1 - Javascript

  • Selection of an element by Id and setting of the content:
document.getElementById('myId').textContent = 'New Content';

5 - Documentation / Reference