SlideShare a Scribd company logo
1 of 29
Structures, Semantics, Controls, and More: HTML 5 is Here! Char James-Tanny JTF Associates, Inc. http://jtfassociates.com char@jtfassociates.com ~ @charjtf Copyright © 2010 JTF Associates, Inc. 1
Copyright © 2010 JTF Associates, Inc.
Background Copyright © 2010 JTF Associates, Inc. 3
Timeline Copyright © 2010 JTF Associates, Inc. 4 11/1996 XML (first working draft) 1/08 HTML 5 (working draft) 2001 Semantic Web 12/96 CSS1 5/98 CSS2 5/96 HTML 2.0 (tables added) 1/97 HTML 3.2 12/97 HTML 4 1/00 XHTML 1.0 5/01 XHTML 1.1 6/04 HTML 5 Development Starts 11/95 HTML 2.0 (IETF) Not to scale
Layout Stages Copyright © 2010 JTF Associates, Inc. 5 row row column column row row 1996 Tables (HTML 2)
Layout Stages Copyright © 2010 JTF Associates, Inc. 5 div div div div div 1997 DIVs (HTML 3.2)
Layout Stages Copyright © 2010 JTF Associates, Inc. 5 header nav article aside section section aside footer 2004 Semantic Structure (HTML 5)
HTML 5 Stages 2004: Development starts (WHATWG) “…new version of HTML 4, XHTML 1, and DOM Level 2” “…defines many APIs that form the basis of Web architecture” 2008: First Public Working Draft 2012: W3C Candidate Recommendation 2022: W3C Recommendation Copyright © 2010 JTF Associates, Inc. 6
Elements and Attributes Copyright © 2010 JTF Associates, Inc. 7
DOCTYPE <!DOCTYPE html> Not… <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">  OR <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd> Copyright © 2010 JTF Associates, Inc. 8
Structural(Semantic) Elements Copyright © 2010 JTF Associates, Inc. 9 <header> <nav> <article> <header> <nav> <article> <section> <aside> <footer> <aside> <section> <aside> <section> <footer>
Other New Elements audio and video canvas command datalist figure and figcaption mark time Copyright © 2010 JTF Associates, Inc. 10
Element/Attribute Syntax No rules: Mix case (not case sensitive) Double quotes, single quotes, no quotes Closing tags not required for void elements Optional attribute values Allows for easier conversion from older specs Just be consistent! I use XHTML syntax. Copyright © 2010 JTF Associates, Inc. 11
Element/Attribute Examples <imgsrc=“pic.gif" width="207" height="47" alt=“alt text here" /> <imgsrc=pic.gif width=207 height=47 alt=alt text here /> <IMG src=“pic.gif" width=207 height="47" alt> Copyright © 2010 JTF Associates, Inc. 12
New Controls Drag-and-drop Editable Areas Geolocation (not really HTML5) Client-side Storage (session, local, database) Copyright © 2010 JTF Associates, Inc. 13
Some Important Changes No attributes on <body> Can link block level elements (of content) Be sure to set a to use { display: block; } Create anchors by adding id to tag: <h1 id=“welcome”>Welcome!</h1> NOT <h1><a name=“welcome”>Welcome!</a></h1> Copyright © 2010 JTF Associates, Inc. 14
Browser Compatibility and Support Copyright © 2010 JTF Associates, Inc. 15
Browser Compatibility Opera 10.1 Safari 4 Chrome 4 FF 3.6 IE6/IE7/IE8: Needs script to define elements Shiv script available Some pages still won’t work. When Can I Use… http://a.deveria.com/caniuse/ Copyright © 2010 JTF Associates, Inc. 16 Lots of support for many elements
Conversion Issues Copyright © 2010 JTF Associates, Inc. 17
Planning the Process Decide which syntax you will use. Add new DOCTYPE. Reduce content in <head> (see PDF). Remove all presentation tags and attributes, and replace with CSS. Remove all table tags and replace with structural tags. If necessary, learn HTML4, CSS, and semantics. Copyright © 2010 JTF Associates, Inc. 18
Here’s What You Need to Know Adding the new HTML 5 DOCTYPE makes the page HTML 5. Google now uses HTML 5. You can use many of the new elements and attributes now. Obsolete elements will still work. However, the page won’t be valid HTML 5. See PDF – page 1 for list. Copyright © 2010 JTF Associates, Inc. 19
Demos Copyright © 2010 JTF Associates, Inc. 20
Copyright © 2010 JTF Associates, Inc.
Copyright © 2010 JTF Associates, Inc. 24
Copyright © 2010 JTF Associates, Inc.
Copyright © 2010 JTF Associates, Inc. 26
Copyright © 2010 JTF Associates, Inc.
Copyright © 2010 JTF Associates, Inc. 28
WritersUA Samples Visit http://jtfassociates.com/wua2010 for sample HTML files. Copyright © 2010 JTF Associates, Inc. 24

More Related Content

Similar to Structures, Semantics, Controls, and More: HTML 5 is Here!

Similar to Structures, Semantics, Controls, and More: HTML 5 is Here! (20)

Html5
Html5Html5
Html5
 
Html 5 Features And Benefits
Html 5 Features And Benefits  Html 5 Features And Benefits
Html 5 Features And Benefits
 
HTML 5 vs. XHTML 2: The Future of Web Standards
HTML 5 vs. XHTML 2: The Future of Web StandardsHTML 5 vs. XHTML 2: The Future of Web Standards
HTML 5 vs. XHTML 2: The Future of Web Standards
 
HTML5
HTML5HTML5
HTML5
 
Html5
Html5Html5
Html5
 
HTML5: The Next Internet Goldrush
HTML5: The Next Internet GoldrushHTML5: The Next Internet Goldrush
HTML5: The Next Internet Goldrush
 
HTML 5 Overview
HTML 5 OverviewHTML 5 Overview
HTML 5 Overview
 
Is it time to start using HTML 5
Is it time to start using HTML 5Is it time to start using HTML 5
Is it time to start using HTML 5
 
Introduction to html5
Introduction to html5Introduction to html5
Introduction to html5
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
HTML 5
HTML 5HTML 5
HTML 5
 
Introduction to html55
Introduction to html55Introduction to html55
Introduction to html55
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
1. introduction to html5
1. introduction to html51. introduction to html5
1. introduction to html5
 

Recently uploaded

AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 

Recently uploaded (20)

AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 

Structures, Semantics, Controls, and More: HTML 5 is Here!

  • 1. Structures, Semantics, Controls, and More: HTML 5 is Here! Char James-Tanny JTF Associates, Inc. http://jtfassociates.com char@jtfassociates.com ~ @charjtf Copyright © 2010 JTF Associates, Inc. 1
  • 2. Copyright © 2010 JTF Associates, Inc.
  • 3. Background Copyright © 2010 JTF Associates, Inc. 3
  • 4. Timeline Copyright © 2010 JTF Associates, Inc. 4 11/1996 XML (first working draft) 1/08 HTML 5 (working draft) 2001 Semantic Web 12/96 CSS1 5/98 CSS2 5/96 HTML 2.0 (tables added) 1/97 HTML 3.2 12/97 HTML 4 1/00 XHTML 1.0 5/01 XHTML 1.1 6/04 HTML 5 Development Starts 11/95 HTML 2.0 (IETF) Not to scale
  • 5. Layout Stages Copyright © 2010 JTF Associates, Inc. 5 row row column column row row 1996 Tables (HTML 2)
  • 6. Layout Stages Copyright © 2010 JTF Associates, Inc. 5 div div div div div 1997 DIVs (HTML 3.2)
  • 7. Layout Stages Copyright © 2010 JTF Associates, Inc. 5 header nav article aside section section aside footer 2004 Semantic Structure (HTML 5)
  • 8. HTML 5 Stages 2004: Development starts (WHATWG) “…new version of HTML 4, XHTML 1, and DOM Level 2” “…defines many APIs that form the basis of Web architecture” 2008: First Public Working Draft 2012: W3C Candidate Recommendation 2022: W3C Recommendation Copyright © 2010 JTF Associates, Inc. 6
  • 9. Elements and Attributes Copyright © 2010 JTF Associates, Inc. 7
  • 10. DOCTYPE <!DOCTYPE html> Not… <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> OR <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd> Copyright © 2010 JTF Associates, Inc. 8
  • 11. Structural(Semantic) Elements Copyright © 2010 JTF Associates, Inc. 9 <header> <nav> <article> <header> <nav> <article> <section> <aside> <footer> <aside> <section> <aside> <section> <footer>
  • 12. Other New Elements audio and video canvas command datalist figure and figcaption mark time Copyright © 2010 JTF Associates, Inc. 10
  • 13. Element/Attribute Syntax No rules: Mix case (not case sensitive) Double quotes, single quotes, no quotes Closing tags not required for void elements Optional attribute values Allows for easier conversion from older specs Just be consistent! I use XHTML syntax. Copyright © 2010 JTF Associates, Inc. 11
  • 14. Element/Attribute Examples <imgsrc=“pic.gif" width="207" height="47" alt=“alt text here" /> <imgsrc=pic.gif width=207 height=47 alt=alt text here /> <IMG src=“pic.gif" width=207 height="47" alt> Copyright © 2010 JTF Associates, Inc. 12
  • 15. New Controls Drag-and-drop Editable Areas Geolocation (not really HTML5) Client-side Storage (session, local, database) Copyright © 2010 JTF Associates, Inc. 13
  • 16. Some Important Changes No attributes on <body> Can link block level elements (of content) Be sure to set a to use { display: block; } Create anchors by adding id to tag: <h1 id=“welcome”>Welcome!</h1> NOT <h1><a name=“welcome”>Welcome!</a></h1> Copyright © 2010 JTF Associates, Inc. 14
  • 17. Browser Compatibility and Support Copyright © 2010 JTF Associates, Inc. 15
  • 18. Browser Compatibility Opera 10.1 Safari 4 Chrome 4 FF 3.6 IE6/IE7/IE8: Needs script to define elements Shiv script available Some pages still won’t work. When Can I Use… http://a.deveria.com/caniuse/ Copyright © 2010 JTF Associates, Inc. 16 Lots of support for many elements
  • 19. Conversion Issues Copyright © 2010 JTF Associates, Inc. 17
  • 20. Planning the Process Decide which syntax you will use. Add new DOCTYPE. Reduce content in <head> (see PDF). Remove all presentation tags and attributes, and replace with CSS. Remove all table tags and replace with structural tags. If necessary, learn HTML4, CSS, and semantics. Copyright © 2010 JTF Associates, Inc. 18
  • 21. Here’s What You Need to Know Adding the new HTML 5 DOCTYPE makes the page HTML 5. Google now uses HTML 5. You can use many of the new elements and attributes now. Obsolete elements will still work. However, the page won’t be valid HTML 5. See PDF – page 1 for list. Copyright © 2010 JTF Associates, Inc. 19
  • 22. Demos Copyright © 2010 JTF Associates, Inc. 20
  • 23. Copyright © 2010 JTF Associates, Inc.
  • 24. Copyright © 2010 JTF Associates, Inc. 24
  • 25. Copyright © 2010 JTF Associates, Inc.
  • 26. Copyright © 2010 JTF Associates, Inc. 26
  • 27. Copyright © 2010 JTF Associates, Inc.
  • 28. Copyright © 2010 JTF Associates, Inc. 28
  • 29. WritersUA Samples Visit http://jtfassociates.com/wua2010 for sample HTML files. Copyright © 2010 JTF Associates, Inc. 24

Editor's Notes

  1. http://9elements.com/io/projects/html5/canvas/ - FF
  2. Internet Engineering Task Force (IETF), Web Hypertext Application Technology Working Group (WHATWG); CSS3 introduced May 2001
  3. http://html5doctor.com/aside-revisited/
  4. http://html5doctor.com/aside-revisited/
  5. http://html5doctor.com/aside-revisited/
  6. WHATWG: Web Hypertext Application Technology Working GroupHTML 5 is about moving HTML away from document markup and turning it into a language for web applications.
  7. Body: no a, background, bgcolor, link, text, vlink attributes. Other attributes are allowed.
  8. http://www.gesteves.com/experiments/starwars.html
  9. http://standards-next.org/ - Firefox