SlideShare a Scribd company logo
HTML 5 Semantics

           - Prashanth Krish
               @Krish_Prashanth
HTML 5 Semantics                                     Open Web Technology Stack

What is presented in following slides?
  Discussion will be about semantic elements from Structure Layer present in
  Open Web Technology Stack and not on other items or other layers.
HTML 5 Semantics                                Personal Note




    HTML expands to Hyper Text Markup Language.
   It is NOT a styling language, you have CSS for that
    purpose. So stop abusing the existence of HTML.
HTML 5 Semantics                                            Semantic Tags


List of Semantic/Structural Elements – Alphabetical order


           <article>
           <aside>
           <bdi>
           <command>
           <details>                <ruby>
           <summary>                <rp>
           <figure>                 <rt>
           <figcaption>             <scetion>
           <footer>                 <time>
           <header>                 <wbr>
           <hgroup>
           <mark>
           <meter>
           <nav>
           <progress>
HTML 5 Semantics                                            OLDER SEMATICS




                            <div class=”header”>
                            My Company Logo
                            </div

                            <div id="main-nav" class="navigation">
 <div class="header">       <ul>
 <div class="navigation">   <li><a href="index.html">Home</a></li>
 <div class="footer">       <li><a href="/about/">About</a></li>
                            <li><a href="/blog/">Blog</a></li>
                            </ul>
                            </div>

                            <div class=”footer”>
                            Copyleft
                            </div>
HTML 5 Semantics                                    <Section>




 “The section element represents a generic section of a
 document or application. A section, in this context, is a
thematic grouping of content, typically with a heading.”
HTML 5 Semantics                                      <Section>


  “Authors are encouraged to use the article element
  instead of the section element when it would make
    sense to syndicate the contents of the element.”


      “The section element is not a generic container
     element. When an element is needed for styling
 purposes or as a convenience for scripting, authors are
  encouraged to use the div element instead. A general
 rule is that the section element is appropriate only if the
    element’s contents would be listed explicitly in the
                    document’s outline.”
HTML 5 Semantics                                                                     <Section>



 Do's

 •
   DO use section for each individual section of a tab switcher or content slider (if
 an unordered list isn’t needed)
 •
   DO use section to divide a lengthy “terms and conditions” (or similar) page into
 numbered sections
 •
   DO nest section elements if necessary (as you might do with the “terms and
 conditions” page)
 •
   DO use section to divide the different sections of a one-page website or
 portfolio




                                                        http://www.impressivewebs.com/html5-section/
HTML 5 Semantics                                                                    <Section>



 Dont's

 •
    DON’T use section to divide content from the header and footer; use div
 instead
 •
    DON’T use section to wrap a tab switcher for DOM manipulation or styling
 •
    DON’T use section for sidebar or other tangentially-related content boxes; use
 aside instead
 •
    DON’T use section just to add a border or drop shadow around something; use
 div instead
 •
    DON’T use section for the wrapper when implementing faux columns; again,
 use div instead
 •
    DON’T use section to nest elements when trying to avoid IE6′s float double-
 margin bug (or a similar layout-related issue); again, use div
 •
    DON’T use section to hold an individual author bio on a blog post or news
 article; use aside instead




                                                       http://www.impressivewebs.com/html5-section/
HTML 5 Semantics                                             <Article >




     "An article element represents a self-contained
  composition in a document, page, application, or site
  and that is, in principle, independently distributable or
 reusable, e.g. in syndication. This could be a forum post,
  a magazine or newspaper article, a blog entry, a user-
  submitted comment, an interactive widget or gadget,
       or any other independent item of content."


Syndication means that this article of content could stand
alone if needed and you would have all the information you
need to understand what it was and where it came from
HTML 5 Semantics                                         <Aside >



    “ The aside element represents a section of a page
 that consists of content that is tangentially related to the
 content around the aside element, and which could be
  considered separate from that content. Such sections
 are often represented as sidebars in printed typography.

     The element can be used for typographical effects
 like pull quotes or sidebars, for advertising, for groups of
 nav elements, and for other content that is considered
      separate from the main content of the page.”
HTML 5 Semantics                                                       A Sample Code

   <header>                                   <article>
     <hgroup>                                  <header>
      <h1>Page Title</h1>                        <h2><a href="#">Article Title</a></h2>
      <h2>Page Subtitle</h2>                   </header>
     </hgroup>                                 <section>
    </header>                                   Some more large content
    <nav>                                      </section>
     <ul>                                     </article>
      <li><a href="#">Home</a></li>          </section>
      <li><a href="#">Tutorials</a></li>     <aside>
     </ul>                                    <h2>Top links</h2>
    </nav>                                    <ul>
    <section id="articles">                    <li><a ref="extl" href="#">Link 1</a></li>
     <article>                                 <li><a ref="extl" href="#">Link 2</a></li>
      <header>                                </ul>
       <h2>                                       <figure>
               <a href="#">Article                 <img src="..."/>
Title</a></h2>                                     <figcaption>Chart 1.1</figcaption>
      </header>                                    </figure>
      <section>                              </aside>
       Big content goes here               <footer>
      </section>                             Footer content
     </article>                            </footer>
HTML 5 Semantics                                            References /ATTRIBUTION



  http://www.adobe.com/devnet/dreamweaver/articles/understanding-html5-
  semantics.html




                    This work is licensed under a
      Creative Commons Attribution-ShareAlike 3.0 Unported License.

More Related Content

What's hot

A Power User's Intro to jQuery Awesomeness in SharePoint
A Power User's Intro to jQuery Awesomeness in SharePointA Power User's Intro to jQuery Awesomeness in SharePoint
A Power User's Intro to jQuery Awesomeness in SharePoint
Mark Rackley
 
HTML Semantic Elements
HTML Semantic ElementsHTML Semantic Elements
HTML Semantic Elements
Reema
 
Basic html
Basic htmlBasic html
Basic html
Arun kumar
 
Customize Your Website With HTML5 and CSS3:
Customize Your Website With HTML5 and CSS3:Customize Your Website With HTML5 and CSS3:
Customize Your Website With HTML5 and CSS3:
Reema
 
Html5 and-css3-overview
Html5 and-css3-overviewHtml5 and-css3-overview
Html5 and-css3-overview
Jacob Nelson
 
Introduction to StratusForms #SayNoToInfoPath
Introduction to StratusForms #SayNoToInfoPathIntroduction to StratusForms #SayNoToInfoPath
Introduction to StratusForms #SayNoToInfoPath
Mark Rackley
 
Web development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer CentreWeb development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer Centre
jatin batra
 
Html 5
Html 5Html 5
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePointSPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
Mark Rackley
 
Html 5
Html 5Html 5
Html 5
Ajay Ghosh
 
Web design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introductionWeb design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introduction
Mustafa Kamel Mohammadi
 
HYF - Class 01 - HTML And CSS
HYF - Class 01 - HTML And CSSHYF - Class 01 - HTML And CSS
HYF - Class 01 - HTML And CSS
Garima Kaila
 
Html_Day_One (W3Schools)
Html_Day_One (W3Schools)Html_Day_One (W3Schools)
Html_Day_One (W3Schools)
Rafi Haidari
 
Html introduction
Html introductionHtml introduction
Html introduction
Nuhu Abdul Razak
 
Content query web part – get it all in one place and style it!
Content query web part – get it all in one place and style it!Content query web part – get it all in one place and style it!
Content query web part – get it all in one place and style it!
Benjamin Niaulin
 
Intro to HTML and CSS
Intro to HTML and CSSIntro to HTML and CSS
Intro to HTML and CSS
lexinamer
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
aakash choudhary
 
HTML_Day_Two(W3Schools)
HTML_Day_Two(W3Schools)HTML_Day_Two(W3Schools)
HTML_Day_Two(W3Schools)
Rafi Haidari
 
Using jQuery to Maximize Form Usability
Using jQuery to Maximize Form UsabilityUsing jQuery to Maximize Form Usability
Using jQuery to Maximize Form Usability
Mark Rackley
 
SPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuerySPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuery
Mark Rackley
 

What's hot (20)

A Power User's Intro to jQuery Awesomeness in SharePoint
A Power User's Intro to jQuery Awesomeness in SharePointA Power User's Intro to jQuery Awesomeness in SharePoint
A Power User's Intro to jQuery Awesomeness in SharePoint
 
HTML Semantic Elements
HTML Semantic ElementsHTML Semantic Elements
HTML Semantic Elements
 
Basic html
Basic htmlBasic html
Basic html
 
Customize Your Website With HTML5 and CSS3:
Customize Your Website With HTML5 and CSS3:Customize Your Website With HTML5 and CSS3:
Customize Your Website With HTML5 and CSS3:
 
Html5 and-css3-overview
Html5 and-css3-overviewHtml5 and-css3-overview
Html5 and-css3-overview
 
Introduction to StratusForms #SayNoToInfoPath
Introduction to StratusForms #SayNoToInfoPathIntroduction to StratusForms #SayNoToInfoPath
Introduction to StratusForms #SayNoToInfoPath
 
Web development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer CentreWeb development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer Centre
 
Html 5
Html 5Html 5
Html 5
 
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePointSPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
 
Html 5
Html 5Html 5
Html 5
 
Web design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introductionWeb design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introduction
 
HYF - Class 01 - HTML And CSS
HYF - Class 01 - HTML And CSSHYF - Class 01 - HTML And CSS
HYF - Class 01 - HTML And CSS
 
Html_Day_One (W3Schools)
Html_Day_One (W3Schools)Html_Day_One (W3Schools)
Html_Day_One (W3Schools)
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Content query web part – get it all in one place and style it!
Content query web part – get it all in one place and style it!Content query web part – get it all in one place and style it!
Content query web part – get it all in one place and style it!
 
Intro to HTML and CSS
Intro to HTML and CSSIntro to HTML and CSS
Intro to HTML and CSS
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
 
HTML_Day_Two(W3Schools)
HTML_Day_Two(W3Schools)HTML_Day_Two(W3Schools)
HTML_Day_Two(W3Schools)
 
Using jQuery to Maximize Form Usability
Using jQuery to Maximize Form UsabilityUsing jQuery to Maximize Form Usability
Using jQuery to Maximize Form Usability
 
SPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuerySPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuery
 

Similar to Html5 semantics

Html 5, a gentle introduction
Html 5, a gentle introductionHtml 5, a gentle introduction
Html 5, a gentle introduction
Diego Scataglini
 
Html5, a gentle introduction
Html5, a gentle introduction Html5, a gentle introduction
Html5, a gentle introduction
Diego Scataglini
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
PL dream
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
Jerry Wijaya
 
Html5 quick learning guide
Html5 quick learning guideHtml5 quick learning guide
Html5 quick learning guide
Prima Utama Apriansyah
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
Ashok Suragala
 
HTML5 introduction
HTML5 introductionHTML5 introduction
HTML5 introduction
Kaali Kiran Thammanna
 
Beginning Html 5 Presentation
Beginning Html 5 PresentationBeginning Html 5 Presentation
Beginning Html 5 Presentation
Usman Saleem
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
malrad1
 
Html5 p resentation by techmodi
Html5 p resentation by techmodiHtml5 p resentation by techmodi
Html5 p resentation by techmodi
techmodi_India
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Ahsan Rahim
 
Header,nav,footer
Header,nav,footerHeader,nav,footer
Header,nav,footer
sidneyodingo
 
Html5
Html5Html5
Frontend for developers
Frontend for developersFrontend for developers
Frontend for developers
Hernan Mammana
 
HTML Coding #01 : Don't Fear the Code
HTML Coding #01 : Don't Fear the CodeHTML Coding #01 : Don't Fear the Code
HTML Coding #01 : Don't Fear the Code
Michael Sturgeon
 
Front end full stack development module 1pptx
Front end full stack development module 1pptxFront end full stack development module 1pptx
Front end full stack development module 1pptx
MaruthiPrasad96
 
Semantic HTML5
Semantic HTML5Semantic HTML5
Semantic HTML5
Terry Ryan
 
46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world
hemi46h
 
Three quick accessibility tips for HTML5
Three quick accessibility tips for HTML5Three quick accessibility tips for HTML5
Three quick accessibility tips for HTML5
Russ Weakley
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
Terry Ryan
 

Similar to Html5 semantics (20)

Html 5, a gentle introduction
Html 5, a gentle introductionHtml 5, a gentle introduction
Html 5, a gentle introduction
 
Html5, a gentle introduction
Html5, a gentle introduction Html5, a gentle introduction
Html5, a gentle introduction
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
 
Html5 quick learning guide
Html5 quick learning guideHtml5 quick learning guide
Html5 quick learning guide
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
 
HTML5 introduction
HTML5 introductionHTML5 introduction
HTML5 introduction
 
Beginning Html 5 Presentation
Beginning Html 5 PresentationBeginning Html 5 Presentation
Beginning Html 5 Presentation
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
 
Html5 p resentation by techmodi
Html5 p resentation by techmodiHtml5 p resentation by techmodi
Html5 p resentation by techmodi
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
 
Header,nav,footer
Header,nav,footerHeader,nav,footer
Header,nav,footer
 
Html5
Html5Html5
Html5
 
Frontend for developers
Frontend for developersFrontend for developers
Frontend for developers
 
HTML Coding #01 : Don't Fear the Code
HTML Coding #01 : Don't Fear the CodeHTML Coding #01 : Don't Fear the Code
HTML Coding #01 : Don't Fear the Code
 
Front end full stack development module 1pptx
Front end full stack development module 1pptxFront end full stack development module 1pptx
Front end full stack development module 1pptx
 
Semantic HTML5
Semantic HTML5Semantic HTML5
Semantic HTML5
 
46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world
 
Three quick accessibility tips for HTML5
Three quick accessibility tips for HTML5Three quick accessibility tips for HTML5
Three quick accessibility tips for HTML5
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 

Recently uploaded

Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
FODUU
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 

Recently uploaded (20)

Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 

Html5 semantics

  • 1. HTML 5 Semantics - Prashanth Krish @Krish_Prashanth
  • 2. HTML 5 Semantics Open Web Technology Stack What is presented in following slides? Discussion will be about semantic elements from Structure Layer present in Open Web Technology Stack and not on other items or other layers.
  • 3. HTML 5 Semantics Personal Note HTML expands to Hyper Text Markup Language. It is NOT a styling language, you have CSS for that purpose. So stop abusing the existence of HTML.
  • 4. HTML 5 Semantics Semantic Tags List of Semantic/Structural Elements – Alphabetical order <article> <aside> <bdi> <command> <details> <ruby> <summary> <rp> <figure> <rt> <figcaption> <scetion> <footer> <time> <header> <wbr> <hgroup> <mark> <meter> <nav> <progress>
  • 5. HTML 5 Semantics OLDER SEMATICS <div class=”header”> My Company Logo </div <div id="main-nav" class="navigation"> <div class="header"> <ul> <div class="navigation"> <li><a href="index.html">Home</a></li> <div class="footer"> <li><a href="/about/">About</a></li> <li><a href="/blog/">Blog</a></li> </ul> </div> <div class=”footer”> Copyleft </div>
  • 6. HTML 5 Semantics <Section> “The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content, typically with a heading.”
  • 7. HTML 5 Semantics <Section> “Authors are encouraged to use the article element instead of the section element when it would make sense to syndicate the contents of the element.” “The section element is not a generic container element. When an element is needed for styling purposes or as a convenience for scripting, authors are encouraged to use the div element instead. A general rule is that the section element is appropriate only if the element’s contents would be listed explicitly in the document’s outline.”
  • 8. HTML 5 Semantics <Section> Do's • DO use section for each individual section of a tab switcher or content slider (if an unordered list isn’t needed) • DO use section to divide a lengthy “terms and conditions” (or similar) page into numbered sections • DO nest section elements if necessary (as you might do with the “terms and conditions” page) • DO use section to divide the different sections of a one-page website or portfolio http://www.impressivewebs.com/html5-section/
  • 9. HTML 5 Semantics <Section> Dont's • DON’T use section to divide content from the header and footer; use div instead • DON’T use section to wrap a tab switcher for DOM manipulation or styling • DON’T use section for sidebar or other tangentially-related content boxes; use aside instead • DON’T use section just to add a border or drop shadow around something; use div instead • DON’T use section for the wrapper when implementing faux columns; again, use div instead • DON’T use section to nest elements when trying to avoid IE6′s float double- margin bug (or a similar layout-related issue); again, use div • DON’T use section to hold an individual author bio on a blog post or news article; use aside instead http://www.impressivewebs.com/html5-section/
  • 10. HTML 5 Semantics <Article > "An article element represents a self-contained composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user- submitted comment, an interactive widget or gadget, or any other independent item of content." Syndication means that this article of content could stand alone if needed and you would have all the information you need to understand what it was and where it came from
  • 11. HTML 5 Semantics <Aside > “ The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography. The element can be used for typographical effects like pull quotes or sidebars, for advertising, for groups of nav elements, and for other content that is considered separate from the main content of the page.”
  • 12. HTML 5 Semantics A Sample Code <header> <article> <hgroup> <header> <h1>Page Title</h1> <h2><a href="#">Article Title</a></h2> <h2>Page Subtitle</h2> </header> </hgroup> <section> </header> Some more large content <nav> </section> <ul> </article> <li><a href="#">Home</a></li> </section> <li><a href="#">Tutorials</a></li> <aside> </ul> <h2>Top links</h2> </nav> <ul> <section id="articles"> <li><a ref="extl" href="#">Link 1</a></li> <article> <li><a ref="extl" href="#">Link 2</a></li> <header> </ul> <h2> <figure> <a href="#">Article <img src="..."/> Title</a></h2> <figcaption>Chart 1.1</figcaption> </header> </figure> <section> </aside> Big content goes here <footer> </section> Footer content </article> </footer>
  • 13. HTML 5 Semantics References /ATTRIBUTION http://www.adobe.com/devnet/dreamweaver/articles/understanding-html5- semantics.html This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.