- From: Jukka K. Korpela <jkorpela@cs.tut.fi>
- Date: Sat, 22 Jan 2011 12:54:07 +0200
- To: "Denver Ogaro" <denverlovesyou@gmail.com>, <www-validator@w3.org>
Denver Ogaro wrote: > http://www.w3schools.com/tags/att_table_cellpadding.asp > > The link above shows an example where the cellpadding attribute of > the table element is set as a child of the table element rather than > of the style attribute. As usual, w3schools is unreliable and confusing, but the cellpadding attribute in a table element is correct according to published HTML DTDs. The expression "is set as a child of the table element" in your text was probably meant to say "is set". Attributes cannot be children of elements. > Given the fact that the last revision of the > page is rather recent, it is surprising and confusing that the > validator flags copying such design as obsolete. It is surely obsolete to copy w3schools stuff, but this is not a validator issue. > Validating http://cloud.cs50.net/~ogaro/project/index.php > Error [html5]: "" "Validating" according to HTML5 is an experimental feature and often rather messy. But the validator does _not_ say anything about cellpadding on the page http://cloud.cs50.net/~ogaro/project/index.php which gets "temporarily" redirected to http://cloud.cs50.net/~ogaro/project/index2.php because it does not contain such an attribute. Anyway, the current HTML5 drafts, which should be cited only as work in progress, declare the cellpadding attribute as obsolete, because it is purely presentational and should be replaced by CSS. Whatever you think of this, the validator just expresses this, so any disagreement on this should be raised in HTML5 discussion fora. -- Yucca, http://www.cs.tut.fi/~jkorpela/
Received on Saturday, 22 January 2011 10:54:53 UTC