why use section tag in html code example

Example 1: section tag in html

Section tag defines the section of documents such as chapters, headers, footers
or any other sections. The section tag divides the content into section and 
subsections. ... Section tag grouped the generic block of related contents.

Example 2: section tag html

<!DOCTYPE html>
<html>
<body>

<h1>The section element</h1>

<section>
  <h2>WWF History</h2>
  <p>The World Wide Fund for Nature (WWF) is an international organization working on issues regarding the conservation, research and restoration of the environment, formerly named the World Wildlife Fund. WWF was founded in 1961.</p>
</section>

<section>
  <h2>WWF's Symbol</h2>
  <p>The Panda has become the symbol of WWF. The well-known panda logo of WWF originated from a panda named Chi Chi that was transferred from the Beijing Zoo to the London Zoo in the same year of the establishment of WWF.</p>
</section>

</body>
</html>

Example 3: html section tag

<html>
<head></head>
<body>
    <header></header>
    <section>
        <h1>ffffff</h1>
        <div>
            <span></span>
        </div>
        <div></div>
    </section>
    <footer></footer>
</body>
</html>

Tags:

Html Example