SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
HTML 5
SEMANTICS & NON-SEMANTIC
ELEMENTS
HTML5 Semantic Elements
• Semantics is the study of the meanings of words and phrases
in language.
• Semantic elements are elements with a meaning.
What are Semantic Elements?
• A semantic element clearly describes its meaning to both the
browser ad the developer.
• Examples of non-semantic elements: <div> and <span> - Tells
nothing about its content.
• Examples of semantic elements: <form>, <table>, and <img> -
Clearly defines its content.
New Semantic Elements in HTML5
HTML5 offers new semantic elements to define different parts of
a web page:
• <article>
• <aside>
• <details>
• <figcaption>
• <figure>
• <footer>
• <header>
• <main>
• <mark>
• <nav>
• <section>
• <summary>
• <time>
HTML5 <section> Element
• The <section> element defines a section in a document.
• "A section is a thematic grouping of content, typically with a
heading."
<section>
<h1>WWF</h1>
<p>The World Wide Fund for Nature (WWF) is....</p>
</section>
HTML5 <article> Element
• The <article> element specifies independent, self-contained
content.
• An article should make sense on its own, and it should be
possible to read it independently from the rest of the web
site.
<article>
<h1>What Does ARTICLE Do?</h1>
<p>This is the ARTICLE tag in HTML 5.</p>
</article>
HTML5 <header> Element
• The <header> element specifies a header for a document or
section.
• The <header> element should be used as a container for
introductory content.
• You can have several <header> elements in one document.
<article>
<header>
<h1>What Does HEADER Tag Do?</h1>
<p>Headers mission:</p>
</header>
<p>This is Header tag In HTML 5<p>
</article>
HTML5 <footer> Element
• The <footer> element specifies a footer for a document or
section.
• A <footer> element should contain information about its
containing element.
• You can have several <footer> elements in one document.
<footer>
<p>Posted by: Hege Refsnes</p>
<p>Contact information: <a href="mailto:someone@example.com">
someone@example.com</a>.</p>
</footer>
HTML5 <nav> Element
• The <nav> element defines a set of navigation links.
• The <nav> element is intended for large blocks of navigation
links. However, not all links in a document should be inside a
<nav> element!
<nav>
<a href="/html/">HTML</a> |
<a href="/css/">CSS</a> |
<a href="/js/">JavaScript</a> |
<a href="/jquery/">jQuery</a>
</nav>
Why Semantic HTML5 Elements?
• With HTML4, developers used their own favorite attribute
names to style page elements:
• header, top, bottom, footer, menu, navigation, main,
container, content, article, sidebar, topnav, ...
• This made it impossible for search engines to identify the
correct web page content.
Why Semantic HTML5 Elements?
• With HTML5 elements like:
• <header> <footer> <nav> <section> <article>, this will become
easier.
• "Allows data to be shared and reused across applications,
enterprises, and communities."
Html5 semantics

More Related Content

PPTX
HTML Semantic Elements
PPT
Introduction to HTML
PDF
PPTX
PPTX
PPSX
Introduction to Html5
PPTX
HTML Fundamentals
PPTX
HTML/HTML5
HTML Semantic Elements
Introduction to HTML
Introduction to Html5
HTML Fundamentals
HTML/HTML5

What's hot (20)

PPTX
HTML Semantic Tags
PDF
JavaScript Programming
PDF
Intro to HTML and CSS basics
PPSX
Javascript variables and datatypes
PPTX
PPT
Cascading Style Sheets (CSS) help
PPTX
Html links
PPT
Html basics
PDF
Bootstrap
PPTX
HTML Block and Inline Elements
PPTX
Css selectors
PPTX
Java script
PPT
Span and Div tags in HTML
PPT
CSS Basics
PPT
CSS for Beginners
PPTX
Intro to Javascript
PPSX
HTML5 - Forms
PDF
HTML CSS Basics
PPTX
How to learn HTML in 10 Days
PPTX
Java script array
HTML Semantic Tags
JavaScript Programming
Intro to HTML and CSS basics
Javascript variables and datatypes
Cascading Style Sheets (CSS) help
Html links
Html basics
Bootstrap
HTML Block and Inline Elements
Css selectors
Java script
Span and Div tags in HTML
CSS Basics
CSS for Beginners
Intro to Javascript
HTML5 - Forms
HTML CSS Basics
How to learn HTML in 10 Days
Java script array
Ad

Similar to Html5 semantics (20)

PPTX
PRESENTASI PPT 10 Semantic Elements.pptx
PDF
Html5 semantics
PPTX
TPIP-1.pptx front end development of css
PPTX
Understanding the Web Page Layout
PPTX
Html5 structure & semantic
PPTX
Html 5 Semantics overview
PPTX
Introduction to the basics of HTML p1.pptx
PDF
Vskills certified html5 developer Notes
PPTX
cotd6.pptx
PPTX
T430-01-Introduction to HTML.pptx
PPTX
Mastering HTML: The Building Blocks of the Web
PPT
Intro to HTML5
PDF
Introduction to html5
PDF
Html and its future
PDF
W6 - Intro to HTML.pdf
PPT
HTML 5 Complete Reference
PDF
HTML5 Semantics
PPTX
Gail Borden Library | HTML/CSS Program
PPTX
Introduction to HTML- Week 3- HTMLSyntax
PRESENTASI PPT 10 Semantic Elements.pptx
Html5 semantics
TPIP-1.pptx front end development of css
Understanding the Web Page Layout
Html5 structure & semantic
Html 5 Semantics overview
Introduction to the basics of HTML p1.pptx
Vskills certified html5 developer Notes
cotd6.pptx
T430-01-Introduction to HTML.pptx
Mastering HTML: The Building Blocks of the Web
Intro to HTML5
Introduction to html5
Html and its future
W6 - Intro to HTML.pdf
HTML 5 Complete Reference
HTML5 Semantics
Gail Borden Library | HTML/CSS Program
Introduction to HTML- Week 3- HTMLSyntax
Ad

More from Webtech Learning (20)

PPTX
Benefits of Digital Marketing
PPTX
Digital Marketing Benefits
PPTX
Future Scope of Digital Marketing in India
PPTX
Css types internal, external and inline (1)
PPTX
Bootstrap webtech presentation - new
PPTX
Css presentation
PPTX
Client side &amp; Server side Scripting
PPTX
Software testing & Quality Assurance
PPTX
Shadows Effects in CSS
PPTX
Bs Typography
PPTX
Bootstrap grids
PPTX
Html formatting
PPTX
Css box-sizing
PPTX
Css position
PPTX
Css margins
PPTX
Css box-model
PPTX
Css Display Property
PPTX
Html media
PPTX
Css floats
PPTX
Css pseudo-classes
Benefits of Digital Marketing
Digital Marketing Benefits
Future Scope of Digital Marketing in India
Css types internal, external and inline (1)
Bootstrap webtech presentation - new
Css presentation
Client side &amp; Server side Scripting
Software testing & Quality Assurance
Shadows Effects in CSS
Bs Typography
Bootstrap grids
Html formatting
Css box-sizing
Css position
Css margins
Css box-model
Css Display Property
Html media
Css floats
Css pseudo-classes

Recently uploaded (20)

PPTX
Special finishes, classification and types, explanation
PPTX
mahatma gandhi bus terminal in india Case Study.pptx
PDF
Shape Language for Character Design by Adhec Saputra
PPT
Package Design Design Kit 20100009 PWM IC by Bee Technologies
PPTX
KOTA LAMA BANYUMAS.pptxxxxxxxxxxxxxxxxxxxx
PPTX
artificialintelligencedata driven analytics23.pptx
PDF
MARIJA CVITKOVAC - GRAPHIC DESIGN PORTFOLIO 2025
PPTX
Implications Existing phase plan and its feasibility.pptx
PDF
AUB Collaborative Book Project - Keiko Toyoda
PPTX
12. Community Pharmacy and How to organize it
PPTX
areprosthodontics and orthodonticsa text.pptx
PPTX
Introduction to Pathology.pptx 112233445566
PDF
High-frequency high-voltage transformer outline drawing
DOCX
actividad 20% informatica microsoft project
PDF
solar design by every detail p.d.f download
PDF
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
PDF
Portfolio Arch Estsabel Chourio - Interiorism,
PDF
GREEN BUILDING MATERIALS FOR SUISTAINABLE ARCHITECTURE AND BUILDING STUDY
DOCX
The story of the first moon landing.docx
PPTX
Wisp Textiles: Where Comfort Meets Everyday Style
Special finishes, classification and types, explanation
mahatma gandhi bus terminal in india Case Study.pptx
Shape Language for Character Design by Adhec Saputra
Package Design Design Kit 20100009 PWM IC by Bee Technologies
KOTA LAMA BANYUMAS.pptxxxxxxxxxxxxxxxxxxxx
artificialintelligencedata driven analytics23.pptx
MARIJA CVITKOVAC - GRAPHIC DESIGN PORTFOLIO 2025
Implications Existing phase plan and its feasibility.pptx
AUB Collaborative Book Project - Keiko Toyoda
12. Community Pharmacy and How to organize it
areprosthodontics and orthodonticsa text.pptx
Introduction to Pathology.pptx 112233445566
High-frequency high-voltage transformer outline drawing
actividad 20% informatica microsoft project
solar design by every detail p.d.f download
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
Portfolio Arch Estsabel Chourio - Interiorism,
GREEN BUILDING MATERIALS FOR SUISTAINABLE ARCHITECTURE AND BUILDING STUDY
The story of the first moon landing.docx
Wisp Textiles: Where Comfort Meets Everyday Style

Html5 semantics

  • 1. HTML 5 SEMANTICS & NON-SEMANTIC ELEMENTS
  • 2. HTML5 Semantic Elements • Semantics is the study of the meanings of words and phrases in language. • Semantic elements are elements with a meaning.
  • 3. What are Semantic Elements? • A semantic element clearly describes its meaning to both the browser ad the developer. • Examples of non-semantic elements: <div> and <span> - Tells nothing about its content. • Examples of semantic elements: <form>, <table>, and <img> - Clearly defines its content.
  • 4. New Semantic Elements in HTML5 HTML5 offers new semantic elements to define different parts of a web page: • <article> • <aside> • <details> • <figcaption> • <figure> • <footer> • <header> • <main> • <mark> • <nav> • <section> • <summary> • <time>
  • 5. HTML5 <section> Element • The <section> element defines a section in a document. • "A section is a thematic grouping of content, typically with a heading." <section> <h1>WWF</h1> <p>The World Wide Fund for Nature (WWF) is....</p> </section>
  • 6. HTML5 <article> Element • The <article> element specifies independent, self-contained content. • An article should make sense on its own, and it should be possible to read it independently from the rest of the web site. <article> <h1>What Does ARTICLE Do?</h1> <p>This is the ARTICLE tag in HTML 5.</p> </article>
  • 7. HTML5 <header> Element • The <header> element specifies a header for a document or section. • The <header> element should be used as a container for introductory content. • You can have several <header> elements in one document. <article> <header> <h1>What Does HEADER Tag Do?</h1> <p>Headers mission:</p> </header> <p>This is Header tag In HTML 5<p> </article>
  • 8. HTML5 <footer> Element • The <footer> element specifies a footer for a document or section. • A <footer> element should contain information about its containing element. • You can have several <footer> elements in one document. <footer> <p>Posted by: Hege Refsnes</p> <p>Contact information: <a href="mailto:[email protected]"> [email protected]</a>.</p> </footer>
  • 9. HTML5 <nav> Element • The <nav> element defines a set of navigation links. • The <nav> element is intended for large blocks of navigation links. However, not all links in a document should be inside a <nav> element! <nav> <a href="/html/">HTML</a> | <a href="/css/">CSS</a> | <a href="/js/">JavaScript</a> | <a href="/jquery/">jQuery</a> </nav>
  • 10. Why Semantic HTML5 Elements? • With HTML4, developers used their own favorite attribute names to style page elements: • header, top, bottom, footer, menu, navigation, main, container, content, article, sidebar, topnav, ... • This made it impossible for search engines to identify the correct web page content.
  • 11. Why Semantic HTML5 Elements? • With HTML5 elements like: • <header> <footer> <nav> <section> <article>, this will become easier. • "Allows data to be shared and reused across applications, enterprises, and communities."