Reply to Re: vailidation fail?

Your name:

Reply:


Posted by Jonathan N. Little on 11/23/20 11:37

Paul Watt wrote:

> Hi,
> The following code fails validation when used with a html 4.01 strict DTD.
> why and how can i fix it?
> TIA
> Paul
>
> <form action="/cgi-sys/entropysearch.cgi" target=searchwindow
> class="search">
> <img src="images/search.gif" alt="search" width="70" height="13">
> <input type="text" name="query" value="" />
> <input type="hidden" name="user" value="dunmowka" />
> <input type="hidden" name="basehref" value="http://dunmowkarate.co.uk"
> />
> <input type="hidden" name="template" value="default" />
> <input type="submit" value="Search" />
> </form>
>
>

To fix:

<form action="/cgi-sys/entropysearch.cgi" class="search">
<p>
<!-- elements below need to be contain in block element -->
<img src="images/search.gif" alt="search" width="70" height="13">
<input type="text" name="query" value="">
<input type="hidden" name="user" value="dunmowka">
<input type="hidden" name="basehref" value="http://dunmowkarate.co.uk">
<input type="hidden" name="template" value="default">
<input type="submit" value="Search">

</p>
</form>

1. No 'target' on 'form'
2. '<element />' on single tag elements for XHTML not HTML
3. IMG and INPUT elements need to be contained withing block element,
e.g., P, DIV, PRE, H# ADDRESS


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

[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

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