English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML <h4>标记定义了HTML文档中的第四级标题。该标签通常也称为 <h4>元素。
HTML h4标题:
!doctype html> <html> <head> <meta charset="UTF-8"> <title>HTML5 h4标签的使用(基础教程网 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> </body> </html>测试看看 ‹/›
IEFirefoxOperaChromeSafari
所有主流浏览器都支持 <h4> 标签。
HTML > elements are located within the <body> tag.1> The range of titles can be from <h6> to <h1> and the most important title is <h6> The least important title is <h >.1> titles are usually smaller than <h2> and <h3> title, find the <h4After the <h <h4> titles. Do not skip heading levels.1> titles are usually smaller than <h2> and <h3>small headings. Do not just use<h4Tags to apply other formatting.<h4Tags are used to define heading levels, for example in a table of contents. In HTML 4.01 in, <h4>"align" attribute has been deprecated. In HTML 5 in, <h4The "align" attribute of the element is not supported. Please use CSS to align elements. <h4Tag Support HTML Global Attributes. <h4Tag Support HTML Event Attributes. HTML Tutorial:HTML TitlesHTML 4.01 and HTML5differences between
Attribute
Attribute Value Description align left
center
right
justifyHTML5 Not Supported. HTML 4.01 Deprecated. Defines the alignment of the title text. Global Attributes
Event Attributes
Related Articles