SlideShare a Scribd company logo
HTML5, CSS3 PRO
Bruce D. Kyle MCP MCSD
Principal Instructor
@brucedkyle
brucedkyle@nextechu.com
Prerequisites & Context
• Pre-course announcement
• Builds on your HTML4 experience
• Passed online HTML exam
– HTML page structure
– Elements and attributes
• Previous class – Dev Tools
• This class – Semantic Tags
• Next class – HTML5 Forms
Context
• Previous class – Dev Tools
• This class – Semantic Tags
• Next class – HTML5 Forms
Copyright 2014 NextechU LLC
Images licensed from Getty Images
SEMANTIC TAGS
New Elements
Class Objectives
• Tell why semantic tags are a big deal
• Know when to use semantic tags on
your Web page
• Identify semantic tags on a Web page
• Determine which browsers (devices)
support semantic tags
• Provide backward compatibility for
legacy browsers
HTML Semantic Tags
<h1>Articles on: Fruit</h1>
<h2>Apple</h2>
<p>The apple is the pomaceous fruit of
the apple tree...</p>
<h2>Orange</h2>
<p>The orange is a hybrid of ancient
cultivated origin, possibly between
pomelo and tangerine...</p>
<h2>Banana</h2>
<p>Bananas come in a variety of sizes
and colors when ripe, including
yellow, purple, and red...</p>
Where is the article?
<h1>Articles on: Fruit</h1>
<h2>Apple</h2>
<p>The apple is the pomaceous fruit of
the apple tree...</p>
<h2>Orange</h2>
<p>The orange is a hybrid of ancient
cultivated origin, possibly between
pomelo and tangerine...</p>
<h2>Banana</h2>
<p>Bananas come in a variety of sizes
and colors when ripe, including
yellow, purple, and red...</p>
Where is the article?
<section>
<h1>Articles on: Fruit</h1>
<article>
<h2>Apple</h2>
<p>The apple is the pomaceous fruit of the
apple tree...</p>
</article>
<article>
<h2>Orange</h2>
<p>The orange is a hybrid of ancient cultivated
origin, possibly between pomelo and
tangerine...</p>
</article>
<article>
<h2>Banana</h2>
<p>Bananas come in a variety of sizes and
colors when ripe, including yellow, purple, and
red...</p>
</article>
</section>
Why new elements?
HTML 4
<div id="nav">
<div class="header">
<div id="footer">
Why new elements?
HTML 4 HTML5
<nav>
<header>
<footer>
<div id="nav">
<div class="header">
<div id="footer">
Semantic Tags
• article
• aside
• audio
• canvas
• command
• datalist
• details
• embed
• figcaption
• figure
• footer
• header
• hgroup
• keygen
• mark
• meter
• nav
• output
• progress
• rp
• rt
• ruby
• section
• source
• summary
• time
• video
• wbr
Semantic Tags
• article
• aside
• audio
• canvas
• command
• datalist
• details
• embed
• figcaption
• figure
• footer
• header
• hgroup
• keygen
• mark
• meter
• nav
• output
• progress
• rp
• rt
• ruby
• section
• source
• summary
• time
• video
• wbr
HTML Semantic Tags
DEMO
Semantic Tag
When to use section and article
<section>
• Independent
• Block of related
content (articles)
• Would the content would make sense on its own in a feed
reader? If so use <article>
• Is the content related? If so use <section>
• Finally if there’s no semantic relationship use <div>
<article>
• Self-contained
composition in a
document, page,
application, or site
• Like a blog article and
its content
<div>
• The content
!
Why Use Semantic Tags?
Semantics are for you, not the other way around
Developer comprehension
Lighter Code Repurposing
Accessibility
Search Engine Optimization
But CanIuse?
But CanIuse?
Modernizr
EXERCISE
Quiz
Which is a semantic tag?
<h1>
<section>
<header>
<a>
Quiz
Who gets the most out of
semantic tags?
A) Bill Gates
B) W3C
C) Google
D) You
Which is a semantic tag?
<h1>
<section>
<header>
<a>
Quiz
What JavaScript library helps you
with backward compatibility?
A) jQuery
B) Q
C) Modernizr
C) My mom’s JavaScript libraryWho gets the most out of
semantic tags?
A) Bill Gates
B) W3C
C) Google
D) You
Which is a semantic tag?
<h1>
<section>
<header>
<a>
Quiz
What JavaScript library helps you
with backward compatibility?
A) jQuery
B) Q
C) Modernizr
C) My mom’s JavaScript library
Which is a semantic tag?
Who gets the most out of
semantic tags?
A) Bill Gates
B) W3C
C) Google
D) You
<h1>
<section>
<header>
<a>
What site tells me if I can use a
HTML5 feature?
A) CanIUse.com
B) CanITryItOut.com
Class Objectives
• Tell why semantic tags are a big
deal
• Know when to use semantic tags on
your Web page
• Inspect semantic tags to a Web page
• Find which browsers (devices)
support semantic tags
• Provide backward compatibility for
legacy browsers
References
• NextechPress:
– HTML5 TUTORIAL – GETTING STARTED WITH SEMANTIC TAGS
– HTML5 TUTORIAL – CHANGES IN HTML4 TO HTML5
• W3C: Semantics, structure, and APIs of HTML documents
– Elements
• Adobe: Using semantic HTML
• Dive into HTML5
• MSDN: Using HTML5's New Semantic Tags Today
YOUR QUESTIONS
HTML5, CSS3 PRO
Bruce D. Kyle MCP MCSD
Principal Instructor
@brucedkyle
brucedkyle@nextechu.com
HTML Semantic Tags
BONUS
How browsers handle unknown elements
• All browsers render unknown elements inline, i.e. as if they had a
display:inline CSS rule.
• You probably want it to act like:
article, aside, figure, footer, header, hgroup, menu, nav,
section {
display: block;
}
Except for IE before IE9
Note: But prior to IE9, IE ignored tags it did not know about. So you may want
to use some JavaScript to replace your semantic elements.
<!--[if lt IE 9]>
<script>
var e = ("abbr,article,aside,audio,canvas,datalist,details," +
"figure,footer,header,hgroup,mark,menu,meter,nav,output," +
"progress,section,time,video").split(',');
for (var i = 0; i < e.length; i++) {
document.createElement(e[i]);
}
</script>
<![endif]-->
Except for IE before IE9
Note: But prior to IE9, IE ignored tags it did not know about. So you may
want to use some JavaScript to create elements.
<!--[if lt IE 9]> <script
src="http://html5shiv.googlecode.com/svn/trunk/html5.js">
</script>
<![endif]-->
Or just use Modernizr, which includes html5shiv

More Related Content

What's hot (20)

PDF
Html / CSS Presentation
Shawn Calvert
 
PPT
Introduction to CSS Borders - Lesson 4
Naresh Sharma
 
PPTX
Css backgrounds
AbhishekMondal42
 
PPTX
HTML/HTML5
People Strategists
 
PDF
Title, heading and paragraph tags
Sara Corpuz
 
PPSX
Introduction to css
Evolution Network
 
PPTX
Css
Hemant Saini
 
PPT
Cascading Style Sheets (CSS) help
casestudyhelp
 
PDF
Basic-CSS-tutorial
tutorialsruby
 
PPTX
Css ppt
Nidhi mishra
 
PPTX
Complete Lecture on Css presentation
Salman Memon
 
PDF
HTML & CSS Masterclass
Bernardo Raposo
 
PPT
CSS Basics
WordPress Memphis
 
PPSX
Introduction to Html5
www.netgains.org
 
PPT
Introduction to CSS
Amit Tyagi
 
PPTX
HTML Block and Inline Elements
Webtech Learning
 
PPT
Css Ppt
Hema Prasanth
 
PPT
CSS ppt
Sanmuga Nathan
 
PPTX
html-table
Dhirendra Chauhan
 
Html / CSS Presentation
Shawn Calvert
 
Introduction to CSS Borders - Lesson 4
Naresh Sharma
 
Css backgrounds
AbhishekMondal42
 
HTML/HTML5
People Strategists
 
Title, heading and paragraph tags
Sara Corpuz
 
Introduction to css
Evolution Network
 
Cascading Style Sheets (CSS) help
casestudyhelp
 
Basic-CSS-tutorial
tutorialsruby
 
Css ppt
Nidhi mishra
 
Complete Lecture on Css presentation
Salman Memon
 
HTML & CSS Masterclass
Bernardo Raposo
 
CSS Basics
WordPress Memphis
 
Introduction to Html5
www.netgains.org
 
Introduction to CSS
Amit Tyagi
 
HTML Block and Inline Elements
Webtech Learning
 
Css Ppt
Hema Prasanth
 
html-table
Dhirendra Chauhan
 

Viewers also liked (6)

PPTX
HTML 5 Fundamental
Lanh Le
 
PPTX
Semantics
amna-shahid
 
PPTX
What’s the big deal about semantic HTML?
Jono Alderson
 
PDF
Best practice of HTML5 Semantic Markup
Toby Yun
 
PPTX
Introduction to the Semantic Web
Tomek Pluskiewicz
 
PPTX
Knowledge Panels, Rich Snippets and Semantic Markup
Bill Slawski
 
HTML 5 Fundamental
Lanh Le
 
Semantics
amna-shahid
 
What’s the big deal about semantic HTML?
Jono Alderson
 
Best practice of HTML5 Semantic Markup
Toby Yun
 
Introduction to the Semantic Web
Tomek Pluskiewicz
 
Knowledge Panels, Rich Snippets and Semantic Markup
Bill Slawski
 
Ad

Similar to HTML Semantic Tags (20)

PPTX
HTML5 Semantic Web
Terry Ryan
 
PPTX
TPIP-1.pptx front end development of css
KorbanMaheshwari
 
PPTX
Training HTML
Motasem alsmadi
 
PPTX
Html5 tutorial for beginners
Singsys Pte Ltd
 
PDF
front-end formations
Ilkin Abdullayev
 
PPTX
Understanding the Web Page Layout
Jhaun Paul Enriquez
 
PDF
Html5 deciphered - designing concepts part 1
Paxcel Technologies
 
PPTX
Mastering HTML: The Building Blocks of the Web
umarkhan92391
 
PPTX
Html5
gjoabraham
 
PPTX
Html5
gjoabraham
 
PPTX
T430-01-Introduction to HTML.pptx
awadalsabbah
 
PPTX
Introduction to html 5
Sayed Ahmed
 
PPTX
HTML5-Tutorial-For-Beginn.6202488.pptx
BCAGen
 
PDF
Vskills certified html5 developer Notes
Vskills
 
PPTX
HTML5 Tutorial
Avinash Malhotra
 
PPTX
HTML5 (Štěpán Bechynský)
Národní technická knihovna (NTK)
 
PPTX
Single Page Applications Workshop Part I: Interesting Topics in HTML5, CSS an...
Jalal Mostafa
 
PPT
Html5 css3 rp-03
Kelly McCathran
 
HTML5 Semantic Web
Terry Ryan
 
TPIP-1.pptx front end development of css
KorbanMaheshwari
 
Training HTML
Motasem alsmadi
 
Html5 tutorial for beginners
Singsys Pte Ltd
 
front-end formations
Ilkin Abdullayev
 
Understanding the Web Page Layout
Jhaun Paul Enriquez
 
Html5 deciphered - designing concepts part 1
Paxcel Technologies
 
Mastering HTML: The Building Blocks of the Web
umarkhan92391
 
Html5
gjoabraham
 
Html5
gjoabraham
 
T430-01-Introduction to HTML.pptx
awadalsabbah
 
Introduction to html 5
Sayed Ahmed
 
HTML5-Tutorial-For-Beginn.6202488.pptx
BCAGen
 
Vskills certified html5 developer Notes
Vskills
 
HTML5 Tutorial
Avinash Malhotra
 
HTML5 (Štěpán Bechynský)
Národní technická knihovna (NTK)
 
Single Page Applications Workshop Part I: Interesting Topics in HTML5, CSS an...
Jalal Mostafa
 
Html5 css3 rp-03
Kelly McCathran
 
Ad

Recently uploaded (20)

PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
July Patch Tuesday
Ivanti
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
July Patch Tuesday
Ivanti
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Biography of Daniel Podor.pdf
Daniel Podor
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 

HTML Semantic Tags

  • 1. HTML5, CSS3 PRO Bruce D. Kyle MCP MCSD Principal Instructor @brucedkyle [email protected]
  • 2. Prerequisites & Context • Pre-course announcement • Builds on your HTML4 experience • Passed online HTML exam – HTML page structure – Elements and attributes • Previous class – Dev Tools • This class – Semantic Tags • Next class – HTML5 Forms
  • 3. Context • Previous class – Dev Tools • This class – Semantic Tags • Next class – HTML5 Forms
  • 4. Copyright 2014 NextechU LLC Images licensed from Getty Images
  • 6. Class Objectives • Tell why semantic tags are a big deal • Know when to use semantic tags on your Web page • Identify semantic tags on a Web page • Determine which browsers (devices) support semantic tags • Provide backward compatibility for legacy browsers
  • 8. <h1>Articles on: Fruit</h1> <h2>Apple</h2> <p>The apple is the pomaceous fruit of the apple tree...</p> <h2>Orange</h2> <p>The orange is a hybrid of ancient cultivated origin, possibly between pomelo and tangerine...</p> <h2>Banana</h2> <p>Bananas come in a variety of sizes and colors when ripe, including yellow, purple, and red...</p> Where is the article?
  • 9. <h1>Articles on: Fruit</h1> <h2>Apple</h2> <p>The apple is the pomaceous fruit of the apple tree...</p> <h2>Orange</h2> <p>The orange is a hybrid of ancient cultivated origin, possibly between pomelo and tangerine...</p> <h2>Banana</h2> <p>Bananas come in a variety of sizes and colors when ripe, including yellow, purple, and red...</p> Where is the article? <section> <h1>Articles on: Fruit</h1> <article> <h2>Apple</h2> <p>The apple is the pomaceous fruit of the apple tree...</p> </article> <article> <h2>Orange</h2> <p>The orange is a hybrid of ancient cultivated origin, possibly between pomelo and tangerine...</p> </article> <article> <h2>Banana</h2> <p>Bananas come in a variety of sizes and colors when ripe, including yellow, purple, and red...</p> </article> </section>
  • 10. Why new elements? HTML 4 <div id="nav"> <div class="header"> <div id="footer">
  • 11. Why new elements? HTML 4 HTML5 <nav> <header> <footer> <div id="nav"> <div class="header"> <div id="footer">
  • 12. Semantic Tags • article • aside • audio • canvas • command • datalist • details • embed • figcaption • figure • footer • header • hgroup • keygen • mark • meter • nav • output • progress • rp • rt • ruby • section • source • summary • time • video • wbr
  • 13. Semantic Tags • article • aside • audio • canvas • command • datalist • details • embed • figcaption • figure • footer • header • hgroup • keygen • mark • meter • nav • output • progress • rp • rt • ruby • section • source • summary • time • video • wbr
  • 16. When to use section and article <section> • Independent • Block of related content (articles) • Would the content would make sense on its own in a feed reader? If so use <article> • Is the content related? If so use <section> • Finally if there’s no semantic relationship use <div> <article> • Self-contained composition in a document, page, application, or site • Like a blog article and its content <div> • The content !
  • 18. Semantics are for you, not the other way around Developer comprehension Lighter Code Repurposing Accessibility Search Engine Optimization
  • 23. Quiz Which is a semantic tag? <h1> <section> <header> <a>
  • 24. Quiz Who gets the most out of semantic tags? A) Bill Gates B) W3C C) Google D) You Which is a semantic tag? <h1> <section> <header> <a>
  • 25. Quiz What JavaScript library helps you with backward compatibility? A) jQuery B) Q C) Modernizr C) My mom’s JavaScript libraryWho gets the most out of semantic tags? A) Bill Gates B) W3C C) Google D) You Which is a semantic tag? <h1> <section> <header> <a>
  • 26. Quiz What JavaScript library helps you with backward compatibility? A) jQuery B) Q C) Modernizr C) My mom’s JavaScript library Which is a semantic tag? Who gets the most out of semantic tags? A) Bill Gates B) W3C C) Google D) You <h1> <section> <header> <a> What site tells me if I can use a HTML5 feature? A) CanIUse.com B) CanITryItOut.com
  • 27. Class Objectives • Tell why semantic tags are a big deal • Know when to use semantic tags on your Web page • Inspect semantic tags to a Web page • Find which browsers (devices) support semantic tags • Provide backward compatibility for legacy browsers
  • 28. References • NextechPress: – HTML5 TUTORIAL – GETTING STARTED WITH SEMANTIC TAGS – HTML5 TUTORIAL – CHANGES IN HTML4 TO HTML5 • W3C: Semantics, structure, and APIs of HTML documents – Elements • Adobe: Using semantic HTML • Dive into HTML5 • MSDN: Using HTML5's New Semantic Tags Today
  • 30. HTML5, CSS3 PRO Bruce D. Kyle MCP MCSD Principal Instructor @brucedkyle [email protected]
  • 32. BONUS
  • 33. How browsers handle unknown elements • All browsers render unknown elements inline, i.e. as if they had a display:inline CSS rule. • You probably want it to act like: article, aside, figure, footer, header, hgroup, menu, nav, section { display: block; }
  • 34. Except for IE before IE9 Note: But prior to IE9, IE ignored tags it did not know about. So you may want to use some JavaScript to replace your semantic elements. <!--[if lt IE 9]> <script> var e = ("abbr,article,aside,audio,canvas,datalist,details," + "figure,footer,header,hgroup,mark,menu,meter,nav,output," + "progress,section,time,video").split(','); for (var i = 0; i < e.length; i++) { document.createElement(e[i]); } </script> <![endif]-->
  • 35. Except for IE before IE9 Note: But prior to IE9, IE ignored tags it did not know about. So you may want to use some JavaScript to create elements. <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"> </script> <![endif]--> Or just use Modernizr, which includes html5shiv

Editor's Notes

  • #2: I’m Bruce Kyle, principal instructor at NextechU.For the next 20 minutes or so I’ll the your principal instructor that continues with the features of HTML5.
  • #3: I understand everyone here has completed and passed an online exam that shows you have knowledge of HTML.Show of hands… anyone here built web pages or apps using HTML5?Well the cool part is that HTML5 build on HTML4… so we’ll be building on your skills today.Today we’ll be add to your web and app development skills. You will be able to use semantic tags, know where and when to use 9 new tags, and use them even on browsers that do not support them.
  • #5: HTML5 is a series of specifications that began in 2004. The teams studied websites implementations and Web content. And they came up with a new series of specs that are being implemented in browsers for PCs and devices.The specification:Defines a single language called HTML. You can write it using either the HTML syntax (where it is not required to close all tags) and in XML syntax (where you must close your tags).Defines detailed processing models make it easier to interoperate.Improves markup for documents (which we will talk about here).Introduces markup and APIs for that can be used in PCs, tablets, and phones.
  • #6: Today we are talking about one of those specifications – the one about semantic tagsIn particular in this class you will learn about specific elements that you can start using today in your apps for web and phones.The main idea of semantic tags is that they help you describe the intent of your markup.
  • #7: In today’s class we covered:What semantic tags are all about and when to use themYou will have identified them in a Web pageYou will be able to know which browsers and devices support semantic tagsAnd you will have a couple strategies to providing backward compatibility
  • #8: Here are some screen shots of my web page. And you’ll see all the parts that make up my page. Up top is the header and navigation bar. There are articles that provide information about the classes. And there’s a section a footer.With HTML4 there really isn’t a way to describe what the parts of the page are. You can imagine what this page looks like in HTML4, where markup describes each of the pieces, but none of the context.Wouldn’t it be helpful to know what the intent is and where the parts of the page is?DevelopersScreen readersSearch enginesAnd you yourself might want to find these parts of the page easily?Let’s look at some code
  • #9: Here’s a bunch of markup that you might have in your app.Where’s the article?
  • #11: When they decided on what tags to include in the specification, they looked at millions of web pages.What they found was that most web pages had common elements.Most had navigation bar, a header, a footer.
  • #13: The two groups working on HTML5 came up with these semantic tags. These tags can be used to define the parts of your page. There are 28 or so listed here.We’ll be looking at 8 that you can start using today.
  • #14: We’ll be looking at a few of these today – those that are in bold ones in teal.There are 8 tags that we’ll talk about in this class.These are well supported in modern browsers. And they can have the biggest impact in your coding style today.The following elements have been introduced for better structure:section represents a generic document or application section. It can be used together with the h1, h2, h3, h4, h5, and h6 elements to indicate the document structure.article represents an independent piece of content of a document, such as a blog entry or newspaper article.aside represents a piece of content that is only slightly related to the rest of the page.header represents a group of introductory or navigational aids.footer represents a footer for a section and can contain information about the author, copyright information, etc.nav represents a section of the document intended for navigation.figure represents a piece of self-contained flow content, typically referenced as a single unit from the main flow of the document.&lt;figure&gt; &lt;video src=&quot;example.webm&quot; controls&gt;&lt;/video&gt; &lt;figcaption&gt;Example&lt;/figcaption&gt; &lt;/figure&gt;figcaption can be used as caption (it is optional).
  • #15: The following elements have been introduced for better structure:section represents a generic document or application section. It can be used together with the h1, h2, h3, h4, h5, and h6 elements to indicate the document structure.article represents an independent piece of content of a document, such as a blog entry or newspaper article.aside represents a piece of content that is only slightly related to the rest of the page.header represents a group of introductory or navigational aids.footer represents a footer for a section and can contain information about the author, copyright information, etc.nav represents a section of the document intended for navigation.figure represents a piece of self-contained flow content, typically referenced as a single unit from the main flow of the document.&lt;figure&gt; &lt;video src=&quot;example.webm&quot; controls&gt;&lt;/video&gt; &lt;figcaption&gt;Example&lt;/figcaption&gt; &lt;/figure&gt;figcaption can be used as caption (it is optional).
  • #16: Class participation demoTake this code and ask the class where to insert the following tags:HeaderSectionArticleAsideFigureFigCaption&lt;!DOCTYPE HTML&gt;&lt;html&gt;&lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt; &lt;title&gt;Your Website&lt;/title&gt;&lt;/head&gt; &lt;body&gt; &lt;div id=&quot;header&quot;&gt; &lt;div class=&quot;nav&quot;&gt; &lt;ul&gt; &lt;li&gt;Your menu&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;content&quot;&gt; &lt;h2&gt;Article title&lt;/h2&gt; &lt;p&gt;Posted on &lt;time datetime=&quot;2009-09-04T16:31:24+02:00&quot;&gt;September 4th 2009&lt;/time&gt; by &lt;a href=&quot;#&quot;&gt;Writer&lt;/a&gt; - &lt;a href=&quot;#comments&quot;&gt;6 comments&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Pellentesque habitant morbitristiquesenectus et netus et malesuada fames ac turpisegestas.&lt;/p&gt;&lt;div class=&quot;aside“&gt; &lt;h2&gt;About section&lt;/h2&gt; &lt;p&gt;Doneceulibero sit amet quam egestas semper. Aeneanultricies mi vitae est. Maurisplacerateleifendleo.&lt;/p&gt;&lt;/div&gt; &lt;p&gt;Copyright 2009 Your name&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;&lt;!DOCTYPE HTML&gt;&lt;html&gt;&lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt; &lt;title&gt;Your Website&lt;/title&gt;&lt;/head&gt; &lt;body&gt; &lt;header&gt; &lt;div class=&quot;nav&quot;&gt; &lt;ul&gt; &lt;li&gt;Your menu&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/header&gt;&lt;section&gt;&lt;article&gt;&lt;h2&gt;Article title&lt;/h2&gt; &lt;p&gt;Posted on &lt;time datetime=&quot;2009-09-04T16:31:24+02:00&quot;&gt;September 4th 2009&lt;/time&gt; by &lt;a href=&quot;#&quot;&gt;Writer&lt;/a&gt; - &lt;a href=&quot;#comments&quot;&gt;6 comments&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Pellentesque habitant morbitristiquesenectus et netus et malesuada fames ac turpisegestas.&lt;/p&gt;&lt;/article&gt; &lt;/section&gt;&lt;aside&gt; &lt;h2&gt;About section&lt;/h2&gt; &lt;p&gt;Doneceulibero sit amet quam egestas semper. Aeneanultricies mi vitae est. Maurisplacerateleifendleo.&lt;/p&gt;&lt;/aside&gt;&lt;footer&gt; &lt;p&gt;Copyright 2014 Your name&lt;/p&gt; &lt;/footer&gt;&lt;/body&gt;&lt;/html&gt;
  • #17: HTML is defined in a way that is backward compatible with the way user agents handle content. To keep the language relatively simple for Web developers, several older elements and attributes are not included, as outlined in the other sections of this document, such as presentational elements that are better handled using CSSsection represents a generic document or application section. It can be used together with the h1, h2, h3, h4, h5, and h6 elements to indicate the document structure.article represents an independent piece of content of a document, such as a blog entry or newspaper article.main can be used as a container for the dominant contents of another element, such as the main content of the page. In W3C HTML5 and W3C HTML 5.1, only one such element is allowed in a document.aside represents a piece of content that is only slightly related to the rest of the page.In WHATWG HTML, hgroup represents the header of a section.header represents a group of introductory or navigational aids.footer represents a footer for a section and can contain information about the author, copyright information, etc.nav represents a section of the document intended for navigation.figure represents a piece of self-contained flow content, typically referenced as a single unit from the main flow of the document.&lt;figure&gt; &lt;video src=&quot;example.webm&quot; controls&gt;&lt;/video&gt; &lt;figcaption&gt;Example&lt;/figcaption&gt; &lt;/figure&gt;figcaption can be used as caption (it is optional).
  • #18: Split into two teams based on their experience.Team 1, reluctant to type:Inspect google.com and w3c to determine if they support HTML5 semantic tags.(Use F12 Key to bring up dev tools. Search)Test http://www.nextechu.com critique the use of semantic tagsAlso try http://www.google.com and http://Microsoft.comhttp://lostworldsfairs.com/http://www.keyzo.co.uk/http://tatuarte.org/Team 2. Take the following code and use semantic tags.Puts boxes and colors the various sections.
  • #19: The &lt;article&gt; element is a specialized kind of &lt;section&gt;; it has a more specific semantic meaning than &lt;section&gt; in that it is an independent, self-contained block of related content. We could use &lt;section&gt;, but using &lt;article&gt; gives more semantic meaning to the content.By contrast &lt;section&gt; is only a block of related content, and &lt;div&gt; is only a block of content. A sectionrepresents a generic document or application section. It can be used together with the h1, h2, h3, h4, h5, and h6 elements to indicate the document structure.An articleFrom W3c:represents an independent piece of content of a document, such as a blog entry or newspaper articleThe easiest way to conceptualise &lt;article&gt; is to think of its use in a weblog, as mentioned in the spec’s examples “a blog entry” and “user-submitted comments.”An independent piece of content, one suitable for putting in an &lt;article&gt; element, is content that makes sense on its own. An asiderepresents a piece of content that is only slightly related to the rest of the page.
  • #20: A sectionAn articleThe easiest way to conceptualise &lt;article&gt; is to think of its use in a weblog, as mentioned in the spec’s examples “a blog entry” and “user-submitted comments.”An independent piece of content, one suitable for putting in an &lt;article&gt; element, is content that makes sense on its own.
  • #21: What are some of the reasons you’ve learned to use semantic tags?
  • #22: Traditionally, there are five main arguments in favor of semantic HTML.Lighter codeSemantic HTML styled by CSS typically requires less code than HTML formatted by tables. However, it&apos;s worth noting that you can write table-less HTML that isn&apos;t semantic. You&apos;ll still probably reduce the size of your code, but you won&apos;t make the code any easier to understand.AccessibilityAccessibility enables people with disabilities to consume your site. Semantic code tends to be more accessible. When you properly label your pages with semantic tags, you make it easier for screen readers and other assistive technologies. Semantic tags are not a silver bullet -- it just makes building accessible sites a little easier.Search engine optimizationSemantic HTML tends to improve search engine optimization (SEO) by making your site easier for software to parse your site content. Search engines scan the HTML text contained in your HTML files. They don&apos;t render CSS; they don&apos;t run JavaScript. If your important content isn&apos;t in the HTML, search engines may never see it, and won&apos;t rank you accordingly. Semantic tags tend to make it is easier for a search engines to get at what your site is really about. This technique is considered &quot;white hat&quot; SEO. It&apos;s perfectly acceptable, and no search engine is going to penalize you because you semantically optimized your page. It should be noted that there is no guarantee that semantic HTML is better for SEO. Web developers think search engines favor semantic HTML, and Google&apos;s input into HTML5 suggests that they do. However, search engines closely guard their algorithms, and have to allow for the fact that extremely relevant content may be placed in nonsemantic HTML.RepurposingSemantic HTML takes advantage of the fact that a news item will always be a news item, and an archive will always be an archive, no matter where they are positioned on the page. However, a rightbar won&apos;t always be on the right side. Additionally if you are syndicating your content via an RSS feed and including HTML in it, the less markup the better. However, most sites and blogs don&apos;t syndicate their content straight from prepared HTML. They&apos;re usually built separately, and the syndication format is handled to make sure that other consumers understand the content.Developer comprehensionI contend that there is a really good reason to write semantic HTML today. Coding is communication, both to a computer (which is the easy part) and to other developers. Semantic HTML is easier for humans to understand than nonsemantic HTML. With semantic tags you can increase the ease with which consumers of web content can understand what all the pieces of your web content mean.
  • #24: Caniuse.comWith HTML5 winding its way through the process at the W3CCheckCompatibility tables for support of HTML5, CSS3, SVG and more in desktop and mobile browsers.But what if you need to support a browser that isn’t on the list?
  • #25: You can use a bit of JavaScript known as ModernizrThis bit of JavaScript and it’s companion html5shiv.js takes the elements that the browser does not know about and converts them to ones the browser does know about.It’s magic.(if there’s time.. Let’s look at an example)
  • #26: Split into two teams based on their experience.Team 1, reluctant to type:Inspect google.com and w3c to determine if they support HTML5 semantic tags.(Use F12 Key to bring up dev tools. Search)Test http://www.nextechu.com critique the use of semantic tagsAlso try http://www.google.com and http://Microsoft.comTeam 2. Take the following code and use semantic tags.Puts boxes and colors the various sections.&lt;!DOCTYPE html&gt;&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;head&gt; &lt;title&gt;Exercise&lt;/title&gt; &lt;style&gt;nav { text-decoration: underline; }navul li { display: inline; } header { font-size: x-large; font: bolder verdana; color: orangered; } section { font-style: normal; font-size: medium; color: blue; } article { color: purple; } footer { font-style: italic; color: green; } &lt;/style&gt;&lt;/head&gt;&lt;body&gt; &lt;div id=&quot;nav&quot;&gt; &lt;ul&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;This page&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Also this page&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id=&quot;content&quot;&gt; &lt;div class=&quot;header&quot;&gt; &lt;h1&gt;Anchoring isn&apos;t for beginners&lt;/h1&gt; &lt;p&gt;&lt;time pubdatedatetime=&quot;2009-10-09T14:28-08:00&quot;&gt;&lt;/time&gt;&lt;/p&gt; &lt;/div&gt; &lt;p&gt;If you&apos;ve ever chartered a 45ft catamaran, you know that mooring balls are your friends. They protect the coral and sea bottom from the constant abuse of frequently anchoring boats.&lt;/p&gt; &lt;p&gt;...&lt;/p&gt; &lt;h1&gt;Comments&lt;/h1&gt; &lt;div&gt; &lt;div class=&quot;footer&quot;&gt; &lt;p&gt;Posted by: Peg Leg Patooty&lt;/p&gt; &lt;p&gt;&lt;time pubdatedatetime=&quot;2009-10-10T19:10-08:00&quot;&gt;&lt;/time&gt;&lt;/p&gt; &lt;/div&gt; &lt;p&gt;Right! Mooring balls are for wusses! Pirates only use anchors! Arrrrr!&lt;/p&gt; &lt;/div&gt; &lt;div&gt; &lt;div class=&quot;footer&quot;&gt; &lt;p&gt;Posted by: Ariel&lt;/p&gt; &lt;p&gt;&lt;time pubdatedatetime=&quot;2009-10-10T19:15-08:00&quot;&gt;&lt;/time&gt;&lt;/p&gt; &lt;/div&gt; &lt;p&gt;Thank you for thinking of what&apos;s under the sea. Even Ursula would be thrilled.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;footer&quot;&gt; &lt;a href=&quot;http://www.adobe.com/devnet/dreamweaver/articles/understanding-html5-semantics.html&quot;&gt;Creative Common Attribution&lt;/a&gt; &lt;/div&gt;&lt;/body&gt;&lt;/html&gt;
  • #31: In today’s class we covered:What semantic tags are all about and when to use themYou will have added them to a Web pageYou will be able to know which browsers and devices support semantic tagsAnd you will have a couple strategies to providing backward compatibility
  • #33: Split into two teams based on their experience.Team 1, reluctant to type:Inspect google.com and w3c to determine if they support HTML5 semantic tags.(Use F12 Key to bring up dev tools. Search)Test http://www.nextechu.com critique the use of semantic tagsAlso try http://www.google.com and http://Microsoft.comTeam 2. Take the following code and use semantic tags.Puts boxes and colors the various sections.&lt;!DOCTYPE html&gt;&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;head&gt; &lt;title&gt;Exercise&lt;/title&gt; &lt;style&gt;nav { text-decoration: underline; }navul li { display: inline; } header { font-size: x-large; font: bolder verdana; color: orangered; } section { font-style: normal; font-size: medium; color: blue; } article { color: purple; } footer { font-style: italic; color: green; } &lt;/style&gt;&lt;/head&gt;&lt;body&gt; &lt;div id=&quot;nav&quot;&gt; &lt;ul&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;This page&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Also this page&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id=&quot;content&quot;&gt; &lt;div class=&quot;header&quot;&gt; &lt;h1&gt;Anchoring isn&apos;t for beginners&lt;/h1&gt; &lt;p&gt;&lt;time pubdatedatetime=&quot;2009-10-09T14:28-08:00&quot;&gt;&lt;/time&gt;&lt;/p&gt; &lt;/div&gt; &lt;p&gt;If you&apos;ve ever chartered a 45ft catamaran, you know that mooring balls are your friends. They protect the coral and sea bottom from the constant abuse of frequently anchoring boats.&lt;/p&gt; &lt;p&gt;...&lt;/p&gt; &lt;h1&gt;Comments&lt;/h1&gt; &lt;div&gt; &lt;div class=&quot;footer&quot;&gt; &lt;p&gt;Posted by: Peg Leg Patooty&lt;/p&gt; &lt;p&gt;&lt;time pubdatedatetime=&quot;2009-10-10T19:10-08:00&quot;&gt;&lt;/time&gt;&lt;/p&gt; &lt;/div&gt; &lt;p&gt;Right! Mooring balls are for wusses! Pirates only use anchors! Arrrrr!&lt;/p&gt; &lt;/div&gt; &lt;div&gt; &lt;div class=&quot;footer&quot;&gt; &lt;p&gt;Posted by: Ariel&lt;/p&gt; &lt;p&gt;&lt;time pubdatedatetime=&quot;2009-10-10T19:15-08:00&quot;&gt;&lt;/time&gt;&lt;/p&gt; &lt;/div&gt; &lt;p&gt;Thank you for thinking of what&apos;s under the sea. Even Ursula would be thrilled.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;footer&quot;&gt; &lt;a href=&quot;http://www.adobe.com/devnet/dreamweaver/articles/understanding-html5-semantics.html&quot;&gt;Creative Common Attribution&lt;/a&gt; &lt;/div&gt;&lt;/body&gt;&lt;/html&gt;
  • #34: In out next class, you will learn more about CSS3.
  • #36: Split into two teams based on their experience.Team 1, reluctant to type:Inspect google.com and w3c to determine if they support HTML5 semantic tags.(Use F12 Key to bring up dev tools. Search)Test http://www.nextechu.com critique the use of semantic tagsAlso try http://www.google.com and http://Microsoft.comhttp://lostworldsfairs.com/http://www.keyzo.co.uk/http://tatuarte.org/Team 2. Take the following code and use semantic tags.Puts boxes and colors the various sections.