|
Posted by Chaddy2222 on 02/17/07 07:34
robert maas, see http://tinyurl.com/uh3t wrote:
> > From: John Hosking <J...@DELETE.Hosking.name.INVALID>
> > If you register at IMDb (I assume you didn't really mean "indb") ...
>
> Oops, yeah that was a typo.
>
> > For *new* pages, or pages you are actively maintaining, go with HTML
> > 4.01 strict, unless you have a bona fide reason to use XHTML.
>
> I tried that for the first time today. It was a horrible failure.
> Here's the loose Web page that I want to convert:
> <http://www.rawbw.com/~rem/HelloPlus/loose.html#pre>
> That validates 100% correct with loose DTD.
> I made a copy of that, and just changed the top of the file to be
> strict, and got 11 (eleven) validation errors. Out of desperation,
> I deleted *all* content between the <body> and the </body>, but I'm
> still getting 1 (one) validation error:
> <http://www.rawbw.com/~rem/HelloPlus/strict.html>
> What change is needed to satify the validator when using the strict DTD?
>
> After you tell me how to make the validator happy with no content >
A short answer is, you can't, you need to at least have some content
in the <body> eloment, you also need to have character encodeing and
other things, a charset for one.
> whatsoever in the file, next I'll try copying across just one item
> at a time from the loose file to the strict file, trying to get it
> to validate correctly before copying across the next item. But I'm
> not going to even try that until I can get an empty-content file to
> validate.
>
> If and when I start copying content across, is there any tutorial
> that will suggest ways of making the conversion? Or will you be
> available to tell me what I'm doing wrong and how to fix it each
> time I copy across just one new item and get another bunch of
> validation errors?
You should go and read some good HTML tutorials.
http://www.htmldog.com/guides/htmladvanced/recap/
They have some good tutorials on that site as well.
--
Regards Chad. http://freewebdesign.cjb.cc
Navigation:
[Reply to this message]
|