Home  >  Article  >  Web Front-end  >  How to bold text in CSS

How to bold text in CSS

php中世界最好的语言
php中世界最好的语言Original
2017-11-21 14:38:044743browse

There are two ways to bold text in CSS, one is to use HTML bold tags, and the other is to use CSS to bold. Today I will introduce to you two different bolding methods and the differences between the two methods

CSS bold style word is ##

font-weight

Using syntax:

div{font-weight:bold}

represents setting the bold style for the text in the DIV box.

Extended reading:

1.css font-weight

2.Remove bolding from css

HTML bold tag

HTML There are two bold tags, one is a4b561c25d9afb9ac8dc4d70affff4190d36329ec37a2cc24d42c7229b69747a the other is 8e99a69fbe029cd4e2b854e244eab143128dba7a3a77be0113eb0bea6ea0a5d0

Grammar:

1、<b>我被b标签加粗</b>
2、<strong>我被strong标签加粗</strong>

Extended reading:

1. The difference between b and strong bold

2. html b (b bold)

3. html strong (strong bold)

css bold The difference between

Css and

html tag bolding is no different from html bolding. The essential effect of bolding is to bold the text font content. One is through CSS style extension, and the other is to directly bold the text content using bold tags.

How to choose css bold or label bold

Whether it is div css bold or b and strong tags bold, sometimes in order to save html tags and make the HTML source code more concise we Just set the css bolding method to bold the text font. But sometimes we need the B or strong tag to be bold. In order to facilitate SEO, we can choose the html tag to bold.

There are so many ways and differences in how to bold text in CSS. Friends in need can save it. Please also continue to pay attention to other

updates on this site.

Related reading:

How to use DIV+CSS


What is CSS


Several examples of small functions made with pure CSS

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

Statement:
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