a11yTips — Indicate required form controls using image…

Indicate required form controls using image indicators

Make sure indications of required form controls are conveyed through IMG elements

Informing users about required form fields and programmatically conveying that information to assistive technologies is critical in making sure the most basic form submission errors are avoided. However, providing that information in plain text is often considered to be inelegant by visual designers, who will often prefer to rely on symbols to convey that information. As a result, another option that is often found is to use the asterisk (*) symbol and position it right next to the label of the field that is mandatory. As the asterisk text symbol is not a recommendable solution due to most screen readers ignoring it by default, a favoured accessible approach is to use an image instead.

To do so, simply make sure the text label wrapped into the LABEL element that is tied to the required form control also carries an image of the asterisk symbol, complete with an ALT attribute value describing its function (alt=”required”). As long as the image and the content of the LABEL element are programmatically bound to the form control, setting focus on the control will automatically convey the mandatory status [...]

Read article at dboudreau.tumblr.com

Article Taxonomies

Categories:
Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /home/webable/www/www/wp-content/themes/webable/content-mcm.php:65 Stack trace: #0 /home/webable/www/www/wp-includes/template.php(812): require() #1 /home/webable/www/www/wp-includes/template.php(745): load_template('/home/webable/w...', false, Array) #2 /home/webable/www/www/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #3 /home/webable/www/www/wp-content/themes/webable/single-mcm_article.php(15): get_template_part('content-mcm') #4 /home/webable/www/www/wp-includes/template-loader.php(106): include('/home/webable/w...') #5 /home/webable/www/www/wp-blog-header.php(19): require_once('/home/webable/w...') #6 /home/webable/www/www/index.php(17): require('/home/webable/w...') #7 {main} thrown in /home/webable/www/www/wp-content/themes/webable/content-mcm.php on line 65