Reply to Re: validation of a 4.01 webpage with a form...

Your name:

Reply:


Posted by Jukka K. Korpela on 10/08/05 15:32

dorayme <dorayme@optusnet.com.au> wrote:

> The following markup causes the W3C validator to count 6 errors.

That's because it has six reportable markup errors.

> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">

In future, please post a URL, not a copy or extract of code.
If you don't understand why, you have a particular reason to do so.

> Error Line 14, column 28: document type does not allow element
> "INPUT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5",
> "H6", "PRE", "DIV", "ADDRESS" start-tag .
>
> <input size="20" name="sp-q">
>
> and so on for each input...

Did you check what the document type you use has as the content model of
FORM?

The simple solution is to wrap everything inside the form in a DIV element
(<form ...><div>...</div></form>).

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

[Back to original 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

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