Reply to Re: css form elements

Your name:

Reply:


Posted by Jukka K. Korpela on 09/01/06 15:53

timothy.pollard@btinternet.com <timothy.pollard@btinternet.com> scripsit:

> I've also set an initial value in my html which clears when you
> click in the box

A completely wrong idea. Even though the WAI WCAG 1.0 document suggests such
a technique until user agents support empty fields, it was a very bad idea
from the beginning, and the time has surely come when any user agent worth
mentioning supports empty fields.

> <input name="EmlSubj" type="text" class="blueform" id="EmlSubj"
> value="SUBJECT" size="36" ONFOCUS="clearDefault(this)">

Make it

<label for="EmlSubj">Subject:</label>
<input name="EmlSubj" type="text" class="blueform" id="EmlSubj" size="36">

(except that "36" is probably somewhat too small - you aren't trying to make
a form a piece of art at the cost of actual usefulness and usability, are
you?)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

[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

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