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

HTML Reference Manual

HTML Tag大全

HTML: <h6HTML: > tag

HTML <h6>The <h tag defines the sixth-level heading in an HTML document. This tag is also commonly referred to as <h6>element.

Online Example

 HTML h6Title:

!doctype html
<html>
<head>
<meta charset="UTF-8">
<title>HTML5 h6tag usage (Basic Tutorial Website oldtoolbag.com)</title>
</head>
<body>
<h1>Heading 1</h1>
<p>This is the content that would appear under Heading 1.</p>
<h2>Heading 2</h2>
<p>This is the content that would appear under Heading 2.</p>
<h3>Heading 3</h3>
<p>This is the content that would appear under Heading 3.</p>
<h4>Heading 4</h4>
<p>This is the content that would appear under Heading 4.</p>
<h5>Heading 5</h5>
<p>This is the content that would appear under Heading 5.</p>
<h6>Heading 6</h6>
<p>This is the content that would appear under Heading 6.</p>
</body>
</html>
test to see ‹/›

browser compatibility

IEFirefoxOperaChromeSafari

All mainstream browsers support <h6> tag.

tag definition and usage instructions

HTML <h6> element is located within the <body> tag.

The range of headings can be from <h1> to <h6>.1> is the least important heading is <h6>.

in <h1, <h2, <h3, <h4> and <h5> after the heading6> headings. Do not skip heading levels.

<h6> headings are usually larger than <h1, <h2, <h3, <h4> and <h5> headings are slightly smaller.

Do not use only <h6> tag to apply other formatting.<h6> tag is used to define heading levels, for example in a table of contents.

HTML 4.01 with HTML5differences between

In HTML 4.01 in, <h6> of the "align" attribute has been deprecated. In HTML 5 in, <h6The "align" attribute of the > element is not supported. Please use CSS to align elements.

Attribute

AttributeValueDescription
alignleft
center
right
justify
HTML5 Not supported. HTML 4.01 Deprecated. Specifies the alignment of the title text.

Global Attributes

<h6HTML: > tag support HTML Global Attributes.

Event Attributes

<h6HTML: > tag support HTML Event Attributes.

Related Articles

HTML Tutorial:HTML Titles