Required attribute requirements – TPGi

Required attribute requirements

Share:

Introduced in HTML5, the required attribute conveys that a particular form control or grouping of controls must have a valid value on form submission. For some controls, a valid value may be a boolean (radios and checkboxes), a non-empty string (standard text fields or selects), or a specifically formatted entry (email, number, date, etc.).

Now it’s true that fully accessible client-side validation isn’t available across all browsers. This has led some to believe that the required attribute has poor accessibility support, and that we should be using aria-required instead. However, if you’re looking to indicate that a form control is required, the required attribute will do that quite well.

Breakdown of support

Testing with modern browsers and screen readers, across different devices and operating systems, the required attribute produces a “required” announcement for all tests, with the exception of using TalkBack with [...]

Read article at developer.paciellogroup.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