RE: why not valid? HTML 4.01 strict

This is a surprise to me too, but a look at the HTML 4.01 spec shows:

<!ELEMENT A - - (%inline;)* -(A)       -- anchor -->
<!ATTLIST A
  %attrs;                              -- %coreattrs, %i18n, %events --
  charset     %Charset;      #IMPLIED  -- char encoding of linked resource --
  type        %ContentType;  #IMPLIED  -- advisory content type --
  name        CDATA          #IMPLIED  -- named link end --
  href        %URI;          #IMPLIED  -- URI for linked resource --
  hreflang    %LanguageCode; #IMPLIED  -- language code --
  rel         %LinkTypes;    #IMPLIED  -- forward link types --
  rev         %LinkTypes;    #IMPLIED  -- reverse link types --
  accesskey   %Character;    #IMPLIED  -- accessibility key character --
  shape       %Shape;        rect      -- for use with client-side image maps --
  coords      %Coords;       #IMPLIED  -- for use with client-side image maps --
  tabindex    NUMBER         #IMPLIED  -- position in tabbing order --
  onfocus     %Script;       #IMPLIED  -- the element got the focus --
  onblur      %Script;       #IMPLIED  -- the element lost the focus --
  >


target is not in the list.  Not sure what you're supposed to use instead.

---
- Nayan Hajratwala
- Chikli Consulting LLC
- http://www.chikli.com


-----Original Message-----
From: Robert Koberg [mailto:rob@koberg.com]
Sent: Thursday, October 31, 2002 12:46 PM
To: W3 HTML Mailing List
Subject: why not valid? HTML 4.01 strict



Hi,

I am getting a validation error on a seemingly valid thing. The output of the w3
validator says:

Line 14, column 50: there is no attribute "TARGET" (explain...).
  ... livesb.livestoryboard.com" title="HTML" target="_blank">HTML 4.01</ ...

The source looks like:

<a href="http://validator.w3.org/check/referer" title="HTML"
target="_blank">HTML 4.01</a>

The page is at:

http://livesb.livestoryboard.com - at the bottom, below the footer to the left
are links to validate the page

target is valid so is this a bug in the validator?

thanks,
-Rob

Received on Thursday, 31 October 2002 13:01:20 UTC