H tags should be used reasonably in web page production

H tags should be used reasonably in web page production
HTML tags have special tags to handle the title of the page. They are h1, h2, h3, h4, h5 and h6. Just like in feudal society, h1 is the omnipotent monarch and h6 is the lowest class of people.

Copy code
The code is as follows:

<h1>Main title, write here</h1>
<h6>Sub-title, write here</h6>


Copy code
The code is as follows:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>My first web page - jb51.net</title>
</head>
<body>
<h1>My first web page - jb51.net</h1>
<h2>What is this</h2>
<p>Simple web pages composed with HTML</p>
<h2>Purpose</h2>
<p>Learn HTML</p>
</body>
</html>

Note that the h1 tag can only be used once on a page - assuming it is the main title of the page, it should not be used multiple times (equivalent to the title of an article, you can have a sub-title, but you would not 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 the order they are designed to be used. For example, h4 should be a subheading of h3, h3 should be a subheading of h2, and so on.

<<:  Example code for CSS to achieve horizontal lines on both sides of the text

>>:  How to view the database installation path in MySQL

Recommend

Analyze the duration of TIME_WAIT from the Linux source code

Table of contents 1. Introduction 2. First, let&#...

How to open external network access rights for mysql

As shown below: Mainly execute authorization comm...

Detailed explanation of the loop form item example in Vue

Sometimes we may encounter such a requirement, th...

Flash embedded in web pages and IE, FF, Maxthon compatibility issues

After going through a lot of hardships, I searched...

How to check whether a port is occupied in LINUX

I have never been able to figure out whether the ...

Detailed example of using js fetch asynchronous request

Table of contents Understanding Asynchrony fetch(...

Detailed tutorial on using VMware WorkStation with Docker for Windows

Table of contents 1. Introduction 2. Install Dock...

A collection of information about forms and form submission operations in HTML

Here we introduce the knowledge about form elemen...

Linux Disk Quota Management Graphical Example

Disk quota is the storage limit of a specified di...

Docker private warehouse harbor construction process

1. Preparation 1.1 harbor download harbor downloa...

Summary of Problems in Installation and Usage of MySQL 5.7.19 Winx64 ZIP Archive

Today I learned to install MySQL, and some proble...

Complete steps for mounting a new data disk in CentOS7

Preface I just bought a new VPS. The data disk of...

HTML table border control implementation code

Generally, when we use a table, we always give it...