HTML HTML Basics Structuring Your Content Semantic HTML: <header>, <footer> and <section>

Section tag

What is the use of a section tag and what does it do?

1 Answer

Frances Tang
Frances Tang
Front End Web Development Techdegree Student 12,023 Points

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section

From what I understand, the section tag represents non-specific parts of the content. So when you don't know what the block code belongs but you want to group them, <section></section> is a good choice.

Hope it helps:)

It definitely helped me. Thank you very much Mrs.Tang.