How to set title font size in css

王林
Release: 2023-01-07 11:42:57
Original
4963 people have browsed it

The way to set the title font size in css is to use the

tag to define the highest level title and the

tag to define the lowest level title, for example [

This is Title 1

This is title 6
].

How to set title font size in css

The operating environment of this article: windows10 system, css 3, thinkpad t480 computer.

In the web page, we can directly use the

to

tags to define the title font size. Let’s briefly introduce this tag.

-

tags are used to define HTML titles.

Defines the title with the highest level of importance.

Defines the title with the lowest level of importance.

Example:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>php中文网(php.cn)</title>
</head>
<body>

<h1>这是标题 1</h1>
<h2>这是标题 2</h2>
<h3>这是标题 3</h3>
<h4>这是标题 4</h4>
<h5>这是标题 5</h5>
<h6>这是标题 6</h6>

</body>
</html>
Copy after login

Run as follows:

How to set title font size in css

##Related video tutorial sharing:

css video tutorial

The above is the detailed content of How to set title font size in css. For more information, please follow other related articles on the PHP Chinese website!

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