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

PPTX
Html5 semantics
PDF
Intro to HTML and CSS basics
PDF
Html text and formatting
PPTX
HTML Semantic Elements
PDF
HTML and CSS crash course!
PDF
Introduction to HTML and CSS
PPTX
PDF
Introduction to Javascript
Html5 semantics
Intro to HTML and CSS basics
Html text and formatting
HTML Semantic Elements
HTML and CSS crash course!
Introduction to HTML and CSS
Introduction to Javascript

What's hot (20)

PPT
Introduction to HTML5
PPT
Html basics
PPTX
HTML5 audio & video
PPTX
Html links
PPTX
Css position
PPTX
Html n CSS
PDF
Html / CSS Presentation
PPTX
Basic HTML
PPTX
HTML, CSS, JavaScript for beginners
PPT
Introduction to JavaScript (1).ppt
PPT
CSS Basics
PPT
Span and Div tags in HTML
PPT
Css Ppt
PPTX
Css box-model
PPTX
Css Complete Notes
PPTX
Html coding
PDF
Intro to HTML & CSS
KEY
HTML CSS & Javascript
PPTX
PPT
Html & Css presentation
Introduction to HTML5
Html basics
HTML5 audio & video
Html links
Css position
Html n CSS
Html / CSS Presentation
Basic HTML
HTML, CSS, JavaScript for beginners
Introduction to JavaScript (1).ppt
CSS Basics
Span and Div tags in HTML
Css Ppt
Css box-model
Css Complete Notes
Html coding
Intro to HTML & CSS
HTML CSS & Javascript
Html & Css presentation
Ad

Viewers also liked (6)

PPTX
HTML 5 Fundamental
PPTX
Semantics
PPTX
What’s the big deal about semantic HTML?
PDF
Best practice of HTML5 Semantic Markup
PPTX
Introduction to the Semantic Web
PPTX
Knowledge Panels, Rich Snippets and Semantic Markup
HTML 5 Fundamental
Semantics
What’s the big deal about semantic HTML?
Best practice of HTML5 Semantic Markup
Introduction to the Semantic Web
Knowledge Panels, Rich Snippets and Semantic Markup
Ad

Similar to HTML Semantic Tags (20)

PPTX
Html5
PDF
Introduction to Web Components
KEY
Html5 Brown Bag
PDF
PPTX
Html5 shubelal
PDF
A practical guide to building websites with HTML5 & CSS3
KEY
2022 HTML5: The future is now
PPTX
Html,CSS & UI/UX design
PDF
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
PPTX
Fundamentals of HTML5
KEY
Looking into HTML5 + CSS3
PDF
Web Development with HTML5, CSS3 & JavaScript
PPTX
PDF
Put the 5 in HTML
PDF
Search Engine Optimization (Seo) for Developers
PDF
HTML5, just another presentation :)
PPTX
Curtin University Frontend Web Development
PDF
Beginner & Intermediate Guide to HTML5/CSS3 In Drupal
PPTX
webdevelopment_6132030-lva1-app6891.pptx
Html5
Introduction to Web Components
Html5 Brown Bag
Html5 shubelal
A practical guide to building websites with HTML5 & CSS3
2022 HTML5: The future is now
Html,CSS & UI/UX design
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
Fundamentals of HTML5
Looking into HTML5 + CSS3
Web Development with HTML5, CSS3 & JavaScript
Put the 5 in HTML
Search Engine Optimization (Seo) for Developers
HTML5, just another presentation :)
Curtin University Frontend Web Development
Beginner & Intermediate Guide to HTML5/CSS3 In Drupal
webdevelopment_6132030-lva1-app6891.pptx

Recently uploaded (20)

PDF
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
PPTX
Belt and Road Supply Chain Finance Blockchain Solution
PDF
creating-agentic-ai-solutions-leveraging-aws.pdf
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Event Presentation Google Cloud Next Extended 2025
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
DevOps & Developer Experience Summer BBQ
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
PDF
REPORT: Heating appliances market in Poland 2024
PPTX
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
PPTX
Web Security: Login Bypass, SQLi, CSRF & XSS.pptx
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
PDF
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
PPTX
CroxyProxy Instagram Access id login.pptx
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
Belt and Road Supply Chain Finance Blockchain Solution
creating-agentic-ai-solutions-leveraging-aws.pdf
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Automating ArcGIS Content Discovery with FME: A Real World Use Case
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Understanding_Digital_Forensics_Presentation.pptx
Event Presentation Google Cloud Next Extended 2025
GamePlan Trading System Review: Professional Trader's Honest Take
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
DevOps & Developer Experience Summer BBQ
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
REPORT: Heating appliances market in Poland 2024
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
Web Security: Login Bypass, SQLi, CSRF & XSS.pptx
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
CroxyProxy Instagram Access id login.pptx

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.