The section tag in HTML5
As its name, the <section>
tag is used to represent section in page or document. Any page may contain more
than one section. This is new tag in HTML5. We write the following code to
understand its working.
- <!DOCTYPE HTML>
- <html>
- <body>
- <section>
- <h1>C</h1>
- <p>c is a procedural language.
- </br>It is middle level language.
- </p>
- </section>
- <section>
- <h1>JAVA</h1>
- <p>java is object oriented language.
- </br>It is high level language.
- </p>
- </section>
- <section>
- <h1>C#</h1>
- <p>c# is object oriented language.
- </br>It is high level language.
- </p>undefined</section>undefined</body>undefined</html>
The page will look like as below figure: