Re: class attribute deprecated with <span>?

On Fri, 7 Feb 2003 11:19:16 -0600, <Sharon_Correll@sil.org> wrote:

> I'm reading the "HTML and XHTML" book by Musiciano and Kennedy, published
> by O'Reilly. It says that it is deprecated to use style, class and id
> attributes with the <span> tag.  (This is on page 300.) However, I notice
> on the CSS web site that there are a number of examples of using <span>
> this way.
>
> Is this really deprecated?

No. See the HTML spec:
http://www.w3.org/TR/html4/index/attributes.html

As long as there no 'D' in the column 'Depr.', the attribute is not 
deprecated. Only 'name' is deprecated.

> If so, why, and what is the accepted way to
> apply formatting to a short range of text?

If one of the more semantic elements is not suitable, using SPAN is fine.

-- 
Rijk van Geijtenbeek

Received on Friday, 7 February 2003 14:58:46 UTC