How to bold text in CSS

php中世界最好的语言
Release: 2017-11-21 14:38:04
Original
4765 people have browsed it

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
Copy after login

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 the other is

Grammar:

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

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!

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