HTML5 is having new elements, which helps the developer to make their document in the form that can be easily understood. By using HTML5 elements there is no need to use <div> again and again. This makes our work easier by using less number of classes. Here are some new HTML elements:-
<header>:- <header> tag appears on the top of the page of a website.It gives us the introduction about the page.
<footer>:-<footer> tag is used in the bottom of the page.
<nav>:- <nav> tag is used for the navigation links in the header.
<section>:- In <section> tag we define the contents of the page/document in different parts or sections.
<article>:- An article and section tag are semantic tags. We can use <article> inside <section> and <section> inside <article>. <article> tag is used for indpendent content. For e.g- newspaper article.
<aside>:- In <aside> tag additional information related to the page is added.
<figure>:- <figure> tag is used to define the content mainly for media but it can be anything.
<figcaption>:- <figcaption> is used to define the content/caption of the <figure> element.
<time>:- <time> tag is used to define date and time.
0 Comment(s)