HTML <section> (Section) Tag

❮ Previous Reference Next ❯

Example

<section>
<h2>HTML</h2>
<p>The first version of HTML was written by Tim Berners-Lee in 1993. Since then, there have been many different versions of HTML. The most widely used version throughout the 2000`s was HTML 4.01, which became an official standard in December 1999.</p>
</section>

<section>
<h2>CSS</h2>
<p>CSS was first proposed by HÃ¥kon Wium Lie on October 10, 1994. At the time, Lie was working with Tim Berners-Lee at CERN.</p>
</section>

<section>
<h2>JavaScript</h2>
<p>Brendan Eich created JavaScript in 1995 while he was at Netscape Communications Corporation, the creators of the legendary Netscape Navigator web browser. At the time, the Java coding language was rapidly gaining traction and Netscape Communications was working to make it available in Netscape Communicator.</p>
</section>

Meaning

The <section> element defines a generic section of a document and it may contain a heading and footer of its own.

Note: Authors are encouraged to use the <article>article element instead of the section element when it would make sense to syndicate the contents of the element.

Version: HTML5


Standard Syntax

<section>...</section>



Browser Support




Status







Global Attributes

The <section> element also supports the Global Attributes in HTML.


Event Attributes

The <section> element also supports the Event Attributes in HTML.




By Default CSS Value(s)

Most of the browsers will display the <section> element with the following by default value(s)

section { 
  display: block;
}



Related Tags:

<button>, <datalist>, <fieldset>, <form>, <input>, <label>, <legend>, <meter>, <optgroup>, <option>, <output>, <progress>, <textarea>
❮ Previous Reference Next ❯