Page 1 of 1

B vs STRONG

Posted: Wed Mar 28, 2007 4:23 pm
by JellyFish
What's wrong with the <b> tag? Why is <strong> better? Is it because <b> is shorter and the web standards think that short's gay and long is the way?

I don't see any difference in the two tags other then theres more typing involved in one and less in the other.

:) :D :lol:

Re: B vs STRONG

Posted: Wed Mar 28, 2007 4:29 pm
by califdon
JellyFish wrote:What's wrong with the <b> tag? Why is <strong> better? Is it because <b> is shorter and the web standards think that short's gay and long is the way?

I don't see any difference in the two tags other then theres more typing involved in one and less in the other.

:) :D :lol:
The main argument is that tags should carry some semantic meaning, rather than describing the display effect. This is largely to enhance "accessibility" in uses beyond conventional browsers. Now that many people access web pages from cell phones and pda's, and blind people are using "readers," to which "strong" can be used to change the pitch of the voice or something, to emphasize words.

If you have no interest in serving people who use cell phones, pda's or readers, you can just keep on using the old tags. But standards have to take all this into consideration.

Posted: Wed Mar 28, 2007 4:38 pm
by JellyFish
I see. Thanks for the comment.

Posted: Wed Mar 28, 2007 5:28 pm
by RobertGonzalez
B is going to be deprecated, from what I understand, as will I. I could be wrong U is already I believe.

B should be strong, I should be em, U should be a style declaration of text-decoration: underline (perhaps in a span tag).

Posted: Thu Mar 29, 2007 5:22 pm
by JellyFish
What's about BR?

Posted: Thu Mar 29, 2007 5:35 pm
by RobertGonzalez
BR will still be in use from what I understand.

Posted: Thu Mar 29, 2007 6:07 pm
by JellyFish
But Web Standards say to use <p> rather then <br/>. What's your take?

Posted: Thu Mar 29, 2007 6:18 pm
by Luke
use <p> for paragraphs and use <br> for line breaks. That is what they are intended for. :D

Posted: Thu Mar 29, 2007 6:34 pm
by RobertGonzalez
Exactly. Line breaks are breaks in a paragraph. They could be easily applied to <p> tags in a stylesheet, but the br tag as a purpose.

Posted: Thu Mar 29, 2007 9:24 pm
by Benjamin
I feel that the b tag should be changed to just become an alias of strong. I don't know what brilliant mind decided to depreciate the target attribute in anchors though. That is just not right.

Posted: Thu Mar 29, 2007 9:33 pm
by Luke
I completely agree with the decision to deprecate the target attribute. That is not a decision the html should make. That should be the user's choice. If I want something to open in a new window, I'll right click it and click "open in new window", and if I want the user to know that the link is to an outside source, I'll put an arrow icon next to it.