O'Reilly logo

HTML5: Your visual blueprint™ for designing rich web pages and applications by Adam McDaniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required