HTML - Section Tag


Advertisements


Description

The HTML <section> tag specifies a section in a document.

Example

Live Demo
<!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>

This will produce the following result −

Global Attributes

This tag supports all the global attributes described in − HTML Attribute Reference

Event Attributes

This tag supports all the event attributes described in − HTML Events Reference

Browser Support

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes

html_tags_reference.htm

Advertisements