How to make text bold in css

青灯夜游
Release: 2021-01-28 09:19:37
Original
35309 people have browsed it

In CSS, you can use the font-weight attribute to bold text. This attribute can set the thickness of the text; you only need to set the value of the font-weight attribute to "bold", "bolder" or " 600", "700", "800", "900" will do.

The operating environment of this article: Acer S40-51, CSS3&&HTML5&&HBuilderX.3.0.5 version, Windows10 Home Chinese version

(Learning video sharing: css video tutorial)

How to bold text in css

In css, you can use the font-weight attribute to bold text.

The font-weight property can be used to set the thickness of text text. The larger the attribute value, the bolder the font.

Attribute value:

How to make text bold in css

Example 1: Using the keywords bold and bolder

How to make text bold in css

Rendering:

How to make text bold in css

Example 2: Using numerical values ​​(700~900)

How to make text bold in css

Rendering:

How to make text bold in css

For more programming-related knowledge, please visit: Introduction to Programming! !

The above is the detailed content of How to make text bold in css. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!