CSS bold text In total there are two ways, one is to use HTML bold tag, one is to use CSS bold, today we introduce two different methods of bold, and the difference between the two methods
CSS Bold style word for
Font-weight
Use syntax:
Div{font-weight:bold}
Represents a bold style setting for text inside a div box.
Extended reading:
1. CSS Font-weight
2, CSS removed bold
HTML Bold Label
HTML Bold Label A total of 2 one is <b></b> another for <strong></strong>
Grammar:
1, <b> I was the B tag bold </b>2, <strong> I was strong label bold </strong>
Extended reading:
1, B and strong bold difference
2, HTML B (b bold)
3, HTML Strong (strong bold)
CSS Bold and HTML bold difference
CSS and HTML tags bold nature of the effect is not different, is the text font content bold bold display. One is through the CSS style extension, a direct text content with bold label text bold.
How to choose CSS Bold or label bold
Whether it is the div css bold or B and strong label bold can, and sometimes in order to save HTML tags, so that the HTML source code more concise we set the CSS bold way to the text font bold. But sometimes we need B or strong tag to be bold, in order to facilitate SEO, we can choose HTML tag way to bold.
CSS how bold text method and the difference is so much, the need for friends can be saved, but also please keep your attention to other updates of this site.
Related reading:
Div+css How to use
What is CSS
Several small-function instances of pure CSS