SlideShare ist ein Scribd-Unternehmen logo
1 von 18
HTML 5
Semantic Elements
Overview
Structural Semantics
<header></header>
                                      Old html style
<div id=“header”>
       <h1> Important heading </h1>
</div>


                                      Semantic style
<header>
     <h1> Important heading </h1>
</header>
How to use it
<header>                      Single header represent the main
       <h1> heading </h1>     header of the web page
</header>


<article>
    <header>                  Header element used as article
         <h1> heading </h1>   header
    </header>
    <p>
         Some content
    </p>
</article>
How to use it

<header>
       <h1> heading </h1>
</header>                     W3C Recommend, to use header
                              element with some <h1> - <h6>
                              element but it’s not strictly required
<article>
    <header>
         <h1> heading </h1>
    </header>
    <p>
         Some content
    </p>
</article>
<hgroup></hgroup>
<hgroup>
                                Wrap multiple H1-H6 elements
       <h1> HTML 5 </h1>        with related meaning .
       <h2> the new way </h2>   Title and Subtitle
</hgroup>

<header>
     <hgroup>
        <h1>HTML 5</h1>         Typical place for hgroup element
        <h2>the new way </h2>   is in the header element
     </hgroup>
</header>
<footer></footer>
                                      Old html style
<div id=“footer”>
       <h1> Important heading </h1>
</div>


                                      Semantic style
<footer>
      <h1> Important heading </h1>
</footer>
<section></section>
<section>
       <h1>Title #1</h1>                 Section Element Wrap some
       <p>Some content</p>               generic content

</section>
<section>
       <h1>Title #2</h1>                  It’s good idea to start with
                                          Heading element
       <p>Some content</p>
</section>

Use section only if it’s not appropriate to use <article> , and
you don’t need to style the section
<article></article>
  <article>
           <header>                           Usually have a header with
                    <h1>Title</h1>            information about the article
           </header>
           <p>Some content</p>
           <footer>
                    Auto Info                 Usually have a footer with
           </footer>                          information about the autor
  </article>



<article> Element wrap self-contained composition in a Web page which can exist
on his own line newspaper article or blog post.
<nav></nav>
<nav>
         <ul>
                  <lI><a href=“home.html”>Home</a></li>
                  <lI><a href=“about_us.html”>About us</a></li>
                  <lI><a href=“portfolio.html”>Portfolio</a></li>
         </ul>
</nav>


Using of <nav> element is self explanatory, it’s wrap a navigation element of
the web page. The navigation could be primary or secondary.
<aside></aside> (as a secondary content)
<aside>
           <h1>My favorite tweets </h1>
           <ul>                           <aside> element outside of
                <lI> Some tweet #1</li>   <article> element wrap
                                          secondary content related to the
                <li> Some tweet #2</li>
                                          web page
           </ul>
</aside>



<aside> element it’s not obligatory a sidebar element(visually)
<aside></aside> (as a related to main content)
<article>
         <p>Main article content</p>         Main article content

         <aside>
         <h2>Related content</h2>
         <ul>
                                       <aside> element in <article> element
              <lI> Content #1</li>     wrap secondary content related to the
              <li> Content #2</li>     article content
         </ul>
         </aside>
</article>
<figure></figure> | <figcaption> </figcaption>

<figure>
       <img src=“some_img.png” alt=“some img”/>
       <figcaption>
              Just Some Image no big deal
       </figcaption>
</figure>

               Description of the targeted element

Wrap semantic (image/ diagram / code block / canvas ) from the main
flow of the document, (related to the main topic)
Time and Location Semantics
<time></time> (without datetime attribute)
<time>2012 - 21 - 12</time>                            Valid Date Format

<time>15:30</time>                                      Valid Time Format

<time>-08:00</time>                                      Valid Time Zone Format


<time>2012 - 21 - 12 15:30</time>                        Valid Date and Time Format




Time element without datetime attribute must contain only valid date / time /
date and time / time zone etc.
<time></time> (with datetime attribute)
<time datetime=“2012 – 21 - 12 ”>
The end of the world
</time>
                     Valid Date / Time / Date – time Format



When we use datetime attribute we can add extra info between opening and
closing <time> tag
Audio and Video Semantics
<video></video> | <audio></audio>
<video src=“video_file.ogg”>                         It’s shown if the browser doesn’t
Browser support massage
                                                     Support video element
</video>


<audio src=“audio_file.mp3”>                          It’s shown if the browser doesn’t
Browser support massage
                                                      Support audio element
</audio>


Build in media support for video and audio files in different
formats. For detailed specification:
http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#the-video-element

Weitere ähnliche Inhalte

Was ist angesagt?

HTML Semantic Tags
HTML Semantic TagsHTML Semantic Tags
HTML Semantic TagsBruce Kyle
 
Fronttechnieken met HTML5 en de Slice-template
Fronttechnieken met HTML5 en de Slice-templateFronttechnieken met HTML5 en de Slice-template
Fronttechnieken met HTML5 en de Slice-templateInventis Web Architects
 
46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello worldhemi46h
 
Html page elements
Html page elementsHtml page elements
Html page elementsDan Carver
 
HTML, CSS, JavaScript for beginners
HTML, CSS, JavaScript for beginnersHTML, CSS, JavaScript for beginners
HTML, CSS, JavaScript for beginnersPrakritiDhang
 
SPCA2013 - Content Search Web Part
SPCA2013 - Content Search Web PartSPCA2013 - Content Search Web Part
SPCA2013 - Content Search Web PartNCCOMMS
 
Coding a Website with HTML
Coding a Website with HTMLCoding a Website with HTML
Coding a Website with HTMLwrhsbusiness
 
SharePoint 2013 Content search web part - Get it all in one place and style it!
SharePoint 2013 Content search web part - Get it all in one place and style it!SharePoint 2013 Content search web part - Get it all in one place and style it!
SharePoint 2013 Content search web part - Get it all in one place and style it!Benjamin Niaulin
 
HTML and CSS crash course!
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!Ana Cidre
 
Castro Chapter 6
Castro Chapter 6Castro Chapter 6
Castro Chapter 6Jeff Byrnes
 
HTML Link - Image - Comments
HTML  Link - Image - CommentsHTML  Link - Image - Comments
HTML Link - Image - CommentsHameda Hurmat
 
HTML5 - Just the basics
HTML5 - Just the basicsHTML5 - Just the basics
HTML5 - Just the basicsJames VanDyke
 
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) introductionMustafa Kamel Mohammadi
 
Developing Branding Solutions for 2013
Developing Branding Solutions for 2013Developing Branding Solutions for 2013
Developing Branding Solutions for 2013Thomas Daly
 
Integrating Search Driven Content in SharePoint 2013/2016/O365
Integrating Search Driven Content in SharePoint 2013/2016/O365Integrating Search Driven Content in SharePoint 2013/2016/O365
Integrating Search Driven Content in SharePoint 2013/2016/O365Eric Overfield
 
Introduction to Html by Ankitkumar Singh
Introduction to Html by Ankitkumar SinghIntroduction to Html by Ankitkumar Singh
Introduction to Html by Ankitkumar SinghAnkitkumar Singh
 
HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)Daniel Friedman
 

Was ist angesagt? (20)

HTML Semantic Tags
HTML Semantic TagsHTML Semantic Tags
HTML Semantic Tags
 
Fronttechnieken met HTML5 en de Slice-template
Fronttechnieken met HTML5 en de Slice-templateFronttechnieken met HTML5 en de Slice-template
Fronttechnieken met HTML5 en de Slice-template
 
Html introduction
Html introductionHtml introduction
Html introduction
 
46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world
 
Html page elements
Html page elementsHtml page elements
Html page elements
 
HTML, CSS, JavaScript for beginners
HTML, CSS, JavaScript for beginnersHTML, CSS, JavaScript for beginners
HTML, CSS, JavaScript for beginners
 
SPCA2013 - Content Search Web Part
SPCA2013 - Content Search Web PartSPCA2013 - Content Search Web Part
SPCA2013 - Content Search Web Part
 
Coding a Website with HTML
Coding a Website with HTMLCoding a Website with HTML
Coding a Website with HTML
 
SharePoint 2013 Content search web part - Get it all in one place and style it!
SharePoint 2013 Content search web part - Get it all in one place and style it!SharePoint 2013 Content search web part - Get it all in one place and style it!
SharePoint 2013 Content search web part - Get it all in one place and style it!
 
HTML and CSS crash course!
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!
 
Castro Chapter 6
Castro Chapter 6Castro Chapter 6
Castro Chapter 6
 
Basic html
Basic htmlBasic html
Basic html
 
HTML Link - Image - Comments
HTML  Link - Image - CommentsHTML  Link - Image - Comments
HTML Link - Image - Comments
 
HTML5 - Just the basics
HTML5 - Just the basicsHTML5 - Just the basics
HTML5 - Just the basics
 
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
 
Developing Branding Solutions for 2013
Developing Branding Solutions for 2013Developing Branding Solutions for 2013
Developing Branding Solutions for 2013
 
Integrating Search Driven Content in SharePoint 2013/2016/O365
Integrating Search Driven Content in SharePoint 2013/2016/O365Integrating Search Driven Content in SharePoint 2013/2016/O365
Integrating Search Driven Content in SharePoint 2013/2016/O365
 
Basic HTML/CSS
Basic HTML/CSSBasic HTML/CSS
Basic HTML/CSS
 
Introduction to Html by Ankitkumar Singh
Introduction to Html by Ankitkumar SinghIntroduction to Html by Ankitkumar Singh
Introduction to Html by Ankitkumar Singh
 
HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)
 

Andere mochten auch

Towards From Manual to Automatic Semantic Annotation: Based on Ontology Eleme...
Towards From Manual to Automatic Semantic Annotation: Based on Ontology Eleme...Towards From Manual to Automatic Semantic Annotation: Based on Ontology Eleme...
Towards From Manual to Automatic Semantic Annotation: Based on Ontology Eleme...IJwest
 
Semantic structure of sentence
Semantic structure of sentenceSemantic structure of sentence
Semantic structure of sentenceGustina Savhira
 
Semantics: The Meaning of Language
Semantics: The Meaning of LanguageSemantics: The Meaning of Language
Semantics: The Meaning of LanguageJeffren Miguel
 
SYNONYMS, ANTONYMS, POLYSEMY, HOMONYM, AND HOMOGRAPH
SYNONYMS, ANTONYMS, POLYSEMY,  HOMONYM, AND HOMOGRAPHSYNONYMS, ANTONYMS, POLYSEMY,  HOMONYM, AND HOMOGRAPH
SYNONYMS, ANTONYMS, POLYSEMY, HOMONYM, AND HOMOGRAPHLili Lulu
 
Semantics: Seven types of meaning
Semantics: Seven types of meaningSemantics: Seven types of meaning
Semantics: Seven types of meaningMiftadia Laula
 

Andere mochten auch (11)

Semantic markup language
Semantic markup languageSemantic markup language
Semantic markup language
 
Towards From Manual to Automatic Semantic Annotation: Based on Ontology Eleme...
Towards From Manual to Automatic Semantic Annotation: Based on Ontology Eleme...Towards From Manual to Automatic Semantic Annotation: Based on Ontology Eleme...
Towards From Manual to Automatic Semantic Annotation: Based on Ontology Eleme...
 
Paris talk
Paris talkParis talk
Paris talk
 
Semantic structure of sentence
Semantic structure of sentenceSemantic structure of sentence
Semantic structure of sentence
 
Semantics: The Meaning of Language
Semantics: The Meaning of LanguageSemantics: The Meaning of Language
Semantics: The Meaning of Language
 
Semantics
SemanticsSemantics
Semantics
 
Semantics: Meanings of Language
Semantics: Meanings of LanguageSemantics: Meanings of Language
Semantics: Meanings of Language
 
SYNONYMS, ANTONYMS, POLYSEMY, HOMONYM, AND HOMOGRAPH
SYNONYMS, ANTONYMS, POLYSEMY,  HOMONYM, AND HOMOGRAPHSYNONYMS, ANTONYMS, POLYSEMY,  HOMONYM, AND HOMOGRAPH
SYNONYMS, ANTONYMS, POLYSEMY, HOMONYM, AND HOMOGRAPH
 
Semantics: Seven types of meaning
Semantics: Seven types of meaningSemantics: Seven types of meaning
Semantics: Seven types of meaning
 
SEMANTICS
SEMANTICS SEMANTICS
SEMANTICS
 
Semantics
SemanticsSemantics
Semantics
 

Ähnlich wie Html 5 Semantics overview

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
 
Html 5, a gentle introduction
Html 5, a gentle introductionHtml 5, a gentle introduction
Html 5, a gentle introductionDiego Scataglini
 
Html5, a gentle introduction
Html5, a gentle introduction Html5, a gentle introduction
Html5, a gentle introduction Diego Scataglini
 
Beginning Html 5 Presentation
Beginning Html 5 PresentationBeginning Html 5 Presentation
Beginning Html 5 PresentationUsman Saleem
 
Hyper text markup Language
Hyper text markup LanguageHyper text markup Language
Hyper text markup LanguageNaveeth Babu
 
An Introduction To HTML5
An Introduction To HTML5An Introduction To HTML5
An Introduction To HTML5Robert Nyman
 
WordCamp Tokyo 2011 komori
WordCamp Tokyo 2011 komoriWordCamp Tokyo 2011 komori
WordCamp Tokyo 2011 komorimasaaki komori
 
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 CodeMichael Sturgeon
 
HTML5 tags.ppt
HTML5 tags.pptHTML5 tags.ppt
HTML5 tags.pptabcxyz1337
 
Three quick accessibility tips for HTML5
Three quick accessibility tips for HTML5Three quick accessibility tips for HTML5
Three quick accessibility tips for HTML5Russ Weakley
 
Semantic HTML5
Semantic HTML5Semantic HTML5
Semantic HTML5Terry Ryan
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptxmalrad1
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quideAshok Suragala
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quideJerry Wijaya
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quidePL dream
 

Ähnlich wie Html 5 Semantics overview (20)

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)
 
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
 
Beginning Html 5 Presentation
Beginning Html 5 PresentationBeginning Html 5 Presentation
Beginning Html 5 Presentation
 
Hyper text markup Language
Hyper text markup LanguageHyper text markup Language
Hyper text markup Language
 
IT Unit III.pptx
IT Unit III.pptxIT Unit III.pptx
IT Unit III.pptx
 
An Introduction To HTML5
An Introduction To HTML5An Introduction To HTML5
An Introduction To HTML5
 
WordCamp Tokyo 2011 komori
WordCamp Tokyo 2011 komoriWordCamp Tokyo 2011 komori
WordCamp Tokyo 2011 komori
 
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
 
HTML5 tags.ppt
HTML5 tags.pptHTML5 tags.ppt
HTML5 tags.ppt
 
Header,nav,footer
Header,nav,footerHeader,nav,footer
Header,nav,footer
 
Three quick accessibility tips for HTML5
Three quick accessibility tips for HTML5Three quick accessibility tips for HTML5
Three quick accessibility tips for HTML5
 
Semantic HTML5
Semantic HTML5Semantic HTML5
Semantic HTML5
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
 
HTML5 introduction
HTML5 introductionHTML5 introduction
HTML5 introduction
 
Html ppt
Html pptHtml ppt
Html ppt
 
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 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
 

Mehr von Михаил Петров (11)

JS Event Model
JS Event ModelJS Event Model
JS Event Model
 
DOM API Java Script
DOM API Java ScriptDOM API Java Script
DOM API Java Script
 
Object - Oriented Java Script
Object - Oriented Java ScriptObject - Oriented Java Script
Object - Oriented Java Script
 
strings and objects in JavaScript
strings and  objects in JavaScriptstrings and  objects in JavaScript
strings and objects in JavaScript
 
Arrays and Functions in JavaScript
Arrays and Functions in JavaScriptArrays and Functions in JavaScript
Arrays and Functions in JavaScript
 
JavaScript intro
JavaScript introJavaScript intro
JavaScript intro
 
Emmet(zen coding)
Emmet(zen coding)Emmet(zen coding)
Emmet(zen coding)
 
Less & Sass
Less & SassLess & Sass
Less & Sass
 
Css selectors
Css selectorsCss selectors
Css selectors
 
Pseudo CSS Selectors
Pseudo CSS SelectorsPseudo CSS Selectors
Pseudo CSS Selectors
 
Науката през погледа на младите
Науката през погледа на младитеНауката през погледа на младите
Науката през погледа на младите
 

Kürzlich hochgeladen

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Kürzlich hochgeladen (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

Html 5 Semantics overview

  • 3. <header></header> Old html style <div id=“header”> <h1> Important heading </h1> </div> Semantic style <header> <h1> Important heading </h1> </header>
  • 4. How to use it <header> Single header represent the main <h1> heading </h1> header of the web page </header> <article> <header> Header element used as article <h1> heading </h1> header </header> <p> Some content </p> </article>
  • 5. How to use it <header> <h1> heading </h1> </header> W3C Recommend, to use header element with some <h1> - <h6> element but it’s not strictly required <article> <header> <h1> heading </h1> </header> <p> Some content </p> </article>
  • 6. <hgroup></hgroup> <hgroup> Wrap multiple H1-H6 elements <h1> HTML 5 </h1> with related meaning . <h2> the new way </h2> Title and Subtitle </hgroup> <header> <hgroup> <h1>HTML 5</h1> Typical place for hgroup element <h2>the new way </h2> is in the header element </hgroup> </header>
  • 7. <footer></footer> Old html style <div id=“footer”> <h1> Important heading </h1> </div> Semantic style <footer> <h1> Important heading </h1> </footer>
  • 8. <section></section> <section> <h1>Title #1</h1> Section Element Wrap some <p>Some content</p> generic content </section> <section> <h1>Title #2</h1> It’s good idea to start with Heading element <p>Some content</p> </section> Use section only if it’s not appropriate to use <article> , and you don’t need to style the section
  • 9. <article></article> <article> <header> Usually have a header with <h1>Title</h1> information about the article </header> <p>Some content</p> <footer> Auto Info Usually have a footer with </footer> information about the autor </article> <article> Element wrap self-contained composition in a Web page which can exist on his own line newspaper article or blog post.
  • 10. <nav></nav> <nav> <ul> <lI><a href=“home.html”>Home</a></li> <lI><a href=“about_us.html”>About us</a></li> <lI><a href=“portfolio.html”>Portfolio</a></li> </ul> </nav> Using of <nav> element is self explanatory, it’s wrap a navigation element of the web page. The navigation could be primary or secondary.
  • 11. <aside></aside> (as a secondary content) <aside> <h1>My favorite tweets </h1> <ul> <aside> element outside of <lI> Some tweet #1</li> <article> element wrap secondary content related to the <li> Some tweet #2</li> web page </ul> </aside> <aside> element it’s not obligatory a sidebar element(visually)
  • 12. <aside></aside> (as a related to main content) <article> <p>Main article content</p> Main article content <aside> <h2>Related content</h2> <ul> <aside> element in <article> element <lI> Content #1</li> wrap secondary content related to the <li> Content #2</li> article content </ul> </aside> </article>
  • 13. <figure></figure> | <figcaption> </figcaption> <figure> <img src=“some_img.png” alt=“some img”/> <figcaption> Just Some Image no big deal </figcaption> </figure> Description of the targeted element Wrap semantic (image/ diagram / code block / canvas ) from the main flow of the document, (related to the main topic)
  • 14. Time and Location Semantics
  • 15. <time></time> (without datetime attribute) <time>2012 - 21 - 12</time> Valid Date Format <time>15:30</time> Valid Time Format <time>-08:00</time> Valid Time Zone Format <time>2012 - 21 - 12 15:30</time> Valid Date and Time Format Time element without datetime attribute must contain only valid date / time / date and time / time zone etc.
  • 16. <time></time> (with datetime attribute) <time datetime=“2012 – 21 - 12 ”> The end of the world </time> Valid Date / Time / Date – time Format When we use datetime attribute we can add extra info between opening and closing <time> tag
  • 17. Audio and Video Semantics
  • 18. <video></video> | <audio></audio> <video src=“video_file.ogg”> It’s shown if the browser doesn’t Browser support massage Support video element </video> <audio src=“audio_file.mp3”> It’s shown if the browser doesn’t Browser support massage Support audio element </audio> Build in media support for video and audio files in different formats. For detailed specification: http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#the-video-element