W3C home > Mailing lists > Public > www-validator@w3.org > June 2003

Re: Feedback on Markup Validation Service

From: Adam Sjøgren <spamtrap@koldfront.dk>
Date: Wed, 11 Jun 2003 10:51:32 +0200
To: www-validator@w3.org
Message-ID: <873cihdmjv.fsf@virgil.koldfront.dk>

On Wed, 11 Jun 2003 01:16:47 +0000, Dane Harkin wrote:

> I don't understand why "color" cannot be added as an attribute to
> <hr>.

The document that defines what you can and can not do in HTML says
that the only attributes allowed on the element hr are:

 align (deprecated)
 noshade (deprecated)
 size (deprecated)
 width (deprecated)
 id
 class
 lang
 dir
 title
 style
 onclick, ondblclick, onmousedown, onmouseup, onmouseover,
          onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

 (From: <http://www.w3.org/TR/html4/present/graphics.html#edef-HR>).

So that's why.

The solution is, as others suggest, to use stylesheets to adjust the
look of your hr-element.


  Best regards,

-- 
 "Äter ni middag?"                                            Adam Sjøgren
                                                         asjo@koldfront.dk
Received on Wednesday, 11 June 2003 04:51:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:09 GMT