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