Loading ...

What is difference between strong and b html tag

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  client side web development   » What is difference between strong and b html tag

What is difference between strong and b html tag

Posts under the topic: What is difference between strong and b html tag

Posted: 7/31/2009

Contributor 2841  points  Contributor
  • Joined on: 11/29/2008
  • Posts: 62

Hi All,
I have some confusion in <b></b> and <strong></strong> .
Which is better in use and when we use <b> and when we use <strong>.

Thanks in advance.


Posted: 7/31/2009

Starter 1543  points  Starter
  • Joined on: 12/22/2008
  • Posts: 46

Vijjendra said:

I have some confusion in <b></b> and <strong></strong> .
Which is better in use and when we use <b> and when we use <strong>.

Hi Vij.

The <B> tag always displays bold text.
The <Strong> tag is used to emphasize text in a stronger manner.

Thanks.


Posted: 7/31/2009

Contributor 2841  points  Contributor
  • Joined on: 11/29/2008
  • Posts: 62

Shaitender said:

The <B> tag always displays bold text.
The <Strong> tag is used to emphasize text in a stronger manner.


Thanks for your reply
Strong is also used for bold text, what do u want to say "emphasize text in a stronger manner" .


Posted: 8/2/2009

Lurker 157  points  Lurker
  • Joined on: 5/8/2009
  • Posts: 1
  Answered

Hi Vijendra,

I think this is a pretty good question, maybe you can find answers here:

As we know the keyword in bold or strong tag specifies that it has slightly more importance than other text on the web page.These bold keywords are given a second look by screen-readers.

The keyword in bold or strong tag specifies that it has slightly more importance than other text on the web page.These bold keywords are given a second look by screen-readers.

The difference between <b></b> and <strong></strong> is, <b> tag is used for bolding the text in normal manner but <strong> is used for putting a strong emphasis on a word to make that word emphatic.<strong> tag is a logical tag. This means that it used deliberately by a designer when the designer wants to show the importance of the particular words or phrases.use <strong> tag sparingly or your page  much as you would use exclamation points ( ! ! ! ). If you are only highlighting words for a visual effect to assist in navigation use the <b> tag.

<strong> is better because it can easily read-it's meaning is clearer.<strong> conveys a meaning for showing the text emphatic, while <b> conveys a method - bolding the text.WIth strong, our code still makes sense if we use CSS stylesheets to change what the methods of making the text strong is.

But remember every browser shows emphasis  in different ways  some browsers will italicize it and some will bold it.

Hope this will help you:)


Posted: 8/24/2009

Starter 1035  points  Starter
  • Joined on: 4/27/2009
  • Posts: 72
  Answered

Yes I agree with the others, you should use <strong>.

<b> should be considered a depreciated tag and not for general use.

they both mean the same thing but the strong tag doesnt tie you to a display mode. b tag implies it will be bold, but the strong tag doesnt force this thought into your head - it could be a colour or a font face change instead.

<strong> should be used as part of w3c standards based approach to web development. For more information about which tags to choose when please search google for "semantic markup"


Posted: 1/6/2010

Lurker 5  points  Lurker
  • Joined on: 1/6/2010
  • Posts: 1

 


If you use a <b> tag to make the text bold it does look bold.

If you use a <strong> tag to make the text bold it also looks bold in most browsers.


 


Page 1 of 1 (6 items)