Pr.Pg Next Pg

<SECTION>..</SECTION> tag tutorials

  • The <section> tag defines sections in a document. Such as chapters, headers, footers, or any other sections of the document.

  • The <section> tag is new in HTML5.

  • The <section> tag is supported in Chrome, Firefox, Internet Explorer 9+, Opera, and Safari.

  • The below table shows the attribute of <SECTION> tag :

 

Sr No

Attributes

Descriptions

1

ID

This attribute specify a unique id for an element in document.

2

style

This attribute specify an inline CSS style for an element.

3

title

This attribute specify extra information about an element.

4

draggable

This attribute specify whether an element is draggable or not.

5

hidden

This attribute specify that an element is not yet, or is no longer, relevant.

6

contextmenu

This attribute specify Specifies whether the content of an element is editable or not.

7

spellcheck

This attribute specify whether the element is to have its spelling and grammar checked or not.

 

Syntax:

<body>

<section>some text</section>

</body>

 

Example: HTML program to demonstrate section element

Output:
Pr.Pg border                                              Next Pg