Results 1 to 15 of 15
-
04-06-2004, 06:12 PM #1Disabled
- Join Date
- Jan 2004
- Posts
- 1,769
<strong> or <bold> - does it matter? what's the difference?
<strong> or <bold>
What do you use?
Does it matter? Is there a difference?
Do any browsers care?
-
04-06-2004, 07:11 PM #2Web Hosting Master
- Join Date
- Oct 2002
- Location
- North America
- Posts
- 1,229
I don't know that browsers currently care.
I tend to use strong rather than bold, but currently, it's largely (not completely, but largely) a matter of preference of approach. Semantic markup versus presentational.
I don't know how other devices would render them (for example, screen readers or Braille browsers), but I'd be interested to find out the differences.☷ Lesli Schauf, TLM Network
☴ Linux and Windows Hosting: Scribehost
-
04-06-2004, 07:34 PM #3Newbie
- Join Date
- Mar 2004
- Location
- Grimsby, England.
- Posts
- 17
For accessibility you should use the <strong> tag because this is what speech browsers and such look for.
The <b> tag is now deprecated so it would be best to get used to using the <strong> tag, though both will work for the time being.
-
04-06-2004, 07:39 PM #4WHT Addict
- Join Date
- Feb 2004
- Location
- FTL on the Information Super Highway
- Posts
- 142
See: http://www.w3.org/TR/html4/struct/text.html
The presentation of phrase elements depends on the user agent. Generally, visual user agents present EM text in italics and STRONG text in bold font. Speech synthesizer user agents may change the synthesis parameters, such as volume, pitch and rate accordingly.Serial Beggar
Hate Your Family? Have No Friends? Make Me Your Beneficiary!
-
04-07-2004, 01:53 PM #5Web Hosting Master
- Join Date
- May 2002
- Location
- UK
- Posts
- 2,997
Actually <b> has not been deprecated. It is still listed in the XHTML1.1 DTD and that is a strict DTD which doesn't contains any deprecated elements or tags.
-
04-07-2004, 04:47 PM #6Aspiring Evangelist
- Join Date
- Sep 2002
- Posts
- 399
i usually use css instead of it, but when it comes to tags i use <b> but it is outdated so i think i should switch to <strong> someday...
-
04-07-2004, 05:47 PM #7Web Hosting Master
- Join Date
- May 2002
- Location
- UK
- Posts
- 2,997
Both elements are in the HTML 2.0 DTD so neither is more outdated than the other, and neither is deprecated.
-
04-07-2004, 06:21 PM #8Aspiring Evangelist
- Join Date
- Sep 2002
- Posts
- 399
xhtml 2.0 doesn't mention <b> at all. only <strong>. so it is deprecated. http://www.w3.org/TR/2003/WD-xhtml2-...module_issue_3
edit: nether does xhtml 1.0 basic: http://www.w3.org/TR/2000/REC-xhtml-basic-20001219/Last edited by CyberAlien; 04-07-2004 at 06:25 PM.
-
04-07-2004, 06:31 PM #9Hmmm....
- Join Date
- Apr 2003
- Location
- UK
- Posts
- 2,341
<b> works, shorter, and time efficient if you have a lot of code to type **curses HTML editors**
Nothing like good old notepad ey?███ ServeYourSite
███ Web hosting done right
███ Shared, Reseller and Dedicated web hosting
███ An Easy Web Presence Company
-
04-07-2004, 06:44 PM #10Aspiring Evangelist
- Join Date
- Sep 2002
- Posts
- 399
Originally posted by 4 Degrees
**curses HTML editors**
everyone should write code manually with notepad-compatible editors or not write html at all.
-
04-07-2004, 06:51 PM #11Web Hosting Master
- Join Date
- May 2002
- Location
- UK
- Posts
- 2,997
Originally posted by CyberAlien
xhtml 2.0 doesn't mention <b> at all. only <strong>. so it is deprecated. http://www.w3.org/TR/2003/WD-xhtml2-...module_issue_3
edit: nether does xhtml 1.0 basic: http://www.w3.org/TR/2000/REC-xhtml-basic-20001219/
XHTML 1.1 defined <b> and so does XHTML 1.0 strict
From the XHTML 1.0 strict DTD
Code:<!--=================== Text Elements ====================================--> <!ENTITY % special.pre "br | span | bdo | map"> <!ENTITY % special "%special.pre; | object | img "> <!ENTITY % fontstyle "tt | i | b | big | small "> <!ENTITY % phrase "em | strong | dfn | code | q | samp | kbd | var | cite | abbr | acronym | sub | sup ">
http://www.w3.org/TR/xhtml2/xhtml20_...20_dtd_issue_0
You can see that XHTML 2.0 is still far from complete when you read the entry for the <strong> tag
Code:strong Leave in, deprecate or remove? No consensus.
Last edited by Rich2k; 04-07-2004 at 06:55 PM.
-
04-07-2004, 07:03 PM #12Junior Guru
- Join Date
- Jun 2003
- Location
- Bay Area
- Posts
- 220
all three!
i tend to use strong because of the non visual browsers. usually I don't like exactly what it does, tho so i'll put a class= or style= in there and override whatever visual effect it has anyway. If it's my personal stuff all my text formatting is done with span. then again b is short and makes more sense to me (remember i... i and b...)
And amen to the notepad remark. Except you all should use textpad. Most html these days is snippets inside scripts, isn't it?-- My software isn't buggy; it develops random features --
-
04-08-2004, 03:47 AM #13Web Hosting Master
- Join Date
- Jan 2003
- Location
- Houston, TX - Originally from UK
- Posts
- 707
It's been a long time since I've used either <b> or <i>. They're semantically meaningless, presentational rubbish which doesn't belong in XHTML, deprecated or not.
Both <strong> and <em> can be styled with CSS if you don't like the default looks (personally I always make certain in my CSS that <strong> is font-weight:bold, and <em> is font-style:italic - yes the default, but always best to make certain every single browser is seeing what you mean them to see) and they actually hold some structural value.
It's the same argument (IMO) as the one about whether it's better to write <p><font size="+2"><b>My Title</b></font></p> or just simply <h1>My Title</h1>.
No brainer right? One holds semantic meaning, the other certainly doesn't. <b> and <strong> fall neatly into those camps too.
-
04-08-2004, 04:09 AM #14Evenly Divided
- Join Date
- Aug 2001
- Posts
- 4,028
Originally posted by CyberAlien
amen to that
everyone should write code manually with notepad-compatible editors or not write html at all.
-
04-08-2004, 05:22 AM #15Aspiring Evangelist
- Join Date
- Sep 2002
- Posts
- 399
Originally posted by Mekhu
Why is that?