W3C home > Mailing lists > Public > www-validator@w3.org > April 2013

Re: invalid attribute 'target'

From: David Dorward <david@dorward.me.uk>
Date: Fri, 12 Apr 2013 16:31:10 +0100
To: "Evelien Draaisma" <eveliendraaisma@hotmail.com>
Cc: "www-validator@w3.org" <www-validator@w3.org>
Message-ID: <C1715628-CBBB-44FC-AD7B-147DD0870F26@dorward.me.uk>
On 12 Apr 2013, at 15:35, Evelien Draaisma wrote:

> I was validating: http://www.graszodenland.nl/graszoden-kopen
> and i received this error.
> Line 358, Column 66: there is no attribute "target"…3 <a 
> href="http://www.conceptnoord.nl" target="_BLANK">Concept 
> Noord</a></span>What is wrong
> with the target='_BLANK'?Can anyone help me?

You are using XHTML 1.0 Strict, which is an XML version of HTML 4.01 
Strict which doesn't include the target attribute (probably either 
because "It belongs in JavaScript" or just "It doesn't belong in HTML").

Your options are:

* Don't foist new windows on users
* Be invalid
* Use Transitional (which wouldn't make much sense as you aren't 
transitioning from HTML 3.2)
* Use (X)HTML 5
* Use JavaScript


-- 
David Dorward
http://dorward.co.uk/
Received on Friday, 12 April 2013 15:31:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:08 UTC