- From: David Dorward <david@dorward.me.uk>
- Date: Tue, 11 Aug 2009 23:46:11 +0100
- To: Stephen G. Zank <sgzank@yahoo.com>
- Cc: www-validator@w3.org
Received on Tuesday, 11 August 2009 22:46:54 UTC
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
http://dorward.me.uk
Received on Tuesday, 11 August 2009 22:46:54 UTC