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

Re: target in a-elements

From: Ari Sundholm <megari@freedb.org>
Date: 17 Dec 2003 00:30:24 +0200
To: www-validator@w3.org
Message-Id: <1071613824.15800.2238.camel@megaricomp>

Hello Peter!

Sure you can use target in a link (as you can use any other non-standard
elements in your pages) but it's not valid according to the HTML 4.01
Strict DTD. As for the error message, it is correct. If you do not wish
to see it, refrain from using the target attribute. Many people find its
effect more or less irritating anyway (in case of frames using target is
understandable, but HTML 4.01 Strict is not the DTD to use then) or run
the validation against HTML 4.01 Transitional.

Best regards,

Ari Sundholm
megari@freedb.org

> Ladies and Gentlemen,
> 
> using validator.w3.org, I got the following message:
> 
> This page is not Valid HTML 4.01 Strict!
> Below are the results of attempting to parse this document with an
> SGML parser. 
> 
>      1. Line 271, column 18:  there is no attribute "TARGET" 
>         (explain...). 
>                   <a target="_blank" title="Seite kommentieren" href="http://wwwuv2.uni-mu
>                             ^
> I think, this cannot be correct, or is it? Can I not use "target" in
> "a"-elements???
> Yours sincerely
> Peter Kramer
> 
> 
> ______________________________________________________________________
> 
> +---------------------------------------------+-----------------------+
> | Peter Kramer                                |kramepe@uni-muenster.de|
> | (EDV-Beauftragter)                          |                       |
> | Institut fr vergleichende Stdtegeschichte |Tel. +49-251-83-275-12 |
> |                                             |       Durchwahl:  -16 |
> | Knigsstr. 46, D-48143 Mnster, Germany     |istg@uni-muenster.de   |
> +---------------------------------------------+-----------------------+
> |       Internet: http://www.uni-muenster.de/Staedtegeschichte        |
> +---------------------------------------------------------------------+
> | privat:                                     |                       |
> | Friedrich-Ebert-Str. 167, D-48153 Mnster   |Tel.+49-251-7130949    |
> +---------------------------------------------------------------------+
Received on Tuesday, 16 December 2003 17:26:52 GMT

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