W3C home > Mailing lists > Public > www-html-editor@w3.org > January to March 2006

Re: HTML 4.01 Specification seems to have a Table variable just not there

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 12 Jan 2006 22:51:29 +1100
Message-ID: <43C642C1.7070906@lachy.id.au>
To: scsijon <scsijon@net2000.com.au>
CC: www-html-editor@w3.org

scsijon wrote:
> Using your current spec (HTML40.pdf) from the W3 website, I refer to page 113,

It's always better to simply provide a link to the HTML version.

> In this you show (at the bottom of the page) an attribute of "width", 
> however, at no place is there an equivalent "height" attribute.

That's not needed, it can be done with CSS.  In general, you should 
avoid presentational elements and attributes in HTML in favour of CSS.

> I show an example for your perusal, hoping that it gives you my 
> intention. it is not a complete file, just a relevant section with the 
> added attribute.
> ---------------------------
> <body background="images/brown_bg.gif"  bgcolor="#e1d2be" text="#666666"

You can remove every single one of the attributes in this sample markup, 
and use CSS instead:

body { background: #e1d2be url(images/brown_bg.gif); color: #666; 
margin: 0; padding: 0; }

> link="#0000ff" vlink="#800080" alink="#ff0000" leftmargin="0" topmargin="0">

:link { color: #00F; }
:visited { color: #800080; }
:link:active, :visited:active { color: #F00; }

> <table border=0 width=800 height=780 cellpadding=0 cellspacing=0>

table { border: 0; width: 800px; height: 780px; border-spacing: 0; }
td { padding: 0; }

Lachlan Hunt
Received on Thursday, 12 January 2006 11:51:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:54 UTC