O'Reilly logo

Responsive Web Design with HTML5 and CSS3 by Ben Frain

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

New semantic elements in HTML5

My dictionary defines semantics as "the branch of linguistics and logic concerned with meaning". For our purposes, semantics is the process of giving our markup meaning. Why is this important? Glad you asked. Consider the structure of our current markup for the And the winner isn't... site:

<body>
<div id="wrapper">
  <div id="header">
    <div id="logo"></div>
    <div id="navigation">
      <ul>
        <li><a href="#">Why?</a></li>
      </ul>
    </div>  
  </div>
  <!-- the content -->
  <div id="content">  
  
  </div>
  <!-- the sidebar -->
  <div id="sidebar">
    
  </div>
  <!-- the footer -->
  <div id="footer">
    
  </div>
</div>
</body>

Most writers of markup will see common conventions for the ID names of the div's used—header, content, sidebar, and so on. However, as ...

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