|
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
Navigation:
[Reply to this message]
|