Posted by Els on 08/18/05 09:04
Ed Jay wrote:
> "Montgomery BOO...URNS" <solitude439@rcn.com> wrote:
>
>>http://www.shobers.com/home.htm (still under construction)
>
> When I use:
> <center><div class=xx>stuff</div></center>
> and try to validate the page, I get an error message telling me that
> <center> is deprecated. But, when I validated your page, I only got the
> error that you had no ending tag for your <center><div>...
>
> Where have I gone wrong?
You haven't gone wrong.
The OP is just using a transitional doctype. That doctype is meant for
documents which are "in transition". It allows for deprecated
elements, to make it easier on the person who is editing the page I
guess :-)
New documents are best written in Strict, which doesn't allow for
deprecated heritage from old webpages.
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
[Back to original message]
|