SlideShare a Scribd company logo
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

More Related Content

Similar to HTML5 Semantics

HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
Aaron Gustafson
 
Html 5, a gentle introduction
Html 5, a gentle introductionHtml 5, a gentle introduction
Html 5, a gentle introduction
Diego Scataglini
 
Html5, a gentle introduction
Html5, a gentle introduction Html5, a gentle introduction
Html5, a gentle introduction
Diego Scataglini
 
Bootcamp - Web Development Session 2
Bootcamp - Web Development Session 2Bootcamp - Web Development Session 2
Bootcamp - Web Development Session 2
GDSCUniversitasMatan
 
Intro to html 5
Intro to html 5Intro to html 5
Intro to html 5
Ian Jasper Mangampo
 
Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)
Christopher Ross
 
CSC103 Web Technologies: HTML, CSS, JS
CSC103 Web Technologies: HTML, CSS, JSCSC103 Web Technologies: HTML, CSS, JS
CSC103 Web Technologies: HTML, CSS, JS
Richard Homa
 
Html
HtmlHtml
#1 HTML [know-how]
#1 HTML [know-how]#1 HTML [know-how]
#1 HTML [know-how]
Dalibor Gogic
 
HTML5 - An Introduction
HTML5 - An IntroductionHTML5 - An Introduction
HTML5 - An IntroductionTimmy Kokke
 
Diazo: Bridging Designers and Programmers
Diazo: Bridging Designers and ProgrammersDiazo: Bridging Designers and Programmers
Diazo: Bridging Designers and Programmers
TsungWei Hu
 
Learn html elements and structure cheatsheet codecademy
Learn html  elements and structure cheatsheet   codecademyLearn html  elements and structure cheatsheet   codecademy
Learn html elements and structure cheatsheet codecademy
nirmalamanjunath
 
Frontend for developers
Frontend for developersFrontend for developers
Frontend for developers
Hernan Mammana
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
Eliran Eliassy
 
Class Intro / HTML Basics
Class Intro / HTML BasicsClass Intro / HTML Basics
Class Intro / HTML BasicsShawn Calvert
 
HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]
HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]
HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]
Aaron Gustafson
 
HTML Basics 1 workshop
HTML Basics 1 workshopHTML Basics 1 workshop
HTML Basics 1 workshop
John Allan
 
Internet and Web Technology (CLASS-4) [CSS & JS]
Internet and Web Technology (CLASS-4) [CSS & JS] Internet and Web Technology (CLASS-4) [CSS & JS]
Internet and Web Technology (CLASS-4) [CSS & JS]
Ayes Chinmay
 

Similar to HTML5 Semantics (20)

HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
 
Html 5, a gentle introduction
Html 5, a gentle introductionHtml 5, a gentle introduction
Html 5, a gentle introduction
 
Html5, a gentle introduction
Html5, a gentle introduction Html5, a gentle introduction
Html5, a gentle introduction
 
Bootcamp - Web Development Session 2
Bootcamp - Web Development Session 2Bootcamp - Web Development Session 2
Bootcamp - Web Development Session 2
 
Intro to html 5
Intro to html 5Intro to html 5
Intro to html 5
 
Training HTML
Training HTMLTraining HTML
Training HTML
 
Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)
 
CSC103 Web Technologies: HTML, CSS, JS
CSC103 Web Technologies: HTML, CSS, JSCSC103 Web Technologies: HTML, CSS, JS
CSC103 Web Technologies: HTML, CSS, JS
 
Html
HtmlHtml
Html
 
#1 HTML [know-how]
#1 HTML [know-how]#1 HTML [know-how]
#1 HTML [know-how]
 
HTML5 - An Introduction
HTML5 - An IntroductionHTML5 - An Introduction
HTML5 - An Introduction
 
Diazo: Bridging Designers and Programmers
Diazo: Bridging Designers and ProgrammersDiazo: Bridging Designers and Programmers
Diazo: Bridging Designers and Programmers
 
Learn html elements and structure cheatsheet codecademy
Learn html  elements and structure cheatsheet   codecademyLearn html  elements and structure cheatsheet   codecademy
Learn html elements and structure cheatsheet codecademy
 
Frontend for developers
Frontend for developersFrontend for developers
Frontend for developers
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
html5_css3
html5_css3html5_css3
html5_css3
 
Class Intro / HTML Basics
Class Intro / HTML BasicsClass Intro / HTML Basics
Class Intro / HTML Basics
 
HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]
HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]
HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]
 
HTML Basics 1 workshop
HTML Basics 1 workshopHTML Basics 1 workshop
HTML Basics 1 workshop
 
Internet and Web Technology (CLASS-4) [CSS & JS]
Internet and Web Technology (CLASS-4) [CSS & JS] Internet and Web Technology (CLASS-4) [CSS & JS]
Internet and Web Technology (CLASS-4) [CSS & JS]
 

More from Aaron Gustafson

Delivering Critical Information and Services [JavaScript & Friends 2021]
Delivering Critical Information and Services [JavaScript & Friends 2021]Delivering Critical Information and Services [JavaScript & Friends 2021]
Delivering Critical Information and Services [JavaScript & Friends 2021]
Aaron Gustafson
 
Adapting to Reality [Guest Lecture, March 2021]
Adapting to Reality [Guest Lecture, March 2021]Adapting to Reality [Guest Lecture, March 2021]
Adapting to Reality [Guest Lecture, March 2021]
Aaron Gustafson
 
Designing the Conversation [Beyond Tellerrand 2019]
Designing the Conversation [Beyond Tellerrand 2019]Designing the Conversation [Beyond Tellerrand 2019]
Designing the Conversation [Beyond Tellerrand 2019]
Aaron Gustafson
 
Getting Started with Progressive Web Apps [Beyond Tellerrand 2019]
Getting Started with Progressive Web Apps [Beyond Tellerrand 2019]Getting Started with Progressive Web Apps [Beyond Tellerrand 2019]
Getting Started with Progressive Web Apps [Beyond Tellerrand 2019]
Aaron Gustafson
 
Progressive Web Apps: Where Do I Begin?
Progressive Web Apps: Where Do I Begin?Progressive Web Apps: Where Do I Begin?
Progressive Web Apps: Where Do I Begin?
Aaron Gustafson
 
Media in the Age of PWAs [ImageCon 2019]
Media in the Age of PWAs [ImageCon 2019]Media in the Age of PWAs [ImageCon 2019]
Media in the Age of PWAs [ImageCon 2019]
Aaron Gustafson
 
Adapting to Reality [Starbucks Lunch & Learn]
Adapting to Reality [Starbucks Lunch & Learn]Adapting to Reality [Starbucks Lunch & Learn]
Adapting to Reality [Starbucks Lunch & Learn]
Aaron Gustafson
 
Conversational Semantics for the Web [CascadiaJS 2018]
Conversational Semantics for the Web [CascadiaJS 2018]Conversational Semantics for the Web [CascadiaJS 2018]
Conversational Semantics for the Web [CascadiaJS 2018]
Aaron Gustafson
 
Better Performance === Greater Accessibility [Inclusive Design 24 2018]
Better Performance === Greater Accessibility [Inclusive Design 24 2018]Better Performance === Greater Accessibility [Inclusive Design 24 2018]
Better Performance === Greater Accessibility [Inclusive Design 24 2018]
Aaron Gustafson
 
PWA: Where Do I Begin? [Microsoft Ignite 2018]
PWA: Where Do I Begin? [Microsoft Ignite 2018]PWA: Where Do I Begin? [Microsoft Ignite 2018]
PWA: Where Do I Begin? [Microsoft Ignite 2018]
Aaron Gustafson
 
Designing the Conversation [Concatenate 2018]
Designing the Conversation [Concatenate 2018]Designing the Conversation [Concatenate 2018]
Designing the Conversation [Concatenate 2018]
Aaron Gustafson
 
Designing the Conversation [Accessibility DC 2018]
Designing the Conversation [Accessibility DC 2018]Designing the Conversation [Accessibility DC 2018]
Designing the Conversation [Accessibility DC 2018]
Aaron Gustafson
 
Performance as User Experience [AEADC 2018]
Performance as User Experience [AEADC 2018]Performance as User Experience [AEADC 2018]
Performance as User Experience [AEADC 2018]
Aaron Gustafson
 
The Web Should Just Work for Everyone
The Web Should Just Work for EveryoneThe Web Should Just Work for Everyone
The Web Should Just Work for Everyone
Aaron Gustafson
 
Performance as User Experience [AEA SEA 2018]
Performance as User Experience [AEA SEA 2018]Performance as User Experience [AEA SEA 2018]
Performance as User Experience [AEA SEA 2018]
Aaron Gustafson
 
Performance as User Experience [An Event Apart Denver 2017]
Performance as User Experience [An Event Apart Denver 2017]Performance as User Experience [An Event Apart Denver 2017]
Performance as User Experience [An Event Apart Denver 2017]
Aaron Gustafson
 
Advanced Design Methods 1, Day 2
Advanced Design Methods 1, Day 2Advanced Design Methods 1, Day 2
Advanced Design Methods 1, Day 2
Aaron Gustafson
 
Advanced Design Methods 1, Day 1
Advanced Design Methods 1, Day 1Advanced Design Methods 1, Day 1
Advanced Design Methods 1, Day 1
Aaron Gustafson
 
Designing the Conversation [Paris Web 2017]
Designing the Conversation [Paris Web 2017]Designing the Conversation [Paris Web 2017]
Designing the Conversation [Paris Web 2017]
Aaron Gustafson
 
Exploring Adaptive Interfaces [Generate 2017]
Exploring Adaptive Interfaces [Generate 2017]Exploring Adaptive Interfaces [Generate 2017]
Exploring Adaptive Interfaces [Generate 2017]
Aaron Gustafson
 

More from Aaron Gustafson (20)

Delivering Critical Information and Services [JavaScript & Friends 2021]
Delivering Critical Information and Services [JavaScript & Friends 2021]Delivering Critical Information and Services [JavaScript & Friends 2021]
Delivering Critical Information and Services [JavaScript & Friends 2021]
 
Adapting to Reality [Guest Lecture, March 2021]
Adapting to Reality [Guest Lecture, March 2021]Adapting to Reality [Guest Lecture, March 2021]
Adapting to Reality [Guest Lecture, March 2021]
 
Designing the Conversation [Beyond Tellerrand 2019]
Designing the Conversation [Beyond Tellerrand 2019]Designing the Conversation [Beyond Tellerrand 2019]
Designing the Conversation [Beyond Tellerrand 2019]
 
Getting Started with Progressive Web Apps [Beyond Tellerrand 2019]
Getting Started with Progressive Web Apps [Beyond Tellerrand 2019]Getting Started with Progressive Web Apps [Beyond Tellerrand 2019]
Getting Started with Progressive Web Apps [Beyond Tellerrand 2019]
 
Progressive Web Apps: Where Do I Begin?
Progressive Web Apps: Where Do I Begin?Progressive Web Apps: Where Do I Begin?
Progressive Web Apps: Where Do I Begin?
 
Media in the Age of PWAs [ImageCon 2019]
Media in the Age of PWAs [ImageCon 2019]Media in the Age of PWAs [ImageCon 2019]
Media in the Age of PWAs [ImageCon 2019]
 
Adapting to Reality [Starbucks Lunch & Learn]
Adapting to Reality [Starbucks Lunch & Learn]Adapting to Reality [Starbucks Lunch & Learn]
Adapting to Reality [Starbucks Lunch & Learn]
 
Conversational Semantics for the Web [CascadiaJS 2018]
Conversational Semantics for the Web [CascadiaJS 2018]Conversational Semantics for the Web [CascadiaJS 2018]
Conversational Semantics for the Web [CascadiaJS 2018]
 
Better Performance === Greater Accessibility [Inclusive Design 24 2018]
Better Performance === Greater Accessibility [Inclusive Design 24 2018]Better Performance === Greater Accessibility [Inclusive Design 24 2018]
Better Performance === Greater Accessibility [Inclusive Design 24 2018]
 
PWA: Where Do I Begin? [Microsoft Ignite 2018]
PWA: Where Do I Begin? [Microsoft Ignite 2018]PWA: Where Do I Begin? [Microsoft Ignite 2018]
PWA: Where Do I Begin? [Microsoft Ignite 2018]
 
Designing the Conversation [Concatenate 2018]
Designing the Conversation [Concatenate 2018]Designing the Conversation [Concatenate 2018]
Designing the Conversation [Concatenate 2018]
 
Designing the Conversation [Accessibility DC 2018]
Designing the Conversation [Accessibility DC 2018]Designing the Conversation [Accessibility DC 2018]
Designing the Conversation [Accessibility DC 2018]
 
Performance as User Experience [AEADC 2018]
Performance as User Experience [AEADC 2018]Performance as User Experience [AEADC 2018]
Performance as User Experience [AEADC 2018]
 
The Web Should Just Work for Everyone
The Web Should Just Work for EveryoneThe Web Should Just Work for Everyone
The Web Should Just Work for Everyone
 
Performance as User Experience [AEA SEA 2018]
Performance as User Experience [AEA SEA 2018]Performance as User Experience [AEA SEA 2018]
Performance as User Experience [AEA SEA 2018]
 
Performance as User Experience [An Event Apart Denver 2017]
Performance as User Experience [An Event Apart Denver 2017]Performance as User Experience [An Event Apart Denver 2017]
Performance as User Experience [An Event Apart Denver 2017]
 
Advanced Design Methods 1, Day 2
Advanced Design Methods 1, Day 2Advanced Design Methods 1, Day 2
Advanced Design Methods 1, Day 2
 
Advanced Design Methods 1, Day 1
Advanced Design Methods 1, Day 1Advanced Design Methods 1, Day 1
Advanced Design Methods 1, Day 1
 
Designing the Conversation [Paris Web 2017]
Designing the Conversation [Paris Web 2017]Designing the Conversation [Paris Web 2017]
Designing the Conversation [Paris Web 2017]
 
Exploring Adaptive Interfaces [Generate 2017]
Exploring Adaptive Interfaces [Generate 2017]Exploring Adaptive Interfaces [Generate 2017]
Exploring Adaptive Interfaces [Generate 2017]
 

Recently uploaded

State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 

Recently uploaded (20)

State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 

HTML5 Semantics

  • 1. Structure &Semantics in HTML5 Aaron Gustafson Easy Designs, LLC slideshare.net/AaronGustafson
  • 2. Structure & Semantics HTML5 gives you more control over your documents
  • 3. Structure & Semantics Paving our “cowpaths”
  • 4. Structure & Semantics The process is ongoing…
  • 5. 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
  • 6. Structure & Semantics You can use it now, though.
  • 7. Structure & Semantics Now back to those cowpaths…
  • 8. 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
  • 9. 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.
  • 10. Structure & Semantics HTML5 re-imagined it. <figure> <img src="photo.jpeg" alt=""/> <legend>Photo of Albert Einstein</legend> </figure> The original HTML5 figure.
  • 11. 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
  • 12. 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.
  • 13. Structure & Semantics What’s the easiest way to write HTML5?
  • 14. Structure & Semantics Use the new doctype <!DOCTYPE html>
  • 15. 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
  • 16. 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
  • 17. 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
  • 18. Structure & Semantics If only life were simpler…
  • 19. Structure & Semantics Simplification The html element <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html lang="en">
  • 20. Structure & Semantics Simplification Character encoding <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta charset="utf-8" />
  • 21. 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>
  • 23. 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>
  • 24. Structure & Semantics Evil incarnate The small element Represents so-called “fine print” (e.g. disclaimers, caveats, etc.).
  • 25. 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>
  • 26. 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>
  • 27. 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>
  • 28. Structure & Semantics Deeper meaning The hr element Represents a paragraph-level thematic break.
  • 30. 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>
  • 37. 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>
  • 46. 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>
  • 51. Structure & Semantics Organization The aside element Demarcates content that is tangentially related to the primary content. <article> <!-- main content --> <aside> <!-- something related --> </aside> </article>
  • 54. 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).
  • 55. 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>
  • 57. 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
  • 58. 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
  • 59. 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
  • 60. 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
  • 61. Structure & Semantics Sectioning elements Create explicit sections in an outline. ๏ section (obviously) ๏ article ๏ aside ๏ footer ๏ header ๏ nav
  • 62. 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
  • 63. 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
  • 64. Structure & Semantics Sectioning roots Establish a new outline. ๏ body (obviously) ๏ blockquote ๏ details ๏ fieldset ๏ figure ๏ td
  • 65. 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
  • 66. Structure & Semantics New elements to consider
  • 67. Structure & Semantics When? The time element Represents a date and/or time.
  • 70. Structure & Semantics When? The time element Represents a date and/or time. <time>October 25, 2010 8:11 PM</time>
  • 71. 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>
  • 72. 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>
  • 73. Structure & Semantics Highlighting The time element Represents a date and/or time. <time>October 25, 2010 8:11 PM</time>
  • 74. 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>
  • 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