Home  >  Article  >  Web Front-end  >  What does the h1 tag mean?

What does the h1 tag mean?

云罗郡主
云罗郡主Original
2019-01-30 17:11:4325359browse

What does the h1 tag mean?

The title (H1-H6) tag refers to a tag that emphasizes the text title in the web page html, with the tag

,

to

show decreasing importance in sequence. The main purpose of making the tag is to tell the search engine that this is the title of a paragraph of text, which plays an emphasis role. [Recommended tutorial: HTML video tutorial]

What does the h1 tag mean?

Function:

-

tags can define titles.

defines the largest heading.

Defines the smallest heading.

Note: 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.

Note: 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.

html h1 tag example

<html>
<body>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
<p>请仅仅把标题标签用于标题文本。不要仅仅为了产生粗体文本而使用它们。请使用其它标签或 CSS 代替。</p>
</body>
</html>


The above is the detailed content of What does the h1 tag mean?. 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