Home > Web Front-end > HTML Tutorial > How to make fonts bold in HTML (method introduction)

How to make fonts bold in HTML (method introduction)

烟雨青岚
Release: 2020-06-20 14:07:57
forward
5321 people have browsed it

How to make fonts bold in HTML (method introduction)

How to make fonts bold in html (method introduction)

Modification of fonts Beautifying a web page is also very important. A well-beautified web page will bring an intuitive visual impact to people. Today I will tell you how to implement bold fonts in HTML. Let's take a look. .

Font bold attribute

<style type="text/css">
    .类名{
        font-weight: 700;//加粗
        font-weight: 400;//正常
    }
</style>
Copy after login

Font bold label

<b>
    <p>我是字体加粗b标签</p>
</b>

<strong>
    <p>我是字体加粗strong标签</p>
</strong>
Copy after login

Thank you for reading, I hope you will benefit a lot.

This article is reproduced from: https://blog.csdn.net/lovexiuwei/article/details/82668448

Recommended tutorial: "HTML Tutorial"

The above is the detailed content of How to make fonts bold in HTML (method introduction). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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