tags doubt | SoloLearn: Learn to code for FREE!


tags doubt

what is the difference between the <b> tag and <strong> tag can we use any one from this

4/23/2020 7:04:50 AM


4 Answers

New Answer


these are old html elements, don't use them anymore use span, assign a class name to the span element, and use css property font-weight


The <b> tag makes the text 'bold' and the <strong> tag makes the text 'important'. This is the only difference between them.


Both <b> and <strong> make text bold. But <strong> highlight text as important. If you want to highlight unimportant text, use <span> I hope, it will help!😊


<b> is used to bold a text <strong> is used to bold a text too Strong is just like a message to a third person reading your source code indicating that the text is important none of them is deprecated