Very basic introduction to HTML5, explaining what it is and how it can be used today.
Presented at the Adobe User Group Belgium Web SIG Event, 27th May 2010. http://mths.be/abh
What’s new in HTML5?
• Simplified syntax
• Some HTML 4 elements are redefined
What’s new in HTML5?
• Simplified syntax
• Some HTML 4 elements are redefined
• New values/attributes for existing elements
What’s new in HTML5?
• Simplified syntax
• Some HTML 4 elements are redefined
• New values/attributes for existing elements
• New sectioning elements
What’s new in HTML5?
• Simplified syntax
• Some HTML 4 elements are redefined
• New values/attributes for existing elements
• New sectioning elements
• New inline elements
What’s new in HTML5?
• Simplified syntax
• Some HTML 4 elements are redefined
• New values/attributes for existing elements
• New sectioning elements
• New inline elements
• New interactive elements
What’s new in HTML5?
• Simplified syntax
• Some HTML 4 elements are redefined
• New values/attributes for existing elements
• New sectioning elements
• New inline elements
• New interactive elements
• New JavaScript APIs
What’s new in HTML5?
• Simplified syntax
• Some HTML 4 elements are redefined
• New values/attributes for existing elements
• New sectioning elements
• New inline elements
• New interactive elements
• New JavaScript APIs
What’s new in HTML5?
• Simplified syntax
• Some HTML 4 elements are redefined
• New values/attributes for existing elements
• New sectioning elements
• New inline elements
• New interactive elements
• New JavaScript APIs
What’s new in HTML5?
• Simplified syntax
• Some HTML 4 elements are redefined
• New values/attributes for existing elements
• New sectioning elements
• New inline elements
• New interactive elements
• New JavaScript APIs
New sectioning elements
<header> and <footer>
<section> and <article>
<nav>
<aside>
…
→ Semantic alternatives to divs in HTML 4.01
→ Fallback: HTML5 shiv http://mths.be/html5shiv
Interactive elements
<details open>
<summary>More info about Foo</summary>
<p>Lorem ipsum.</p>
<p>Dolor sit amet.</p>
</details>
→ Fallback: http://mths.be/html5details
Interactive elements
<details open>
<summary>More info about Foo</summary>
<p>Lorem ipsum.</p>
<p>Dolor sit amet.</p>
</details>
→ Fallback: http://mths.be/html5details
→ Other elements, other fallbacks
HTML5, Level 1
• Simplified syntax
• DOCTYPE
• Character encoding
• Optional type attributes
HTML5, Level 1
• Simplified syntax
• DOCTYPE
• Character encoding
• Optional type attributes
• Optional solidus (/>)
HTML5, Level 1
• Simplified syntax
• DOCTYPE
• Character encoding
• Optional type attributes
• Optional solidus (/>)
• Perfectly safe; no reason not to use
HTML5, Level 3
• New sectioning elements
• New inline elements
• New interactive elements
HTML5, Level 3
• New sectioning elements
• New inline elements
• New interactive elements
• Won’t work / degrade in older browsers
HTML5, Level 3
• New sectioning elements
• New inline elements
• New interactive elements
• Won’t work / degrade in older browsers
• Use feature detection and fallbacks to emulate
HTML5, Level 3
• New sectioning elements
• New inline elements
• New interactive elements
• Won’t work / degrade in older browsers
• Use feature detection and fallbacks to emulate
• JavaScript
HTML5, Level 3
• New sectioning elements
• New inline elements
• New interactive elements
• Won’t work / degrade in older browsers
• Use feature detection and fallbacks to emulate
• JavaScript
• Flash
&#x2026;and today I&#x2019;d like to talk about&#x2026;
&#x2026;and today I&#x2019;d like to talk about&#x2026;
&#x2026;and today I&#x2019;d like to talk about&#x2026;
Redefine: The <strong> element now represents importance rather than strong emphasis. The <small> element now represents small print (for side comments and legal print). Changes to <b> and <i> etc.
Redefine: The <strong> element now represents importance rather than strong emphasis. The <small> element now represents small print (for side comments and legal print). Changes to <b> and <i> etc.
Redefine: The <strong> element now represents importance rather than strong emphasis. The <small> element now represents small print (for side comments and legal print). Changes to <b> and <i> etc.
Redefine: The <strong> element now represents importance rather than strong emphasis. The <small> element now represents small print (for side comments and legal print). Changes to <b> and <i> etc.
Redefine: The <strong> element now represents importance rather than strong emphasis. The <small> element now represents small print (for side comments and legal print). Changes to <b> and <i> etc.
Redefine: The <strong> element now represents importance rather than strong emphasis. The <small> element now represents small print (for side comments and legal print). Changes to <b> and <i> etc.
Redefine: The <strong> element now represents importance rather than strong emphasis. The <small> element now represents small print (for side comments and legal print). Changes to <b> and <i> etc.
Redefine: The <strong> element now represents importance rather than strong emphasis. The <small> element now represents small print (for side comments and legal print). Changes to <b> and <i> etc.
Redefine: The <strong> element now represents importance rather than strong emphasis. The <small> element now represents small print (for side comments and legal print). Changes to <b> and <i> etc.
Redefine: The <strong> element now represents importance rather than strong emphasis. The <small> element now represents small print (for side comments and legal print). Changes to <b> and <i> etc.
If someday a new <script> type is invented, all you have to do to use it is add a type attribute. No need to add that for default type though.
If someday a new <script> type is invented, all you have to do to use it is add a type attribute. No need to add that for default type though.
If someday a new <script> type is invented, all you have to do to use it is add a type attribute. No need to add that for default type though.
<strong> now represents importance rather than strong emphasis.
<small> used to be presentational, but now represents small print (for side comments and legal print), thus getting semantic meaning.
Changes to <b> and <i> etc.
<strong> now represents importance rather than strong emphasis.
<small> used to be presentational, but now represents small print (for side comments and legal print), thus getting semantic meaning.
Changes to <b> and <i> etc.
<strong> now represents importance rather than strong emphasis.
<small> used to be presentational, but now represents small print (for side comments and legal print), thus getting semantic meaning.
Changes to <b> and <i> etc.
<strong> now represents importance rather than strong emphasis.
<small> used to be presentational, but now represents small print (for side comments and legal print), thus getting semantic meaning.
Changes to <b> and <i> etc.
<strong> now represents importance rather than strong emphasis.
<small> used to be presentational, but now represents small print (for side comments and legal print), thus getting semantic meaning.
Changes to <b> and <i> etc.
That&#x2019;s it for Level 1.
That&#x2019;s it for Level 1.
That&#x2019;s it for Level 1.
That&#x2019;s it for Level 1.
Spec was originally named Web Forms 2.0 but is now just another chapter in the HTML5 spec
Spec was originally named Web Forms 2.0 but is now just another chapter in the HTML5 spec
Spec was originally named Web Forms 2.0 but is now just another chapter in the HTML5 spec
Spec was originally named Web Forms 2.0 but is now just another chapter in the HTML5 spec
Spec was originally named Web Forms 2.0 but is now just another chapter in the HTML5 spec
Spec was originally named Web Forms 2.0 but is now just another chapter in the HTML5 spec
Spec was originally named Web Forms 2.0 but is now just another chapter in the HTML5 spec
That&#x2019;s it for level 2 &#x2013; this stuff will work in modern browsers, while still being functional in older browsers
That&#x2019;s it for level 2 &#x2013; this stuff will work in modern browsers, while still being functional in older browsers
That&#x2019;s it for level 2 &#x2013; this stuff will work in modern browsers, while still being functional in older browsers
HTML5 shiv makes new HTML5 elements stylable in IE for both screen and print media
HTML5 shiv makes new HTML5 elements stylable in IE for both screen and print media
HTML5 shiv makes new HTML5 elements stylable in IE for both screen and print media
HTML5 shiv makes new HTML5 elements stylable in IE for both screen and print media
HTML5 shiv makes new HTML5 elements stylable in IE for both screen and print media
HTML5 shiv makes new HTML5 elements stylable in IE for both screen and print media
HTML5 shiv makes new HTML5 elements stylable in IE for both screen and print media
Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation
Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation
Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation
Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation
Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation
The actual contents are hidden by default. You can use the open attribute to override this
The actual contents are hidden by default. You can use the open attribute to override this
The actual contents are hidden by default. You can use the open attribute to override this
The actual contents are hidden by default. You can use the open attribute to override this
Hendrik Dacquin will talk about <canvas> in a minute.
HTML5 offline functionality can be useful for Flash applications as well.
Hendrik Dacquin will talk about <canvas> in a minute.
HTML5 offline functionality can be useful for Flash applications as well.
Hendrik Dacquin will talk about <canvas> in a minute.
HTML5 offline functionality can be useful for Flash applications as well.
Hendrik Dacquin will talk about <canvas> in a minute.
HTML5 offline functionality can be useful for Flash applications as well.
Hendrik Dacquin will talk about <canvas> in a minute.
HTML5 offline functionality can be useful for Flash applications as well.
Hendrik Dacquin will talk about <canvas> in a minute.
HTML5 offline functionality can be useful for Flash applications as well.
Hendrik Dacquin will talk about <canvas> in a minute.
HTML5 offline functionality can be useful for Flash applications as well.