Re: Height attribute.

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