How to use the section tag in HTML

A section element tag specifies a section in a document.or a more general section and that could be used to split up an article, or to represent chapters, for example.

<!DOCTYPE html>
<html>

   <head>
      <title>HTML Section Tag</title>
   </head>

   <body>
      <section>
         <h1>Java</h1>
         <h3>Inheritance</h3>
         <p>Inheritance defines the relationship between superclass and subclass.</p>
      </section>
   </body>

</html>