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
Table of contents Mistake 1: Too many columns of ...
Introduction: MySQL database recovery by time poi...
Application software generally has such business ...
Preface: How to get the coordinates of the curren...
Record the installation and configuration method ...
Let me look at the example code first: 1. Common ...
It has been three or four months since I joined Wo...
This article shares the specific code of Vue to i...
Achieve results The code is as follows html <t...
The key codes are as follows: Copy code The code i...
Download image docker pull openjdk Creating a Dat...
Q: Whether using Outlook or IE, when you right-cl...
Because we were going to build a website, in addi...
Table of contents 1. Knowledge description of the...
Table of contents Preface 1. The database name or...