RSS

Just out of curiosity, why “strong” tag instead of “b” tag?

27 May

I was wondering why, so thought this was interesting:

> I haven't quite figured out why <code><strong></code> came into use
 > instead of <code><b></code>.

For semantic reasons.  The general meaning of <b> is "stress this,"
which we display visually as enboldened print, but in a screen
reader it is spoken more loudly.  To reflect this semantic meaning
we now use <strong>.  And with CSS we can now display <strong> as,
for example red colored text rather than bold text if we wish.

Same argument goes for <i> / <em>.

(However, note that <b> and <i> are *not* deprecated and are fine
to use when we do not MEAN strong or emphasis.  For example it is
proper to use <i> for the title of a magazine article, or for
foreign terms.  In these cases we use italics not to suggest
stress, but just because that is the way Strunk and White tell us
to format them.  There is no semantic
meaning in these latter cases.)

Hope that clarifies a bit.

--

E. Michael Brandt

(terrytek)I have read in some places that <b> and <i> have been deprecated,
or are not yet but should be deprecated; I have had trouble find-
ing a clear answer on this.
Advertisements
 
1 Comment

Posted by on May 27, 2011 in HTML5

 

Tags: ,

One response to “Just out of curiosity, why “strong” tag instead of “b” tag?

  1. Jamie Curle

    June 10, 2011 at 7:31 AM

    From what I can gather about the html spec – http://www.w3.org/TR/html-markup/b.html

    It is now for use to specify offset text without emphasis or importance. If the thing you’re doing doesn’t require importance <strong>or emphasis <em&gt and is for typographical reasons – go with CSS for declaring anything typographical.

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: