How to bold only one word in whole sentence in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to bold only one word in whole sentence in html

17th Aug 2019, 11:57 AM
Tushar Makkar
Tushar Makkar - avatar
9 Answers
+ 11
Wrap it in a <b> tag <p>The quick brown fox <b>jumps</b> over the lazy dog</p>
17th Aug 2019, 12:08 PM
Burey
Burey - avatar
+ 7
<p>This is a paragraph with a single <b>word</b> being bold.</p>
17th Aug 2019, 12:09 PM
Hatsy Rei
Hatsy Rei - avatar
+ 6
Thanks everyone
17th Aug 2019, 12:15 PM
Tushar Makkar
Tushar Makkar - avatar
+ 5
Consider yourself lucky you got 2 platinum mods to answer you. This information is also available in the html tutorial.
17th Aug 2019, 12:40 PM
Sonic
Sonic - avatar
+ 4
You can also make use of <strong>.... </strong> " .... " means the part of the text you wanna bold Note: <strong> element makes sentence important
17th Aug 2019, 4:01 PM
Iambjdennis
Iambjdennis - avatar
+ 3
Thanks everyone
17th Aug 2019, 3:38 PM
Tushar Makkar
Tushar Makkar - avatar
+ 2
Just do: <b>This</b> is a sentence
17th Aug 2019, 12:08 PM
Paul Grasser
Paul Grasser - avatar
+ 1
If you want to bold it with a value that is different from the defualt value in <b> tag then you can use <span> tag and set the value you want to font-weight with css
17th Aug 2019, 3:22 PM
Safaa Alnabhan
Safaa Alnabhan - avatar
+ 1
Use <b>or <strong> tags to bold a text
24th Aug 2019, 3:52 PM
Tahir Shaikh
Tahir Shaikh - avatar