You are here: Re: What's wrong with this HTML (fails validation) ? « HTML « IT news, forums, messages
Re: What's wrong with this HTML (fails validation) ?

Posted by Andy Dingley on 02/17/07 13:49

On Fri, 16 Feb 2007 22:58:29 -0800, rem642b@yahoo.com (robert maas, see
http://tinyurl.com/uh3t) wrote:

>I tried that for the first time today. It was a horrible failure.

It wasn't horrible, it was quite minor. It's in the nature of
validation problems that one trivial error can be reported as hudreds of
instances further down the page.

Mostly you're falling foul of the new requirement in Strict that you
can't place bare text on the body of a page. Everything must be inside a
<div>, <p> or similar.

Really you should comply with this. Your <h1> and <pre> are OK, and you
just need to wrap the rest up inside <p>...</p> elements as needed. Get
away from this <p></p> as a "paragraph separator" idea and start using
the tags to mark the beginning and ends of real paragraphs, with content
in them.

If you can't even face this, then cheat. Place one huge <div> just
inside <body>, like this:


</head>
<body>

<div>

[...]

</div>

</body>
</html>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация