B vs STRONG

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

B vs STRONG

Post 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:
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: B vs STRONG

Post 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.
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

I see. Thanks for the comment.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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).
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

What's about BR?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

BR will still be in use from what I understand.
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

But Web Standards say to use <p> rather then <br/>. What's your take?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

use <p> for paragraphs and use <br> for line breaks. That is what they are intended for. :D
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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.
Post Reply