1. Reference website (http://w3c.org)
In addition, the Mozilla Developer Network (http://developer.mozilla.org) is more approachable and less authoritative.
Example code: apress.com
2. Empty element: There is not necessarily content between the start and end tags of an element, an element with no content is called an empty element
3. Virtual elements: Some elements can only be represented by one label, and any content placed in it does not conform to the HTML specification. Such elements are called virtual elements. For example:
Two representations: the first, using only the start tag
4. Element properties:
An element can have multiple properties applied
Boolean property
User-defined properties: Start with data-
5. The various software used to process HTML documents has a common name called the user agent, the browser is the most popular user agent, but not the only one.
6. HTML5 emphasizes the separation of content and presentation form
7. Parent element, child element, descendant element, and sibling element
There is a clear relationship between the elements in the HTML document, and the element that contains the other element is the parent element of the contained element.
An element can have multiple child elements, but only one parent element.
Elements that are contained in other elements can also contain other elements.
8. The HTML5 specification divides elements into three main categories:
Meta data type (metadata element): constructs the basic structure of an HTML document and provides information and instructions to the browser on how to handle the document
Flow element: A stream element is a superset of a phrase element. That is, all phrase elements are flow elements, but not all flow elements are phrase elements.
Phrase elements (phrasing element):
9. HTML entity: An entity is a code that the browser uses to replace special characters.
HTML5 Study Notes 1