W3C home > Mailing lists > Public > www-validator@w3.org > August 2009

Re: [VE][122] <td width="50%"> reported as error

From: David Dorward <david@dorward.me.uk>
Date: Tue, 11 Aug 2009 23:46:11 +0100
Cc: www-validator@w3.org
Message-Id: <D8FC5EE9-24C3-4B28-9F28-AA310EDCDBFF@dorward.me.uk>
To: Stephen G. Zank <sgzank@yahoo.com>
On 11 Aug 2009, at 17:47, Stephen G. Zank wrote:
> Validating http://www.horseracepicksusa.com/
> Error [122]: "character X is not allowed in the value of attribute Y"
> character "%" is not allowed in the value of attribute "WIDTH"
> But by all indications this is perfectly valid.

You are writing HTML 3.2. From the DTD:

<!ATTLIST (th|td)                  -- header or data cell --
         width   %Pixels  #IMPLIED  -- suggested width for cell --
         height  %Pixels  #IMPLIED  -- suggested height for cell --

The width attribute only takes a pixel value.
In HTML 4.01 the width attribute for table data cells may take a  
percentage (except in Strict where said attribute doesn't exist). It  
has also been deprecated in favour of CSS.

David Dorward
Received on Tuesday, 11 August 2009 22:46:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:59 UTC