Is there any difference between the <b> tag and the <strong> tag in html

Possible duplicate:
What is the difference between <b> and <strong>, <i> and <em>?

The goal of bold is to boldly make the text bold. Then what is the purpose of a strong tag in html? I used a strong tag to make the text bold.

So what is the difference between both tags.

Where should I use the strong tag and where do I need to use the bold tag.

+4
source share
4 answers

it's really all about semantic HTML.

<b/> 
Tag

It says nothing about the content and, therefore, is not a semantic representation of your content.

 <strong> 

on the other hand, gives you an idea of ​​the semantic meaning of the subject in which you place the tag. The same thing happens with

 <i> and <em>. 
+12
source

<b> is for presentation, and <strong> is for context. Visual browsers usually highlight strong text as bold, but things like screen programs can render it louder.

+12
source

The <strong> tag is a phrase tag.

whereas

<b> tags are font style tags.

+3
source

Amplification Anatoly G answer: <b> and <i> , and their ilk were added to HTML by people who did not understand the whole point of the language and the fact that its tags were for the semantics of your text, and not for presentation. Of course, to be honest with these people, this is because the people who made the HTML first had no idea how to use the HTML code. As a result, a whole bunch of unreasonable tags were added ( <blink> anyone? <frame> ?), Which greatly drowned the HTML scene and that we still need to live to this day.

These days, you should avoid using presentation tags to use CSS correctly so that your tags reflect your semantic intent while your CSS controls the presentation of the same.

+2
source

All Articles