Reply to Re: question about form validation

Your name:

Reply:


Posted by gerg on 03/13/06 23:14

Toby Inkster wrote:
> gerg wrote:
>
>
>>Username: <input box> Password: <input box> <submit button>
>>
>>However apon validation it says that I can't have textual elements in a
>>form without a wrapper of some sort, <p> or <div> however apon adding
>>these elements around the text I can no longer keep all the elements in
>>a strait line.
>
>
> <form ...>
> <div>
> <label>Username: <input name="username"></label>
> <label>Password: <input name="password" type="password"></label>
> <input type="submit" value="Log In">
> </div>
> </form>
>

Toby, thanks for the response. After changing my markup to add the
<label> tag i'm now getting this error from the validator:

Error Line 24 column 6: document type does not allow element "label"
here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div",
"pre", "address", "fieldset", "ins", "del" start-tag.

It did work as far as allowing me to keep my form in a strait line, but
the validator dosen't seem to like it.

http://www.guardianharvest.com

Thanks again Toby.

Greg

[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

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