Home  >  Article  >  Web Front-end  >  How to use html h1-h6 tags

How to use html h1-h6 tags

silencement
silencementOriginal
2019-05-28 10:46:064062browse

How to use html h1-h6 tags

##Definition and usage of 4a249f0d628e2318394fd9b75b4636b1-4e9ee319e0fa4abc21ff286eeb145ecc tags in html

4a249f0d628e2318394fd9b75b4636b1 - 4e9ee319e0fa4abc21ff286eeb145ecc tags Definable title. 4a249f0d628e2318394fd9b75b4636b1 defines the largest heading. 4e9ee319e0fa4abc21ff286eeb145ecc Defines the smallest heading.

Since the h element has exact semantics, please carefully choose the appropriate tag level to structure the document. Therefore, please do not use title tags to change the font size within the same line. Instead, we should use cascading style sheet definitions to achieve beautiful display effects.

Examples

Six different HTML headers:

<h1>这是标题 1</h1>
<h2>这是标题 2</h2>
<h3>这是标题 3</h3>
<h4>这是标题 4</h4>
<h5>这是标题 5</h5>
<h6>这是标题 6</h6>

Differences between HTML and XHTML

In HTML 4.01, the "align" attribute of h1 - h6 elements is deprecated.

In XHTML 1.0 Strict DTD, the "align" attribute of h1 - h6 elements is not supported.

Standard Properties

id, class, title, style, dir, lang, xml:lang

Event Properties

onclick, ondblclick, onmousedown, onmouseup, onmouseover, 
onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

Browser Support

All browsers support 4a249f0d628e2318394fd9b75b4636b1 - 4e9ee319e0fa4abc21ff286eeb145ecc tags.

The above is the detailed content of How to use html h1-h6 tags. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:html How to use html tagsNext article:html How to use html tags

Related articles

See more