What Is the HTML 5 section Tag?

The HTML 5 section tag defines sections in an HTML page, oddly enough.

When Do You Use the section Tag in HTML 5?

The section tag is new in HTML 5, and can be used for chapters, footers, headers, sidebars, etc. In fact, where you might normally use a div tag to group blocks of HTML on a page, you could instead use the section tag. You probably should not use it for page layout, though, as that’s not the use for which it’s intended.

If you grab text or images from elsewhere on the internet, please do the right thing and make sure you use the cite attribute to cite the url where you grabbed the content.

How Is the section Tag Used in HTML 5 Documents?

Here is an example:


<section cite="http://www.youversion.com/reading-plans/blended">
<h1>Blended Plan Length: 1 Year</h1>
<p>This plan is designed to add variety to your reading of the Bible.</p>
</section>

This entry was posted in HTML 5. Bookmark the permalink.

Comments are closed.