Bold
What's the difference between the and the font tags?
cscgal
The Queen of DaniWeb
19,437 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 231
Hmm, very interesting. I always used to use strong but now I alternate. Which would you recommend if I was trying to be XHTML compliant?
cscgal
The Queen of DaniWeb
19,437 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 231
Then why does vBulletin 3 gamma - with the new XHTML compliant styles - use ?
cscgal
The Queen of DaniWeb
19,437 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 231
There's a lot of content out there < HTML 4 that uses the tag. I doubt any time soon that it would not be supported. The good thing about XML is it doesn't matter what tag it uses, you can always apply some stylesheet and apply your own style (even if the browsers decide not to support the tag in the future).
Personally, I prefer using shorter tags. I'd rather use the , or tag but I'm sticking to the longer tags ( and ). They will be more mainstream in the long run.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
I have also always wondered what the differences were......
HTML code probably came first though ( instead of [b])
The Dude
Nearly a Senior Poster
3,485 posts since Dec 2005
Reputation Points: 1,054
Solved Threads: 31
and are expected to be deprecated in the next version of W3C XHTML, so don't start using them. They were left because there are a few old browsers that handle strong and b in different ways.
Beware The Deprecator! He comes and waves his magic mouse, and turns your perfectly good code into Tag Soup.
MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
thats silly. I do all my code in notepad and i cant be bothered typing when i can just type
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
Tell W3C.
I think deprecting tags is like telling English speaking people they can't use the words "program." "can," and "tree" anymore.
And notice that their replacement solutions for everything they deprecate uses more typing.
MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
Isn't it just a good idea just to use them to style differently. So you could set a different font-weight for bold and strong?
That's what I would do but I have never actually noticed this problem before. ;)
roryt
Nearly a Posting Virtuoso
1,286 posts since Oct 2005
Reputation Points: 178
Solved Threads: 15
If I remember my spec docs correctly; one of the driving forces for strong rather than b is that vocally (in context of screenreading technology); strong can mean 'talk loudly and/or assertively' whereas b is a bit meaningless outside of visuals. So is a media specific presentational choice for text, while is a meaningful (buzzword: semantic) attribute for text that can be considered media-independant, even process independant.
That said; I don't see why they can't continue to co-exist simultaneously as they do now.. I might want to write in bold without having to worry about screenreaders yelling at their users, or the importance of my bold words being considered too highly..
MattEvans
Veteran Poster
1,386 posts since Jul 2006
Reputation Points: 522
Solved Threads: 64
thats really intersting and i would never have thougt of that. surely if you didn't want your word to be shouted at the user you could just use a span and style it so that it has a bold font weight.
but thanks for that. very interesting. ;)
roryt
Nearly a Posting Virtuoso
1,286 posts since Oct 2005
Reputation Points: 178
Solved Threads: 15
yeh... I barely every really use the or tags because I style it in my css but I don't really find myself using bold text anyway tbh.
roryt
Nearly a Posting Virtuoso
1,286 posts since Oct 2005
Reputation Points: 178
Solved Threads: 15