Home Tutorial Html Html5 HTML5 section tag, Example of section tag in html5

 
 

HTML5 section tag, Example of section tag in html5
Posted on: September 17, 2010 at 12:00 AM
Here, We will introduce you about the <section> tag in html5.

HTML5 section tag, Example of section tag in html5

Here, We will introduce you about the <section> tag in html5. This tag is used to specify the sections of the document or article like header, footer and information related to document. Every document have many section in the body, in web home pages we have many sections like as summary, about the company, login section, current events etc in the different parts of the page. 

Declaration Syntax:

<section>Data Of The Section Here</section>

This tag have no specific attribute.

Example: section_tag.html.

<!DOCTYPE html>
<html>
  <head>
      <title>Example of section Tag</title>
  </head>
   <body>
     <section>
         <h2>This section start here.</h2>
         This is the section of document text.<br>
         It represents the section of document.
     </section>
  </body> 
</html>

Output:

Download This Example

Difference between html4.01 and html5.

This is new introduction in html5.

Related Tags for HTML5 section tag, Example of section tag in html5:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.