Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When to use <strong> and when to use <b>? [duplicate]

Tags:

Possible Duplicate:
Is it ok to use <strong> in place of <b> blindly ?

When to use <strong> and when to use <b> or other ways to give look of bold? strong has semantic value ( and useful for screen reader while b is presentation (and even valid in HTML 5).

my question is not what is the difference between strong and b.

The question is when to use semantic tag and when to use just to make text bold

Should I always use <strong> if client's content files (MS word files) has some words bold in content paragraphs?

alt text http://shup.com/Shup/365676/11051764618-My-Desktop.png

How can we know when client want to give emphasis to text and when he just want to make text bold for presentation/aesthetic purpose?

If it's client job to tell us, then how to explain this scenario to client to give us clear info on "when he just want to make text bold for presentation/aesthetic purpose" ?

like image 801
Jitendra Vyas Avatar asked Jun 17 '10 05:06

Jitendra Vyas


People also ask

Should I use strong or B?

The <strong> element is for content that is of greater importance, while the <b> element is used to draw attention to text without indicating that it's more important.

What is difference between B and strong tag?

The text written under <b> tag makes the text bold presentationally to draw attention. The main difference between these two tag is that the strong tag semantically emphasizes on the important word or section of words while the bold tag is just offset text conventionally styled in bold.

What is difference between B and strong?

b or i means you want the text to be rendered as bold or italics. strong or em means you want the text to be rendered in a way that the user understands as "important". The default is to render strong as bold and em as italics, but some other cultures might use a different mapping.

Why strong tag is used?

Definition and Usage The <strong> tag is used to define text with strong importance. The content inside is typically displayed in bold. Tip: Use the <b> tag to specify bold text without any extra importance!


2 Answers

I've always followed a simple rule of thumb:

  • <strong> means "strong emphasis", and implies no particular visual style. It has semantic meaning, but could look like anything.
  • <b> is used to apply a bold visual effect to text, but is a presentational tag like <font> and so should be avoided (where possible) in favour of CSS.
like image 52
Chris Avatar answered Sep 25 '22 06:09

Chris


How can we know when client want to give emphasis to text and when he just want to make text bold for presentation/aesthetic purpose?

Read the client's text with understanding.

  • use <strong> when the context says that the bold text is more important than the other (and it is inline)
  • use <b> if it just should be bold (even in database, feed reader or without stylesheets). In this case boldness may be used to catch the readers eye.

When in doubt, ask the client what did he meant.

To save you and yourself a hassle, ask the client to use formatting styles in his editor. This is very useful feature, pity that there few people who do know what for this feature is.

Edit:

This is strong and this is bold. Any difference?

All the problems begin here. If the strong were by default colored RED (no red markup on SO), and normal weight, there would be no questions like this.

like image 35
takeshin Avatar answered Sep 23 '22 06:09

takeshin