WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: RE: labeling search box

for

Number of posts in this thread: 1 (In chronological order)

From: Hoffman, David
Date: Thu, Jul 10 2003 9:00AM
Subject: RE: labeling search box
No previous message | No next message

Add a screen label and place it in label tags as shown below. Add an ID
attribute to the input box, to match the label, also as shown below.

Good luck!
David

David Hoffman
IT Accessibility Specialist
MILVETS Systems Technology, Inc.

<label for="MySearch">Search The Site</label>
<input type="text" size="15" name="qt" value="SEARCH" onfocus="if
(this.value && this.value == 'SEARCH') this.value = ''; else
this.select();" class="searchInput" ID="MySearch">