Re: Validating errors

On Wed, 12 Dec 2001, Adam van den Hoven wrote:

> I was using the validator and I got an error on the following line of HTML
> (4.01 strict).
>
> <td rowspan="2"><a href="/link?menuId=60913" target="_top"><img
> src="interface/GlobalNavigation/AboutUs.gif" width="66" height="40"
> alt="Find ATM" name="Find ATM"></a></td>
>
> The error I got was:
> Error: there is no attribute "TARGET" for this element (in this HTML
> version)
>
> However, when I go look at the spec I find
> (http://www.w3.org/TR/html4/struct/links.html#edef-A):
>
> ...
> Attributes defined elsewhere
>
> id, class (document-wide identifiers)
> lang (language information), dir (text direction)
> title (element title)
> style (inline style information )
> shape and coords (image maps)
> onfocus, onblur, onclick, ondblclick, onmousedown, onmouseup, onmouseover,
> onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events )
> target (target frame information)
> tabindex (tabbing navigation)
> accesskey (access keys)
>
> Who is right?

Both. The section of the HTML 4 Recommendation that you quoted is for HTML
4 Transitional, not HTML 4 Strict.

-- 
Liam Quinn

Received on Wednesday, 12 December 2001 18:10:37 UTC