Semantic content sections
The next elements are the main elements to use when adding content to the document. For example, using the article
element instead of an arbitrary div
element allows the browser to infer that this is the main content of the page. These elements should be used to give structure to a document and not be used for styling purposes. Semantic elements make our HTML document more accessible using an ever-increasing amount of different devices.
body
The body
element is the main content section of the document. There must be only one main element, its syntax is as follows:
<body></body>
Attributes
The attributes of the
body
element include the inline
event attributes.
Description
The body
element is the main content section of most ...
Get Web Developer's Reference Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.