Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any difference between <b> tag and <strong> tag in html [duplicate]

Tags:

html

Possible Duplicate:
What's the difference between <b> and <strong>, <i> and <em>?

The purpose of "bold " i.e bold to make the text bold. Then what is the purpose strong tag in html? I have used strong tag to make the text bold.

So what is difference between both the tag.

What are places where i have to use "strong" tag and where i have to use bold tag.

like image 698
Shalni Avatar asked Oct 20 '10 05:10

Shalni


2 Answers

it's really all about semantic HTML.

<b/>

tag doesn't tell you anything about the content, and is thus not a semantic representation of your content.

<strong> 

on the other hand gives you an indication about the semantic meaning of the item you're putting the tag around. Same goes with

<i> and <em>. 
like image 124
Anatoly G Avatar answered Nov 15 '22 11:11

Anatoly G


<b> is for presentation, and <strong> is for context. Visual browsers usually render strong text as bold, but things such as screen readers can render it as a louder voice.

like image 20
Ignacio Vazquez-Abrams Avatar answered Nov 15 '22 11:11

Ignacio Vazquez-Abrams