How to use html h1-h6 tags

silencement
Release: 2019-05-28 10:46:06
Original
3994 people have browsed it

How to use html h1-h6 tags

##Definition and usage of

-

tags in html

-

tags Definable title.

defines the largest heading.

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:

这是标题 1

这是标题 2

这是标题 3

这是标题 4

这是标题 5
这是标题 6
Copy after login

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
Copy after login

Event Properties

onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
Copy after login

Browser Support

All browsers support

-

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!