Re: <A target="_blank"> bug?

* Ian Thomas wrote:
>I have a page with a doctype of HTML 4.01 Strict, containing the tag:
><A target="_blank" href="foo">
>
>According to the HTML4 spec:
>http://www.w3.org/TR/1998/REC-html40-19980424/present/frames.html#target-info
>
>and the FAQ:
>http://www.htmlhelp.com/faq/html/links.html#new-window
>
>this is the correct syntax to use. However, the validator throws up an 
>error:
>"Error: there is no attribute "TARGET" for this element (in this HTML 
>version)"

>Is this a bug in the validator, or is the FAQ & spec wrong?

Take a look at <http://www.w3.org/TR/html4/index/attributes.html>. You
will note that HTML 4.01 *Strict* does not include the target attribute,
HTML 4.01 Transitional does. Either use Transitional or remove the
target attribute.

Received on Saturday, 26 October 2002 08:40:07 UTC