Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ok so what's the difference then? 2

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
stupid question coming up!

if <b> isn't deprecated, what's the difference between <b> and <strong>

and what would a screen reader etc.. do with both?

when should you use <b> and when should you use <strong>

I was also told that putting <b> /<strong> around words that keywords help with SEO , is this true and which one should it be.

visualy to me they do the same thing, and while were on this subject what's the difference between <i> and <em>?

doesn't take much to confuse me does it! [flip]

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
They say <b> just makes text thicker, it's a visual representation.

<strong> is a way to emphasize the feeling of the text.

For most of us, they appear the same. Supposedly though for people with sight problems that use a special browser, <strong> is represented differently than bold text.

Same thing goes with <i> and <em>.

I know this cause I looked it up about 2 months ago.

[monkey][snake] <.
 
[tt]<strong>[/tt] means "this bit of text should be strongly emphasised". Search engines could note that, and give extra attention to that text (which is not to say that they actually do this). Screen readers could speak those words more loudly. Conventional browsers can highlight the text in some way - generally by displaying it in boldface, but not necessarily so. Some forms of writing, Japanese for instance, don't have bold or italic forms, so an alternative form of emphasis can be used in those cases.

[tt]<b>[/tt] just means "put this bit of text in bold", it gives no clue as to why.

The principle is to mark up your text with elements that describe what each bit is, rather than how it should be displayed. Then you can use CSS to control the presentation of each type of element.

I can't really think of a case where I'd use [tt]<b>[/tt], everything you might want to put into boldface - headings, emphasis, maybe some links - has it's own HTML elements to style.

With [tt]<i>[/tt] there are a handful of cases where it might be appropriate. For example, ship names - if you're writing about the Titanic, it's the convention to use italics for her name without that implying any particular emphasis on the word. I could make a case for using [tt]<i class="ship">[/tt] in there (the class would allow me to change the presentation if I wanted to). It's no less semantic than [tt]<span class="ship">[/tt], though I suspect most standardistas would go for the span due to an ingrained distaste for presentational markup.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
right so as far as i'm concerned then <b> & <i> are deprecated.

Any tag that is purely design / presentational is as extinct as a dodo in my book.

It took me a long time and a real good kicking by the forums before I was won over to the content->design separation and semantics debate regarding W3C standards, and i'm not about to go back to my old habits, i'm black and blue enough already thanks!

Design / Presentational tags are dead , long live CSS!

[soapbox]



"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
You want to see how much you lot have had an effect on me , i been bullied so much, i'm converted!

Talk about peer pressure!

just look here...


not sure if TT let's me link to that site, I don't see them as direct competition but we will see if I get told off or the link removed!




"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top