Re: Feedback on Markup Validation Service

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 UTC