WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Semantic markup vs CSS styling for emphasis

for

From: Mark Fletcher
Date: Aug 6, 2003 9:30AM


Hi Jeff,

> Even if you're using CSS you still have to mark up where your
> emphasis/strong begins and ends. It's much simpler to just use the
> appropriate tag than to create a class/div/selector. The only time I can
> think of using a CSS solution that doesn't involve <em> or <strong> would
> be if I needed different kinds of emphasis for some reason.

Absolutely I could not agree with you more.

> Unless I'm totally missing the point of what you're asking (which is
> possible... it's only 11:10am... groan....)

The main question is would you do this:

This is <span class="emphasis">bold<span>
emphasis {font-family: Verdana, Arial, Helvetica, sans-serif; font-weight:
bold;}

Or would you do this:

This is <strong>bold</strong>

strong {font-weight: bold;font-style: normal;}

In my mind using the span removes the structural meaning from the mark-up,
do you agree with this?

Cheers
Mark


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/