Does the <section> tag matter? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Does the <section> tag matter?

I noticed that the <section> tag really does nothing, nor does the <nav> tag when I made my navigation bar. Why should I use them?

2nd Jun 2018, 8:13 PM
Kyle
Kyle - avatar
3 Answers
+ 5
Kyle you wrote very good question. Section, article, header, aside, main, nav and footer are all semantic elements introduced in HTML5. All are very important and developers should use them correctly. Correct use of these elements are very important for browsers. Correct use helps to search engines to better rate your page because your page content has correct structure. Search engines likes and better rates pages with correct and clear structure. For exemple, if you have main page called About us. Content of that page is divided with thematic ensemble: About company, Our services, Our team. To create these thematic ensemble you have to use <section>. Inside section, for further division of content, you have to use <article>.
2nd Jun 2018, 10:06 PM
Alpen
+ 1
How about the Nav tag
2nd Jun 2018, 8:23 PM
Kyle
Kyle - avatar
0
So is section used once per page? or is it for every little section, eg. articles, pictures, email sign ups?
3rd Jun 2018, 11:55 PM
Kyle
Kyle - avatar