Shiloh Madsen wrote:
>
> I know that we should no longer be using the bold and underline html
> tags and the like, however I am not entirely certain how to handle
> performing this function on a page in the most elegant way.

As I understand it...

Tags like <b>bold</b> and <i>italic</i> have been deprecated I think 
because they imply how the text should *look* which is no longer 
considered the province of HTML.

I think it is generally considered more semantically correct to use the 
tags <strong>strong</strong> or <em>emphasised</em>, as these don't 
control how the element looks, but gives some indication of its importance.

So if for instance you wanted your emphasised text to be underlined, 
simply add the rule...
em {
    font-style : normal;   /* because I think nearly all browsers have a 
default stylesheet that includes an italic default for <em> and a bold 
default for <strong> */
    font-decoration : underline;
    }

<span class="underline">Underlined text</span> with...    span.underline 
{ text-decoration : underline } ...may be more useful, especially if you 
want to combine selectors, but I don't think this is such an elegant 
solution as the judicious use of <bold> and <em>

Regards,
D#


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to