W3C home > Mailing lists > Public > www-validator@w3.org > July 2006

Re: Height attribute.

From: David Dorward <david@dorward.me.uk>
Date: Wed, 5 Jul 2006 18:44:04 +0100
To: George Hunt <gee_88_2@hotmail.com>
Cc: www-validator@w3.org
Message-ID: <20060705174404.GA18848@us-lot.org>

On Tue, Jul 04, 2006 at 11:58:44PM +0100, George Hunt wrote:
> Please could you tell me why i'm getting the following error when 
> validating my HTML code -
> Error Line 5 column 26: there is no attribute "HEIGHT".
> <table width="100" height="100">
> I believe there such an attribute as ?height?

There isn't for the table element in whatever DTD you specified you
were using (nor is there for the table element in any HTML
recommendation published by the W3C).

http://www.w3.org/TR/html4/index/attributes.html shows which elements
have a height attribute in the latest version of HTML.

Incidently, presentational markup is being phased out in favour of
stylesheets and tables aren't designed to be used for
layout. http://allmyfaqs.net/faq.pl?Tableless_layouts may be of use.

David Dorward                                      http://dorward.me.uk
Received on Wednesday, 5 July 2006 17:44:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:57 UTC