View Single Post
 
Old August 31st, 2004, 10:29 PM
richard.york's Avatar
richard.york richard.york is offline
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

IC

Generally speaking tags like <b> and <i> amount to tag soup, though as meow pointed out either way you're inserting a tag. I think that <span> makes more sense though, given that the style of the bold or italic text isn't limited to those specific styles, whereas <b> and <i> would no longer be appropriate structurally, IMHO. <span> is a generic, dogma-free container that says nothing really about the data it contains, other than any class or id assigned to it, which IMO should be related to the paragraph and not the styles that are being applied, should you decide that some other method of emphasis be appropriate like a background color or other effects. <b> and <i> are purely presentational, and although they aren't yet deprecated, as I thought, the W3C does recommend that CSS be used instead, which suggests to me they probably will become deprecated at some point in the future.

My personal practice is to limit as much presentation as possible to style sheets and leave the markup slim, trim and free from tag soup, which makes skinable designs based on structurally generic markup like those presented at the CSS Zen Garden much more possible.


Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail