English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag大全

HTML: <section> tag

The HTML <section> element represents an independent part within an HTML document that does not have a more specific semantic element to represent it. Generally, it will contain a title. This tag is also commonly referred to as the <section> element.

Online Example

Create a <section> tag:

!doctype html
<html>
<head>
<meta charset="UTF-8">
<title>HTML section tag usage (Basic Tutorial Website oldtoolbag.com)</title>
</head>
<body>
<section>
  <h1>Heading for Section</h1>
  <p>Text that appears under section</p>
</section>
</body>
</html>
Test and see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

IE 9+, Firefox, Opera, Chrome, and Safari <section> tag.

Note:IE 8 or earlier versions of IE browsers do not support <section> tag.

Definition and usage instructions of tags

<section> tag defines a certain area of the document. For example, chapters, headers, footers, or other areas of the document.

<section> tag is usually used for thematic grouping of content.

For versions of IE earlier than 9IE browsers, please use HTML5shiv, a JavaScript solution that can provide support for new HTML5element supports, such as: <header>, <main>, <article>, <section>, <aside>, <nav>, <footer>.

HTML 4.01 with HTML5difference

<section> tag is an HTML5 and new tags.

Global attributes

Support for <section> tag Global attributes of HTML.

Event attributes

Support for <section> tag HTML event attributes.