HTML section tag
Example
Two sections in a document:
<section>
<h2>Love</h2>
<p>Love encompasses a range of strong and positive emotional and mental states, from the most sublime virtue or good habit, the deepest interpersonal affection, to the simplest pleasure.</p>
</section>
<section>
<h2>Life</h2>
<p>The meaning of life, or the answer to the question: "What is the meaning of life?", pertains to the significance of living or existence in general. Many other related questions include: "Why are we here?", "What is life all about?", or "What is the purpose of existence?"</p>
</section>
<h2>Love</h2>
<p>Love encompasses a range of strong and positive emotional and mental states, from the most sublime virtue or good habit, the deepest interpersonal affection, to the simplest pleasure.</p>
</section>
<section>
<h2>Life</h2>
<p>The meaning of life, or the answer to the question: "What is the meaning of life?", pertains to the significance of living or existence in general. Many other related questions include: "Why are we here?", "What is life all about?", or "What is the purpose of existence?"</p>
</section>
Definition and Usage
The <section>
tag defines a section in a document.
Browser Support
The numbers in the table specify the first browser version that fully supports the element.
Element | |||||
---|---|---|---|---|---|
<section> | 5.0 | 9.0 | 4.0 | 5.0 | 11.5 |
Global Attributes
The <section>
tag also supports the Global Attributes in HTML.
Event Attributes
The <section>
tag also supports the Event Attributes in HTML.
Default CSS Settings
Most browsers will display the <section>
element with the following default values:
Example
section {
display: block;
}
display: block;
}
Comments
Post a Comment