hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : <strong> or <bold> - does it matter? what's the difference?
Reply

Forum Jump

<strong> or <bold> - does it matter? what's the difference?

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-06-2004, 06:12 PM
Gen-T Gen-T is offline
Disabled
 
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?



Sponsored Links
  #2  
Old 04-06-2004, 07:11 PM
Lesli Lesli is offline
Web 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

  #3  
Old 04-06-2004, 07:34 PM
Fisher R Fisher R is offline
Newbie
 
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.

Sponsored Links
  #4  
Old 04-06-2004, 07:39 PM
serialbeggar serialbeggar is offline
WHT Addict
 
Join Date: Feb 2004
Location: FTL on the Information Super Highway
Posts: 142
See: http://www.w3.org/TR/html4/struct/text.html
Quote:
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!

  #5  
Old 04-07-2004, 01:53 PM
Rich2k Rich2k is offline
Web Hosting Master
 
Join Date: May 2002
Location: UK
Posts: 2,994
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.

  #6  
Old 04-07-2004, 04:47 PM
CyberAlien CyberAlien is offline
Aspiring Evangelist
 
Join Date: Sep 2002
Posts: 391
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...

__________________
CyberAlien.
phpBB styles, responsive XenForo styles

  #7  
Old 04-07-2004, 05:47 PM
Rich2k Rich2k is offline
Web Hosting Master
 
Join Date: May 2002
Location: UK
Posts: 2,994
Both elements are in the HTML 2.0 DTD so neither is more outdated than the other, and neither is deprecated.

  #8  
Old 04-07-2004, 06:21 PM
CyberAlien CyberAlien is offline
Aspiring Evangelist
 
Join Date: Sep 2002
Posts: 391
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/

__________________
CyberAlien.
phpBB styles, responsive XenForo styles


Last edited by CyberAlien; 04-07-2004 at 06:25 PM.
  #9  
Old 04-07-2004, 06:31 PM
stripeyteapot stripeyteapot is offline
Hmmm....
 
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

  #10  
Old 04-07-2004, 06:44 PM
CyberAlien CyberAlien is offline
Aspiring Evangelist
 
Join Date: Sep 2002
Posts: 391
Quote:
Originally posted by 4 Degrees
**curses HTML editors**
amen to that
everyone should write code manually with notepad-compatible editors or not write html at all.

__________________
CyberAlien.
phpBB styles, responsive XenForo styles

  #11  
Old 04-07-2004, 06:51 PM
Rich2k Rich2k is offline
Web Hosting Master
 
Join Date: May 2002
Location: UK
Posts: 2,994
Quote:
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 is still a working draft so don't rely on ANYTHING contained within it and no user-agents are yet designed to use it.

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 ">
There is no DTD for XHTML 2.0 yet
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.
  #12  
Old 04-07-2004, 07:03 PM
telnettro telnettro is offline
Junior Guru
 
Join Date: Jun 2003
Location: Bay Area
Posts: 218
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 --

  #13  
Old 04-08-2004, 03:47 AM
Zopester Zopester is offline
Web Hosting Master
 
Join Date: Jan 2003
Location: Houston, TX - Originally from UK
Posts: 697
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.

__________________
Kinkamono Internet Services - The Internet. Done Right.
Dive In...

  #14  
Old 04-08-2004, 04:09 AM
Mekhu Mekhu is offline
Evenly Divided
 
Join Date: Aug 2001
Posts: 4,028
Quote:
Originally posted by CyberAlien
amen to that
everyone should write code manually with notepad-compatible editors or not write html at all.
Why is that?

  #15  
Old 04-08-2004, 05:22 AM
CyberAlien CyberAlien is offline
Aspiring Evangelist
 
Join Date: Sep 2002
Posts: 391
Quote:
Originally posted by Mekhu
Why is that?
Because html editors create complete mess (except for dreamweaver that seems to be the only decent editor) instead of html code. And sometimes that mess is so big that page can be viewed only with IE (mostly created with frontpage).

__________________
CyberAlien.
phpBB styles, responsive XenForo styles

Reply

Related posts from TheWhir.com
Title Type Date Posted
Riding the New gTLD wave to achieve 10x hosting growth Webinars 2014-03-26 13:55:11
Technology Convergence Conference 2014 Web Hosting Events 2014-02-06 18:53:38
eMetrics Boston 2013 Web Hosting Events 2013-09-19 18:04:55
Web & PHP Conference 2013 Web Hosting Events 2013-09-17 14:48:22
Website usability – 10 tips for getting it right Blog 2012-04-27 14:11:03


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?