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

How to make fonts bold in HTML (method introduction)

烟雨青岚
烟雨青岚forward
2020-06-20 13:38:555364browse

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>

Font bold label

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

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

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete