...

View Full Version : CSS and bold use



trias
01-26-2004, 01:12 AM
Keeping in tune with the whole CSS thing is bold <b></b> the best way to go about bolding a slection of text within a paragraph?

liorean
01-26-2004, 01:16 AM
You probably don't want specifically bold text, you want to emphasise a word. The em element stands for emphasis, and the strong element stands for strong emphasis. The em element defaults to italic style, the strong element defaults to bold. Use the one that is semantically most appropriate of them, versus i or b elements.

trias
01-26-2004, 02:14 AM
:) Thanks very much for your help. I assume then that the em and strong tags can also have CSS applied to yield whatever format of emphasis you like?

oracleguy
01-26-2004, 02:39 AM
Yeah you can.

me'
01-26-2004, 06:46 PM
But, if you're emphasising it to be a header, use <h1> to <h6> instead.

Roy Sinclair
01-26-2004, 07:34 PM
Also keep in mind the symantic tags like "abbr", "acronym", "address" and "cite". If the text you want to emphasize is any of those you should use the appropriate tag and not just a generic tag like strong or em.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum