What are Semantic or section tags in HTML?:
In HTML section allow us to group HTML elements. For grouping many HTML elements div tag is used and for grouping few HTML elements. Div tag is block level element and creates a block in webpage while span tag is inline level element and this elements does not start on new line.
Semantic tags in HTML:
HTML5 introduces semantic tags to customize content in proper sequence or order like blocks. It is optional to use semantic elements div and span element do the same work as they do.
Following are semantic tags:
1. <header>: this attribute helps to create a header.
2. <nav>: this Attribute helps to create navigation bar in webpage.
3. <section>: this attribute creates section in webpage.
4. <article>: this attribute help to insert article in webpage.
5. <aside>: this attribute help to creates sidebar.
6. <Footer>: this attribute help to create footer.
7. <details>: this attribute used for adding more information.
Semantic tags help in SEO and faster understanding of webpage by search engine (indexing).
Comments
Post a Comment