Modul ke:
Fakultas
Program Studi
Modul ke:
Fakultas
Program Studi
Pemrograman
Smart Web
HTML Semantic Elements
Adi Hartanto, ST, M.Kom
10
Ilmu Komputer
Teknik
Informatika
Pembuka Daftar Pustaka Akhiri Presentasi
< >
MENU AKHIRI
← →
MENU AKHIRI
< >
MENU AKHIRI
← →
MENU AKHIRI
• A semantic element clearly describes its meaning to
both the browser and the developer.
• Examples of non-semantic elements: <div> and
<span> - Tells nothing about its content.
• Examples of semantic elements: <form>, <table>, and
<article> - Clearly defines its content.
• Many web sites contain HTML code like: <div
id="nav"> <div class="header"> <div id="footer"> to
indicate navigation, header, and footer.
HTML Semantic Elements:
< >
MENU AKHIRI
← →
MENU AKHIRI
• HTML <article> Element
• The <article> element specifies independent, self-contained
content. An article should make sense on its own, and it
should be possible to distribute it independently from the rest
of the web site.
• Examples of where the <article> element can be used:
– Forum posts
– Blog posts
– User comments
– Product cards
– Newspaper articles
HTML <article> Element:
< >
MENU AKHIRI
← →
MENU AKHIRI
• Nesting <article> in <section> or Vice Versa?
• The <article> element specifies independent, self-
contained content.
• The <section> element defines section in a
document.
• Can we use the definitions to decide how to nest
those elements? No, we cannot! So, you will find
HTML pages with <section> elements containing
<article> elements, and <article> elements containing
<section> elements
Nesting <article> In <section> Or Vice
Versa?
< >
MENU AKHIRI
← →
MENU AKHIRI
• The <header> element represents a container for
introductory content or a set of navigational links.
• A <header> element typically contains:
• one or more heading elements (<h1> - <h6>)
• logo or icon
• authorship information.
HTML <header> Element:
< >
MENU AKHIRI
← →
MENU AKHIRI
• The <footer> element defines a footer for a
document or section.
• A <footer> element typically contains:
– authorship information
– copyright information
– contact information
– sitemap
– back to top links
– related documents
• You can have several <footer> elements in one
document..
HTML <footer> Element:
< >
MENU AKHIRI
← →
MENU AKHIRI
• The <aside> element defines some content aside
from the content it is placed in (like a sidebar).
• The <aside> content should be indirectly related to
the surrounding content.
HTML <aside> Element:
< >
MENU AKHIRI
← →
MENU AKHIRI
• The <nav> element defines a set of navigation links.
HTML <nav> Element
< >
MENU AKHIRI
← →
MENU AKHIRI
• The <figure> tag specifies self-contained content, like
illustrations, diagrams, photos, code listings, etc.
• The <figcaption> tag defines a caption for a <figure>
element. The <figcaption> element can be placed as
the first or as the last child of a <figure> element.
• The <img> element defines the actual
image/illustration.
HTML <figure> and <figcaption> Elements:
< >
MENU AKHIRI
← →
MENU AKHIRI
• According to a research: "A semantic Web allows data
to be shared and reused across applications,
enterprises, and communities.“
• This is why semantic elements work and they are
used greatly to build websites, structure data and etc.
Why Semantic Elements Work?:
Daftar Pustaka
< MENU AKHIRI
← MENU AKHIRI
• https://www.slideshare.net/slideshow/html-semantic-elements/250192568
Terima Kasih
Adi Hartanto, ST, M.Kom

PRESENTASI PPT 10 Semantic Elements.pptx

  • 1.
    Modul ke: Fakultas Program Studi Modulke: Fakultas Program Studi Pemrograman Smart Web HTML Semantic Elements Adi Hartanto, ST, M.Kom 10 Ilmu Komputer Teknik Informatika Pembuka Daftar Pustaka Akhiri Presentasi
  • 2.
    < > MENU AKHIRI ←→ MENU AKHIRI
  • 3.
    < > MENU AKHIRI ←→ MENU AKHIRI • A semantic element clearly describes its meaning to both the browser and the developer. • Examples of non-semantic elements: <div> and <span> - Tells nothing about its content. • Examples of semantic elements: <form>, <table>, and <article> - Clearly defines its content. • Many web sites contain HTML code like: <div id="nav"> <div class="header"> <div id="footer"> to indicate navigation, header, and footer. HTML Semantic Elements:
  • 4.
    < > MENU AKHIRI ←→ MENU AKHIRI • HTML <article> Element • The <article> element specifies independent, self-contained content. An article should make sense on its own, and it should be possible to distribute it independently from the rest of the web site. • Examples of where the <article> element can be used: – Forum posts – Blog posts – User comments – Product cards – Newspaper articles HTML <article> Element:
  • 5.
    < > MENU AKHIRI ←→ MENU AKHIRI • Nesting <article> in <section> or Vice Versa? • The <article> element specifies independent, self- contained content. • The <section> element defines section in a document. • Can we use the definitions to decide how to nest those elements? No, we cannot! So, you will find HTML pages with <section> elements containing <article> elements, and <article> elements containing <section> elements Nesting <article> In <section> Or Vice Versa?
  • 6.
    < > MENU AKHIRI ←→ MENU AKHIRI • The <header> element represents a container for introductory content or a set of navigational links. • A <header> element typically contains: • one or more heading elements (<h1> - <h6>) • logo or icon • authorship information. HTML <header> Element:
  • 7.
    < > MENU AKHIRI ←→ MENU AKHIRI • The <footer> element defines a footer for a document or section. • A <footer> element typically contains: – authorship information – copyright information – contact information – sitemap – back to top links – related documents • You can have several <footer> elements in one document.. HTML <footer> Element:
  • 8.
    < > MENU AKHIRI ←→ MENU AKHIRI • The <aside> element defines some content aside from the content it is placed in (like a sidebar). • The <aside> content should be indirectly related to the surrounding content. HTML <aside> Element:
  • 9.
    < > MENU AKHIRI ←→ MENU AKHIRI • The <nav> element defines a set of navigation links. HTML <nav> Element
  • 10.
    < > MENU AKHIRI ←→ MENU AKHIRI • The <figure> tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc. • The <figcaption> tag defines a caption for a <figure> element. The <figcaption> element can be placed as the first or as the last child of a <figure> element. • The <img> element defines the actual image/illustration. HTML <figure> and <figcaption> Elements:
  • 11.
    < > MENU AKHIRI ←→ MENU AKHIRI • According to a research: "A semantic Web allows data to be shared and reused across applications, enterprises, and communities.“ • This is why semantic elements work and they are used greatly to build websites, structure data and etc. Why Semantic Elements Work?:
  • 12.
    Daftar Pustaka < MENUAKHIRI ← MENU AKHIRI • https://www.slideshare.net/slideshow/html-semantic-elements/250192568
  • 13.