This blog post will show you how to use css to make text bold. This is a very important css code if you want your content to stand out on the page. Below is an example of what css looks like that will turn text into bold: How to Bold Text in CSS
h1 { font-weight:bold; } h2 { font-weight:bold; }
1. Add the following to your CSS file
2. Bold text can be done with a few lines of code
3. You can also use the Fonts tab in your WordPress dashboard
4. Replacing regular text with bold text will make your blog posts more interesting and engaging for readers
5. If you want to go even further, try adding italics or underline effects as well!
6. The best way to learn how is by playing around with it yourself!
<!DOCTYPE html>
<html>
<head>
<style>
p.normal {
font-weight: normal;
}
p.light {
font-weight: lighter;
}
p.thick {
font-weight: bold;
}
p.thicker {
font-weight: 900;
}
h1 {font-weight:bold; }
h2 {font-weight:bold; }
</style>
</head>
<body>
<h1>The font-weight Property - mycodeshub</h1>
<p class="normal">This is a paragraph.</p>
<p class="light">This is a paragraph.</p>
<p class="thick">This is a paragraph.</p>
<p class="thicker">This is a paragraph.</p>
</body>
</html>
How to Bold Text in CSS Related Post:
Which css attribute would change an element’s font color to blue
How to Get Date and Time In PHP?
Which css attribute would change an element’s font color to blue
Which css attribute would change an element’s font color to blue
How to use a centered button in CSS
Leave a Reply
You must be logged in to post a comment.