How to add bold text to CSS

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.