![]() ![]() ![]() So, with it, you don't just make text bold, you can also make it lighter than its surrounding text. The font-weight property takes lighter, bold, and bolder as values. How to Make Text Bold with the CSS font-weight Property With the tag, the freeCodeCamp text isn’t just bold, it has a semantic meaning and emphasis. īefore paying to learn programming, check out Just like the tag, you need to wrap the tag around the text to make the text bold with it. ![]() also makes text bold just like the tag, but there is a slight difference between the two. With the tag, you are not just making the text bold – you are calling special attention to it. How to Make Text Bold With the Tag in HTML To make text bold with this tag, you need to wrap it around the text like this: This text is bold, but this text is not.Īs you can see in the image, the tag makes part of the text stand out. HTML gives us the tag for making text bold. ![]() Let's look at each method in more detail. You can use the tag, the tag, or you can do it in CSS with the font-weight property. In HTML, there are three major ways that you can use to make text bold. In this article, I will take you through how to emphasize certain text by making it bold. When you're building a website, you may want to place particular emphasis on certain text to let users know that it's important.Īnd you can do this in HTML with various text formatting tags. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |