HTML5 Library:HTML5 New Semantic Elements



Many websites contain HTML code such as <div id="nav" > < div class = "header" > <div id = "footer">
navigation, header and footer to show.

HTML5 introduces new semantic elements to define different parts of a web page:

  • <article>
  • <aside>
  • <details>
  • <figcaption>
  • <figure>
  • <footer>
  • <header>
  • <main>
  • <mark>
  • <nav>
  • <section>
  • <summary>
  • <time>
For example;

HTML5 < section> element

the < section> element defines a section in a document.

According to some HTML5 documentation: "a section is a thematic grouping of content, typically with a heading."

The home page of a website may be divided into sections for presentation, content and contact information. With the help of <section>, we can understand this.

Comments