HTML 5 Semantics: Digital Media I
HTML 5 Semantics: Digital Media I
Digital Media I
Objectives
A semantic element clearly describes its meaning to both the browser and the developer.
HTML layouts create an individual space for every part of the web page. So that every
element can arrange in a significant order.
HTML Semantics Cont.
HTML <section> Element
The <section> element is a structural HTML element used to group together
related elements.
Each <section> typically includes one or more heading elements and additional
elements presenting related content.
Blog Post
Newspaper article
Nesting <article> in <section>
or Vice Versa
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.
HTML <header> Element
The <header> element represents a container for introductory
content or a set of navigational links.
You can use several <header> elements in one document, but a <header>
element cannot be placed within a <footer>, <address> or another <header>
element.
Authorship information
HTML <footer> Element
The <footer> element defines a footer for a document or section.
sitemap
NOT all links of a document should be inside a <nav> element. The <nav>
element is intended only for major block of navigation links.
HTML <nav> tag is used to represent a section which contains navigation
links, either within current document or to another document. Examples of
some navigation links are menu, table of contents, indexes, etc.
The <nav> tag is newly added tag in HTML5.
HTML <aside> Element
The <aside> element defines some content aside from the content
it is placed in (like a sidebar).
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.
Semantics Elements in HTML
Summary
HTML layouts provide a way to
arrange web pages in well- You will find HTML pages with
mannered, well-structured, and <section> elements containing
in responsive form or we can say <article> elements, and <article>
that HTML layout specifies a elements containing <section>
way in which the web pages can elements.
be arranged.