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
1. Use Docker Compose to configure startup If you...
Table of contents 1. Introduction 2. First, let...
As shown below: Mainly execute authorization comm...
Sometimes we may encounter such a requirement, th...
After going through a lot of hardships, I searched...
I have never been able to figure out whether the ...
Table of contents Understanding Asynchrony fetch(...
Table of contents 1. Introduction 2. Install Dock...
Here we introduce the knowledge about form elemen...
Disk quota is the storage limit of a specified di...
1. Preparation 1.1 harbor download harbor downloa...
Today I learned to install MySQL, and some proble...
This article mainly involves solutions to problem...
Preface I just bought a new VPS. The data disk of...
Generally, when we use a table, we always give it...