Home > Web Front-end > HTML Tutorial > H tag should be used reasonably in web page production_HTML/Xhtml_web page production

H tag should be used reasonably in web page production_HTML/Xhtml_web page production

WBOY
Release: 2016-05-16 16:42:44
Original
2099 people have browsed it

HTML tags have specialized tags that handle titles on the page. They are h1, h2, h3, h4, h5 and h6. Like feudal society, h1 is the almighty monarch and h6 is the lowest common people.

Copy code
The code is as follows:

The main title is written in Here


Subtitle, write here



Copy code
The code is as follows:

"http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


My first web page - jb51. net


My first web page - jb51.net


This is What


A simple webpage composed of HTML


Purpose


Learn HTML


Note that the h1 tag can only be used once on a page - assuming it is the main title of this page, is it not? It should be used multiple times (equivalent to the title of an article, you can have a sub-title, but you wouldn’t use two parallel titles, right? - Translator’s Note jb51.net).
However, h2 to h6 can be used as many times as you need, but they should be used in order according to the design intent. For example, h4 should be a subheading of h3, h3 should be a subheading of h2, and so on.
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template