Can I make a text bold using css attributes? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Can I make a text bold using css attributes?

Can I make a text bold using CSS attributes? I know how to use html tags <strong> and <b> to change the font style into boldface. I was wondering if there is way to do this via CSS?

17th Sep 2017, 4:40 PM
Vahid Shirbisheh
Vahid Shirbisheh - avatar
2 Answers
+ 13
Yes you can. p { font-weight: bold; }
17th Sep 2017, 4:43 PM
Suresh
+ 8
@Idrina Thank you!
17th Sep 2017, 4:44 PM
Vahid Shirbisheh
Vahid Shirbisheh - avatar