Re: target is invalid attribute for a

On 23 Jan 2018, at 16:07, Philip Taylor (RHUoL) wrote:

> I would suspect an inappropriate DOCTYPE.  The following is valid :
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">

That causes the validator to chuck a massive warning because *the 
Document Type (-//W3C//DTD HTML 4.01 Strict//EN) is not in the 
validator's catalog*.

If you use the real HTML 4.01 Strict DTD:

     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
             "http://www.w3.org/TR/html4/strict.dtd">

… then the validator will report the document as being invalid with 
the error Ed mentioned.

It would be valid if the Transitional DTD was used:

     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
             "http://www.w3.org/TR/html4/loose.dtd">

… but 2017 is leaving it more than a little late to start 
transitioning to HTML 4.

It is also valid with the HTML 5 Doctype:

     <!DOCTYPE html>

Received on Tuesday, 23 January 2018 16:30:47 UTC