Home >Web Front-end >HTML Tutorial >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
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!