Reply to Re: question about form validation

Your name:

Reply:


Posted by Jukka K. Korpela on 03/13/06 23:07

gerg <noemail@noemail.com> wrote:

> I have a form in which I want all the form elements to be in a strait
> line IE:
>
> Username: <input box> Password: <input box> <submit button>

Stop wanting that. Such a layout reduces accessibility. Put one field,
together with its label, on one line.

> However apon validation it says that I can't have textual elements in a
> form without a wrapper of some sort, <p> or <div>

Yes, if your document purports to use syntax that requires it.

> however apon adding
> these elements around the text I can no longer keep all the elements in
> a strait line.

Yes you can. You don't put each element in a block of its own. That would
actually be against the idea of block. You can wrap all the stuff inside a
single <div> or, more reasonably, use
<div>Username: <input ...></div>
<div>Password: <input ...></div>
<div>submit button</div>

--
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

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