Languages
[Edit]
EN

CSS - bold text

3 points
Created by:
Violetd
835

In this article, we would like to show how to bold text with CSS.

Quick solution:

span {
    font-weight: bold;
}

 

Practical example using font-weight property

The style property that makes the bold effect on text is font-weight: bold.

Practical example:

// ONLINE-RUNNER:browser;

<!doctype html>
<html>
<head>
  <style>

    span {
        font-weight: bold;
    }

  </style>
</head>
<body>
  <p>Some text with <span>bold</span> element.</p>
</body>
</html>

Note:

You can also use the HTML solution from the following article: HTML - bold text.

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join