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

Summary of common MySQL table design errors

Table of contents Mistake 1: Too many columns of ...

Mysql database recovery actual record by time point

Introduction: MySQL database recovery by time poi...

A simple way to restart QT application in embedded Linux (based on QT4.8 qws)

Application software generally has such business ...

Vue+openlayer5 method to get the coordinates of the current mouse slide

Preface: How to get the coordinates of the curren...

MySQL 8.0.21 installation and configuration method graphic tutorial

Record the installation and configuration method ...

How to use tcpdump to capture packets in Linux system

Let me look at the example code first: 1. Common ...

A brief summary of my experience in writing HTML pages

It has been three or four months since I joined Wo...

Vue implements a simple shopping cart example

This article shares the specific code of Vue to i...

Vue project implements left swipe delete function (complete code)

Achieve results The code is as follows html <t...

How to display web pages properly in various resolutions and browsers

The key codes are as follows: Copy code The code i...

How to install openjdk in docker and run the jar package

Download image docker pull openjdk Creating a Dat...

What should I do if I can't view the source file of a web page?

Q: Whether using Outlook or IE, when you right-cl...

MySQL Series Database Design Three Paradigm Tutorial Examples

Table of contents 1. Knowledge description of the...

Analyze several common solutions to MySQL exceptions

Table of contents Preface 1. The database name or...