EN
CSS - bold text
3
points
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.