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

HTML Reference Manual

HTML Tag大全

HTML: <h5HTML: > tag

HTML <h5> The <h tag defines the fifth-level title in an HTML document. This tag is also commonly referred to as <h5> Element.

Online examples

 HTML h5Title:

!doctype html
<html>
<head>
<meta charset="UTF-8">
<title>HTML5 h5Label 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>
</body>
</html>
Test and see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

All mainstream browsers support <h5> Label.

Label definition and usage instructions

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

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

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

<h5> heading font is usually smaller than<h1> headings, <h2> headings, <h3> and<h4> heading is slightly smaller.

Do not just use<h5> tags to apply other formatting.<h5> tags are used to define heading levels, for example in a table of contents.

HTML 4.01 and HTML5differences between

In HTML 4.01 in, <h5> tag's "align" attribute has been deprecated. In HTML 5 in, <h5The "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

<h5HTML: > tag supports HTML Global Attributes.

Event Attributes

<h5HTML: > tag supports HTML Event Attributes.

Related Articles

HTML Tutorial:HTML Title