HTML SECTIONING TAGS

Sectioning tags are the pinnacle of the semantic layout, which was introduced in HTML5. They do not tend to support any local attributes but do fully support global attributes. As such, they can and should be manipulated via CSS. The semantic layout is demonstrated in Chapter 2, “Getting Started with HTML5 Page Layout.”

All HTML sectioning tags support the standard global attributes, described earlier in this appendix in the section “HTML Global Attributes.”

<body> . . . </body>

The <body> tag group represents the main content of the web page. It is used exactly once, directly after the <head> block:

<!doctype html>
<html>
  <head>
     ...
  </head>
  <body>
    ...
  </body>
</html>

Note the closing </body></html> tags should be the ...

Get HTML5: Your visual blueprint™ for designing rich web pages and applications 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.