Structure
&Semantics
in HTML5

Aaron Gustafson
Easy Designs, LLC
slideshare.net/AaronGustafson
Structure & Semantics




HTML5 gives
you more
control
over your
documents
Structure & Semantics




Paving our “cowpaths”
Structure & Semantics




The process is ongoing…
Structure & Semantics




…but the end is near.

 June 2004
 WhatWG begins work        2007                 May 2011             2014
 on Web Applications 1.0   Work begins at W3C   HTML5 to Last Call   HTML5 Standard?




2004                                                                           2014
Structure & Semantics




You can use it now, though.
Structure & Semantics




Now back to those cowpaths…
Structure & Semantics




A great idea that we lost.




  <fig>
   <img src="photo.jpeg" alt=""/>
   <caption>Photo of Albert Einstein</caption>
  </fig>
The original concept in HTML3: http://www.w3.org/MarkUp/html3/figures.html
Structure & Semantics




Microformats brought it back.




  <div class="figure">
   <img class="image" src="photo.jpeg" alt=""/>
   <p class="caption">Photo of Albert Einstein</p>
  </div>
The original “figure” microformat.
Structure & Semantics




HTML5 re-imagined it.




  <figure>
   <img src="photo.jpeg" alt=""/>
   <legend>Photo of Albert Einstein</legend>
  </figure>
The original HTML5 figure.
Structure & Semantics




Microformats adapted.




  <div class="figure">
   <img class="image" src="photo.jpeg" alt=""/>
   <p class="captionlegend">Photo of Albert Einstein</p>
  </div>
The revised (and now draft) “figure” microformat: http://microformats.org/wiki/figure
Structure & Semantics




Microformats adapted.




  <figure>
   <img src="photo.jpeg" alt=""/>
   <figcaption>Photo of Albert Einstein</figcaption>
  </figure>
The current (dare I say final?) HTML5 figure.
Structure & Semantics




 What’s the
easiest way to
write HTML5?
Structure & Semantics




Use the new doctype
<!DOCTYPE html>
Structure & Semantics




The HTML4 Lexicon
                   html
           meta head link style
       title   base body dl dt dd
    bdo script noscript    map dfn    b
   object param p div ul ol li      cite
  iframe address area img br a small
pre code abbr kbd var q samp hr menu
 textarea ins del sub sup span strong
  select   option optgroup label    input
  form fieldset   legend button i    em
    blockquote h1 h2 h3 h4 h5 h6
      table caption col colgroup
           thead tbody tfoot tr
                  th td
Structure & Semantics




The HTML5 Lexicon
                   html
           meta head link style
       title   base body dl dt dd           section article
    bdo script noscript    map dfn    b aside details    summary
   object param p div ul ol li      cite    canvas audio video
  iframe address area img br a small        nav figure figcaption
 pre code abbr kbd var q samp hr menu header footer command
 textarea ins del sub sup span strong        time source datalist
  select   option optgroup label    input    output ruby progress
  form fieldset   legend button i    em     mark hgroup meter
    blockquote h1 h2 h3 h4 h5 h6            wbr keygen embed
      table caption col colgroup                 rt rp
           thead tbody tfoot tr
                  th td
Structure & Semantics




Our focus today
                   html
           meta head link style
       title   base body dl dt dd           section article
    bdo script noscript    map dfn    b aside details    summary
   object param p div ul ol li      cite    canvas audio video
  iframe address area img br a small        nav figure figcaption
 pre code abbr kbd var q samp hr menu header footer command
 textarea ins del sub sup span strong        time source datalist
  select   option optgroup label    input    output ruby progress
  form fieldset   legend button i    em     mark hgroup meter
    blockquote h1 h2 h3 h4 h5 h6            wbr keygen embed
      table caption col colgroup                 rt rp
           thead tbody tfoot tr
                  th td
Structure & Semantics




If only life were simpler…
Structure & Semantics




Simplification
The html element
<html xmlns="http://www.w3.org/1999/xhtml"
      lang="en"
      xml:lang="en">



<html lang="en">
Structure & Semantics




Simplification
Character encoding
<meta http-equiv="Content-Type"
      content="text/html; charset=utf-8">



<meta charset="utf-8" />
Structure & Semantics




Simplification
Styles and scripts
<link rel="stylesheet" href="style-original.css" type="text/css" />
<style type=”text/css”>
 /* … */
</style>
<script type=”text/javascript” src=”myscript.js”></script>



<link rel="stylesheet" href="style-original.css" />
<style>
 /* … */
</style>
<script src=”myscript.js”></script>
Structure & Semantics




Metamorphosis
Structure & Semantics




Nip/tuck
The em element
Represents a span of text text with emphatic stress.

<p>HTML5 introduces several <em>really</em> useful elements and
a ton of new APIs.</p>


The strong element
Represents a span of text of great importance.

<p>Please fill out the form below. <strong>Note: all
fields are required.</strong></p>
Structure & Semantics




Evil incarnate
The small element
Represents so-called “fine print” (e.g. disclaimers, caveats, etc.).
Structure & Semantics




Clarification
The cite element
The title of a cited work (e.g. a book, magazine, or journal).

<p>In <cite>Web Form Design</cite>, Luke Wroblewski draws on
original research, his considerable experience at Yahoo! and eBay,
and the perspectives of many of the field’s leading designers to
show you everything you need to know about designing effective
and engaging Web forms.</p>
Structure & Semantics




Resurrection
The b element
Represents a span of text offset from its surrounding content, but of no
extra importance.

<p>This presentation is about <b>HTML5</b>.</p>


The i element
Represents a span of text in an alternate voice or mood.

<p>The <code>b</code> and <code>i</code> elements
have been legitimized in HTML5. <i>Go figure.</i></p>
Structure & Semantics




Resurrection
The menu element
Represents a list of commands.

<menu>
 <li><a id="bold">Bold</a></li>
 <li><a id="italic">Italic</a></li>
 <li><a id="underline">Underline</a></li>
</menu>

or

<menu>
 <command icon="/i/icons/b.png" label="Bold"/>
 <command icon="/i/icons/i.png" label="Italic"/>
 <command icon="/i/icons/u.png" label="Underline"/>
</menu>
Structure & Semantics




Deeper meaning
The hr element
Represents a paragraph-level thematic break.
Structure & Semantics




Raw materials
Structure & Semantics




Organization
The section element
Represents a section of a document, typically with a title or heading.

<section>
 <!-- pretty much anything can go here -->
</section>


The article element
Represents a section of content that forms an independent part of a
document or site.

<article>
 <!-- pretty much anything can go here -->
</article>
Structure & Semantics
Structure & Semantics




section
                             32
Structure & Semantics




section > article
                                       33
Structure & Semantics




                   34
Structure & Semantics




article
                             35
Structure & Semantics




article > section
                                       36
Structure & Semantics




Organization
The header element
Represents the header of a section.

<header>
 <!-- titles, etc. go here -->
</header>


The footer element
Represents the footer of a section.

<footer>
 <!-- meta/supplementary information goes here -->
</footer>
Structure & Semantics




                   38
Structure & Semantics




header
                            39
Structure & Semantics




                   40
Structure & Semantics




footer
                            41
Structure & Semantics




article
                             42
Structure & Semantics




article > header
                                      43
Structure & Semantics




article
                             44
Structure & Semantics




article > footer
                                      45
Structure & Semantics




Organization
The nav element
Demarcates a group of navigational links.

<nav>
 <ol>
   <li><a href="#details">Details</a></li>
   <li><a href="#lodging">Lodging</a></li>
   <li><a href="#location">Location</a></li>
   <li><a href="#topics">Topics</a></li>
   <li><a href="#contact">Contact Us</a></li>
 </ol>
 <p><a href="register">Register Now</a>
   <b>Only 5 spaces left</b></p>
</nav>
Structure & Semantics




                   47
Structure & Semantics




nav
                         48
Structure & Semantics




                   49
Structure & Semantics




nav
                         50
Structure & Semantics




Organization
The aside element
Demarcates content that is tangentially related to the primary content.

<article>

  <!-- main content -->

  <aside>
   <!-- something related -->
  </aside>

</article>
Structure & Semantics




                   52
Structure & Semantics




aside
                           53
Structure & Semantics




Organization
The details element
A UI control for hiding optional content. Must contain a summary element,
followed by other content.

 <details>
  <summary>This is the visible description</summary>
  <p>This content would be hidden by default.</p>
 </details>




It’s not implemented in any browser yet, this is just an example of how it could work. (Ripped from http://2010.full-frontal.org).
Structure & Semantics




Organization
The figure element
A unit of content (typically referenced by the primary content) that is
self-contained. May contain a figcaption element and other content.

<figure id="fig-1">
 <img src="photo.jpeg" alt=""/>
 <figcaption>Photo of Albert Einstein</figcaption>
</figure>


<figure id="fig-2">
 <table>
   <caption>2011 Forecast Earnings</caption>
   <!-- a bunch of data -->
 </table>
</figure>
Structure & Semantics




Refining the outline
Structure & Semantics




Implicit sections
                                           <h1> HTML5
                                           <p> HTML5 is currently under development...
                                           <p> Like its immediate predecessors, HTML...


                                           <h2> W3C standardization process
                                           <p> The Web Hypertext Application...
                                           <p> The HTML5 specification...
                                           <p> According to the W3C timetable...
                                           <p> Ian Hickson, editor of the HTML5...


                                           <h2> Markup
                                           <p> HTML5 introduces a number of...
                                           <p> The HTML5 syntax is no longer...




                                             1 HTML5
                                             1.1 W3C standardization process
                                             1.2 Markup



A snippet of the Wikipedia entry on HTML5: http://en.wikipedia.org/wiki/HTML5
Structure & Semantics




Explicit sections
                                           <h1> HTML5
                                           <p> HTML5 is currently under development...
                                           <p> Like its immediate predecessors, HTML...


                                           <h2> W3C standardization process
                             section


                                           <p> The Web Hypertext Application...
                                           <p> The HTML5 specification...
                                           <p> According to the W3C timetable...
                                           <p> Ian Hickson, editor of the HTML5...


                                           <h2> Markup
                             section




                                           <p> HTML5 introduces a number of...
                                           <p> The HTML5 syntax is no longer...




                                             1 HTML5
                                             1.1 W3C standardization process
                                             1.2 Markup



A snippet of the Wikipedia entry on HTML5: http://en.wikipedia.org/wiki/HTML5
Structure & Semantics




Explicit sections
                                           <h1> HTML5
                                           <p> HTML5 is currently under development...
                                           <p> Like its immediate predecessors, HTML...


                                           <h1> W3C standardization process
                             section


                                           <p> The Web Hypertext Application...
                                           <p> The HTML5 specification...
                                           <p> According to the W3C timetable...
                                           <p> Ian Hickson, editor of the HTML5...


                                           <h1> Markup
                             section




                                           <p> HTML5 introduces a number of...
                                           <p> The HTML5 syntax is no longer...




                                             1 HTML5
                                             1.1 W3C standardization process
                                             1.2 Markup



A snippet of the Wikipedia entry on HTML5: http://en.wikipedia.org/wiki/HTML5
Structure & Semantics




Explicit sections
                                           <h1> HTML5
                                           <p> HTML5 is currently under development...
                                           <p> Like its immediate predecessors, HTML...


                                           <h4> W3C standardization process
                             section


                                           <p> The Web Hypertext Application...
                                           <p> The HTML5 specification...
                                           <p> According to the W3C timetable...
                                           <p> Ian Hickson, editor of the HTML5...


                                           <h6> Markup
                             section




                                           <p> HTML5 introduces a number of...
                                           <p> The HTML5 syntax is no longer...




                                             1 HTML5
                                             1.1 W3C standardization process
                                             1.2 Markup



A snippet of the Wikipedia entry on HTML5: http://en.wikipedia.org/wiki/HTML5
Structure & Semantics




Sectioning elements
Create explicit sections in an outline.
๏ section (obviously)
๏ article
๏ aside
๏ footer
๏ header
๏ nav
Structure & Semantics




Outline limitations
         <h1> Title
         <h2> Subtitle
         <p> Text content continues...
         <p> Text content continues...
         <p> Text content continues...
         <p> Text content continues...
         <p> Text content continues...
         <p> Text content continues...
         <p> Text content continues...




          1 Title
          1.1 Subtitle
Structure & Semantics




Heading groups FTW!
     hgroup
              <h1> Title
              <h2> Subtitle
              <p> Text content continues...
              <p> Text content continues...
              <p> Text content continues...
              <p> Text content continues...
              <p> Text content continues...
              <p> Text content continues...
              <p> Text content continues...




               1 Title
Structure & Semantics




Sectioning roots
Establish a new outline.
๏ body (obviously)
๏ blockquote
๏ details
๏ fieldset
๏ figure
๏ td
Structure & Semantics




Rooted sections
         <h1> Title
         <p> Text content continues...
         <p> Text content continues...


         <h2> Section heading
         <p> Text content continues...
         <blockquote>
           <h2> Rooted heading
           <p> Text content continues...
           <p> Text content continues...
         <p> Text content continues...
         <p> Text content continues...




          1 Title
          1.1 Section heading
Structure & Semantics




New elements to consider
Structure & Semantics




When?
The time element
Represents a date and/or time.
Structure & Semantics




                   68
Structure & Semantics




time
                          69
Structure & Semantics




When?
The time element
Represents a date and/or time.

<time>October 25, 2010 8:11 PM</time>
Structure & Semantics




When?
The time element
Represents a date and/or time.

<time>October 25, 2010 8:11 PM</time>

<time datetime="2010-11-26T01:11:00-05:00">
      October 25, 2010 8:11 PM</time>
Structure & Semantics




When?
The time element
Represents a date and/or time.

<time>October 25, 2010 8:11 PM</time>

<time datetime="2010-11-26T01:11:00-05:00">
      October 25, 2010 8:11 PM</time>


<time datetime="2010-11-26T01:11:00-05:00"
      pubdate="pubdate">October 25, 2010 8:11 PM</time>
Structure & Semantics




Highlighting
The time element
Represents a date and/or time.

<time>October 25, 2010 8:11 PM</time>
Structure & Semantics




Highlighting
The mark element
Represents a run of text in one document marked or highlighted for
reference purposes, due to its relevance in another context.

<ol id="search-results">
 <li>
   <h3><a href="...">Web Upgrade <mark>HTML5</mark>
     May Weaken Privacy</a></h3>
   <p>The new language, <mark>HTML5</mark>, could give
     marketers access to many more details about users'
     online activities.</p>
 </li>
</ol>
Structure & Semantics




                   75
Structure & Semantics




                   76
Structure & Semantics




mark
                          77
Structure & Semantics




mark
                          78
Structure & Semantics




                 Slides available at
      http://slideshare.net/AaronGustafson

      This presentation is licensed under
              Creative Commons
 Attribution-Noncommercial-Share Alike 3.0

                    flickr Photo Credits
“2008 06 11 - 3257 - Washington DC - N Portal Dr at 16th St.” by thisisbossi
                       “Aruba” by Salvatore.Freni
                         “IMG_6200” by pcutler
                  “Construction material” by raisin bun
                        “TOC” by D'Arcy Norman

HTML5 Semantics

  • 1.
    Structure &Semantics in HTML5 Aaron Gustafson EasyDesigns, LLC slideshare.net/AaronGustafson
  • 2.
    Structure & Semantics HTML5gives you more control over your documents
  • 3.
    Structure & Semantics Pavingour “cowpaths”
  • 4.
    Structure & Semantics Theprocess is ongoing…
  • 5.
    Structure & Semantics …butthe end is near. June 2004 WhatWG begins work 2007 May 2011 2014 on Web Applications 1.0 Work begins at W3C HTML5 to Last Call HTML5 Standard? 2004 2014
  • 6.
    Structure & Semantics Youcan use it now, though.
  • 7.
    Structure & Semantics Nowback to those cowpaths…
  • 8.
    Structure & Semantics Agreat idea that we lost. <fig> <img src="photo.jpeg" alt=""/> <caption>Photo of Albert Einstein</caption> </fig> The original concept in HTML3: http://www.w3.org/MarkUp/html3/figures.html
  • 9.
    Structure & Semantics Microformatsbrought it back. <div class="figure"> <img class="image" src="photo.jpeg" alt=""/> <p class="caption">Photo of Albert Einstein</p> </div> The original “figure” microformat.
  • 10.
    Structure & Semantics HTML5re-imagined it. <figure> <img src="photo.jpeg" alt=""/> <legend>Photo of Albert Einstein</legend> </figure> The original HTML5 figure.
  • 11.
    Structure & Semantics Microformatsadapted. <div class="figure"> <img class="image" src="photo.jpeg" alt=""/> <p class="captionlegend">Photo of Albert Einstein</p> </div> The revised (and now draft) “figure” microformat: http://microformats.org/wiki/figure
  • 12.
    Structure & Semantics Microformatsadapted. <figure> <img src="photo.jpeg" alt=""/> <figcaption>Photo of Albert Einstein</figcaption> </figure> The current (dare I say final?) HTML5 figure.
  • 13.
    Structure & Semantics What’s the easiest way to write HTML5?
  • 14.
    Structure & Semantics Usethe new doctype <!DOCTYPE html>
  • 15.
    Structure & Semantics TheHTML4 Lexicon html meta head link style title base body dl dt dd bdo script noscript map dfn b object param p div ul ol li cite iframe address area img br a small pre code abbr kbd var q samp hr menu textarea ins del sub sup span strong select option optgroup label input form fieldset legend button i em blockquote h1 h2 h3 h4 h5 h6 table caption col colgroup thead tbody tfoot tr th td
  • 16.
    Structure & Semantics TheHTML5 Lexicon html meta head link style title base body dl dt dd section article bdo script noscript map dfn b aside details summary object param p div ul ol li cite canvas audio video iframe address area img br a small nav figure figcaption pre code abbr kbd var q samp hr menu header footer command textarea ins del sub sup span strong time source datalist select option optgroup label input output ruby progress form fieldset legend button i em mark hgroup meter blockquote h1 h2 h3 h4 h5 h6 wbr keygen embed table caption col colgroup rt rp thead tbody tfoot tr th td
  • 17.
    Structure & Semantics Ourfocus today html meta head link style title base body dl dt dd section article bdo script noscript map dfn b aside details summary object param p div ul ol li cite canvas audio video iframe address area img br a small nav figure figcaption pre code abbr kbd var q samp hr menu header footer command textarea ins del sub sup span strong time source datalist select option optgroup label input output ruby progress form fieldset legend button i em mark hgroup meter blockquote h1 h2 h3 h4 h5 h6 wbr keygen embed table caption col colgroup rt rp thead tbody tfoot tr th td
  • 18.
    Structure & Semantics Ifonly life were simpler…
  • 19.
    Structure & Semantics Simplification Thehtml element <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html lang="en">
  • 20.
    Structure & Semantics Simplification Characterencoding <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta charset="utf-8" />
  • 21.
    Structure & Semantics Simplification Stylesand scripts <link rel="stylesheet" href="style-original.css" type="text/css" /> <style type=”text/css”> /* … */ </style> <script type=”text/javascript” src=”myscript.js”></script> <link rel="stylesheet" href="style-original.css" /> <style> /* … */ </style> <script src=”myscript.js”></script>
  • 22.
  • 23.
    Structure & Semantics Nip/tuck Theem element Represents a span of text text with emphatic stress. <p>HTML5 introduces several <em>really</em> useful elements and a ton of new APIs.</p> The strong element Represents a span of text of great importance. <p>Please fill out the form below. <strong>Note: all fields are required.</strong></p>
  • 24.
    Structure & Semantics Evilincarnate The small element Represents so-called “fine print” (e.g. disclaimers, caveats, etc.).
  • 25.
    Structure & Semantics Clarification Thecite element The title of a cited work (e.g. a book, magazine, or journal). <p>In <cite>Web Form Design</cite>, Luke Wroblewski draws on original research, his considerable experience at Yahoo! and eBay, and the perspectives of many of the field’s leading designers to show you everything you need to know about designing effective and engaging Web forms.</p>
  • 26.
    Structure & Semantics Resurrection Theb element Represents a span of text offset from its surrounding content, but of no extra importance. <p>This presentation is about <b>HTML5</b>.</p> The i element Represents a span of text in an alternate voice or mood. <p>The <code>b</code> and <code>i</code> elements have been legitimized in HTML5. <i>Go figure.</i></p>
  • 27.
    Structure & Semantics Resurrection Themenu element Represents a list of commands. <menu> <li><a id="bold">Bold</a></li> <li><a id="italic">Italic</a></li> <li><a id="underline">Underline</a></li> </menu> or <menu> <command icon="/i/icons/b.png" label="Bold"/> <command icon="/i/icons/i.png" label="Italic"/> <command icon="/i/icons/u.png" label="Underline"/> </menu>
  • 28.
    Structure & Semantics Deepermeaning The hr element Represents a paragraph-level thematic break.
  • 29.
  • 30.
    Structure & Semantics Organization Thesection element Represents a section of a document, typically with a title or heading. <section> <!-- pretty much anything can go here --> </section> The article element Represents a section of content that forms an independent part of a document or site. <article> <!-- pretty much anything can go here --> </article>
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
    Structure & Semantics Organization Theheader element Represents the header of a section. <header> <!-- titles, etc. go here --> </header> The footer element Represents the footer of a section. <footer> <!-- meta/supplementary information goes here --> </footer>
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
    Structure & Semantics Organization Thenav element Demarcates a group of navigational links. <nav> <ol> <li><a href="#details">Details</a></li> <li><a href="#lodging">Lodging</a></li> <li><a href="#location">Location</a></li> <li><a href="#topics">Topics</a></li> <li><a href="#contact">Contact Us</a></li> </ol> <p><a href="register">Register Now</a> <b>Only 5 spaces left</b></p> </nav>
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
    Structure & Semantics Organization Theaside element Demarcates content that is tangentially related to the primary content. <article> <!-- main content --> <aside> <!-- something related --> </aside> </article>
  • 52.
  • 53.
  • 54.
    Structure & Semantics Organization Thedetails element A UI control for hiding optional content. Must contain a summary element, followed by other content. <details> <summary>This is the visible description</summary> <p>This content would be hidden by default.</p> </details> It’s not implemented in any browser yet, this is just an example of how it could work. (Ripped from http://2010.full-frontal.org).
  • 55.
    Structure & Semantics Organization Thefigure element A unit of content (typically referenced by the primary content) that is self-contained. May contain a figcaption element and other content. <figure id="fig-1"> <img src="photo.jpeg" alt=""/> <figcaption>Photo of Albert Einstein</figcaption> </figure> <figure id="fig-2"> <table> <caption>2011 Forecast Earnings</caption> <!-- a bunch of data --> </table> </figure>
  • 56.
  • 57.
    Structure & Semantics Implicitsections <h1> HTML5 <p> HTML5 is currently under development... <p> Like its immediate predecessors, HTML... <h2> W3C standardization process <p> The Web Hypertext Application... <p> The HTML5 specification... <p> According to the W3C timetable... <p> Ian Hickson, editor of the HTML5... <h2> Markup <p> HTML5 introduces a number of... <p> The HTML5 syntax is no longer... 1 HTML5 1.1 W3C standardization process 1.2 Markup A snippet of the Wikipedia entry on HTML5: http://en.wikipedia.org/wiki/HTML5
  • 58.
    Structure & Semantics Explicitsections <h1> HTML5 <p> HTML5 is currently under development... <p> Like its immediate predecessors, HTML... <h2> W3C standardization process section <p> The Web Hypertext Application... <p> The HTML5 specification... <p> According to the W3C timetable... <p> Ian Hickson, editor of the HTML5... <h2> Markup section <p> HTML5 introduces a number of... <p> The HTML5 syntax is no longer... 1 HTML5 1.1 W3C standardization process 1.2 Markup A snippet of the Wikipedia entry on HTML5: http://en.wikipedia.org/wiki/HTML5
  • 59.
    Structure & Semantics Explicitsections <h1> HTML5 <p> HTML5 is currently under development... <p> Like its immediate predecessors, HTML... <h1> W3C standardization process section <p> The Web Hypertext Application... <p> The HTML5 specification... <p> According to the W3C timetable... <p> Ian Hickson, editor of the HTML5... <h1> Markup section <p> HTML5 introduces a number of... <p> The HTML5 syntax is no longer... 1 HTML5 1.1 W3C standardization process 1.2 Markup A snippet of the Wikipedia entry on HTML5: http://en.wikipedia.org/wiki/HTML5
  • 60.
    Structure & Semantics Explicitsections <h1> HTML5 <p> HTML5 is currently under development... <p> Like its immediate predecessors, HTML... <h4> W3C standardization process section <p> The Web Hypertext Application... <p> The HTML5 specification... <p> According to the W3C timetable... <p> Ian Hickson, editor of the HTML5... <h6> Markup section <p> HTML5 introduces a number of... <p> The HTML5 syntax is no longer... 1 HTML5 1.1 W3C standardization process 1.2 Markup A snippet of the Wikipedia entry on HTML5: http://en.wikipedia.org/wiki/HTML5
  • 61.
    Structure & Semantics Sectioningelements Create explicit sections in an outline. ๏ section (obviously) ๏ article ๏ aside ๏ footer ๏ header ๏ nav
  • 62.
    Structure & Semantics Outlinelimitations <h1> Title <h2> Subtitle <p> Text content continues... <p> Text content continues... <p> Text content continues... <p> Text content continues... <p> Text content continues... <p> Text content continues... <p> Text content continues... 1 Title 1.1 Subtitle
  • 63.
    Structure & Semantics Headinggroups FTW! hgroup <h1> Title <h2> Subtitle <p> Text content continues... <p> Text content continues... <p> Text content continues... <p> Text content continues... <p> Text content continues... <p> Text content continues... <p> Text content continues... 1 Title
  • 64.
    Structure & Semantics Sectioningroots Establish a new outline. ๏ body (obviously) ๏ blockquote ๏ details ๏ fieldset ๏ figure ๏ td
  • 65.
    Structure & Semantics Rootedsections <h1> Title <p> Text content continues... <p> Text content continues... <h2> Section heading <p> Text content continues... <blockquote> <h2> Rooted heading <p> Text content continues... <p> Text content continues... <p> Text content continues... <p> Text content continues... 1 Title 1.1 Section heading
  • 66.
    Structure & Semantics Newelements to consider
  • 67.
    Structure & Semantics When? Thetime element Represents a date and/or time.
  • 68.
  • 69.
  • 70.
    Structure & Semantics When? Thetime element Represents a date and/or time. <time>October 25, 2010 8:11 PM</time>
  • 71.
    Structure & Semantics When? Thetime element Represents a date and/or time. <time>October 25, 2010 8:11 PM</time> <time datetime="2010-11-26T01:11:00-05:00"> October 25, 2010 8:11 PM</time>
  • 72.
    Structure & Semantics When? Thetime element Represents a date and/or time. <time>October 25, 2010 8:11 PM</time> <time datetime="2010-11-26T01:11:00-05:00"> October 25, 2010 8:11 PM</time> <time datetime="2010-11-26T01:11:00-05:00" pubdate="pubdate">October 25, 2010 8:11 PM</time>
  • 73.
    Structure & Semantics Highlighting Thetime element Represents a date and/or time. <time>October 25, 2010 8:11 PM</time>
  • 74.
    Structure & Semantics Highlighting Themark element Represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. <ol id="search-results"> <li> <h3><a href="...">Web Upgrade <mark>HTML5</mark> May Weaken Privacy</a></h3> <p>The new language, <mark>HTML5</mark>, could give marketers access to many more details about users' online activities.</p> </li> </ol>
  • 75.
  • 76.
  • 77.
  • 78.
  • 79.
    Structure & Semantics Slides available at http://slideshare.net/AaronGustafson This presentation is licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 flickr Photo Credits “2008 06 11 - 3257 - Washington DC - N Portal Dr at 16th St.” by thisisbossi “Aruba” by Salvatore.Freni “IMG_6200” by pcutler “Construction material” by raisin bun “TOC” by D'Arcy Norman