Form Input Accessibility (Full Version)

All Forums >> [Web Development] >> Accessibility



Message


Tailslide -> Form Input Accessibility (2/9/2008 12:19:46)

Mike Cherim has uncovered a problem with one of the popular ways of laying out an accessible form - wrapping inputs with their labels within a label tag. One particular screenreader can't read the inputs when structured like this.

Apparently it's meant to be able to - but that doesn't help us, so best avoid this technique at least for the moment.

http://green-beast.com/blog/?p=254#comment-23984

Unfortunately this was exactly what I'd been doing!




Andy from Spain -> RE: Form Input Accessibility (6/17/2008 6:08:46)

I'm looking into this at the moment but have a form which is basically a search box followed by a submit button / image. According to "Cynthia" this is fine

<form method="post" action="searchpage.asp">
<input class="textarea" type="text" name="stext" size="20" alt="search"/><br/>
<input type="image" name="Submit" src="images/search.gif" alt="search"/>
</form>

..but surely a textarea shouldn't have an alt attribute and validate, or am I missing something?

Cheers
Andy




Tailslide -> RE: Form Input Accessibility (6/17/2008 7:03:41)

I've never noticed this before Andy - but you can use alt attributes for all inputs, not just image buttons: http://www.w3.org/TR/html401/interact/forms.html

Personally I think I'd use a label on the textarea instead.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875