{"id":580,"date":"2012-01-04T13:52:10","date_gmt":"2012-01-04T18:52:10","guid":{"rendered":"http:\/\/www.equipmentlink.org\/blog\/?p=580"},"modified":"2012-01-04T13:52:10","modified_gmt":"2012-01-04T18:52:10","slug":"web-accessibility-tip-4-142012","status":"publish","type":"post","link":"https:\/\/www.equipmentlink.org\/blog\/?p=580","title":{"rendered":"Web Accessibility Tip #4, 1\/4\/2012"},"content":{"rendered":"<h2><span style=\"font-family: Verdana; font-size: medium;\">Beginner Tip # 4 &#8211; Form Labels<\/span><\/h2>\n<p><span style=\"font-family: Verdana;\"><strong>Difficulty:<\/strong><br \/>\nBeginner<\/p>\n<p><strong>Category:<\/strong> <\/span><\/p>\n<ul>\n<li><span style=\"font-family: Verdana;\">Presentation<\/span><\/li>\n<li><span style=\"font-family: Verdana;\">Structure<\/span><\/li>\n<li><span style=\"font-family: Verdana;\">Validation<\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: Verdana;\">Most types of form elements (text boxes, text areas, checkboxes, radio buttons, etc.) have a text label adjacent to them that identifies the function of that particular form element (e.g., &#8220;First name&#8221; adjacent to a text box). Sighted users make a visual associate between a label and its corresponding form element based on proximity and positioning. A user who is blind cannot make this visual association, so the label must be programmatically associated with its form element using the HTML &lt;label&gt; tag. When properly associated, a screen reader will read the text label when it encounters the form element.<\/p>\n<p>&lt;label for=&#8221;fname&#8221;&gt;First name:&lt;\/label&gt; &lt;input type=&#8221;text&#8221; id=&#8221;fname&#8221;&gt;<\/p>\n<p>For more information, see <a title=\"Webaim Techniques - Forms\" href=\"http:\/\/webaim.org\/techniques\/forms\/\">Creating Accessible Forms<\/a>.<br \/>\n<\/span><\/p>\n<div class=\"al2fb_like_button\"><div id=\"fb-root\"><\/div><script type=\"text\/javascript\">\n(function(d, s, id) {\n  var js, fjs = d.getElementsByTagName(s)[0];\n  if (d.getElementById(id)) return;\n  js = d.createElement(s); js.id = id;\n  js.src = \"\/\/connect.facebook.net\/en_US\/all.js#xfbml=1&appId=149587675112835\";\n  fjs.parentNode.insertBefore(js, fjs);\n}(document, \"script\", \"facebook-jssdk\"));\n<\/script>\n<fb:like href=\"https:\/\/www.equipmentlink.org\/blog\/?p=580\" layout=\"standard\" show_faces=\"true\" share=\"false\" width=\"450\" action=\"like\" font=\"arial\" colorscheme=\"light\" ref=\"AL2FB\"><\/fb:like><\/div>","protected":false},"excerpt":{"rendered":"<p>Beginner Tip # 4 &#8211; Form Labels Difficulty: Beginner Category: Presentation Structure Validation Most types of form elements (text boxes, text areas, checkboxes, radio buttons, etc.) have a text label adjacent to them that identifies the function of that particular form element (e.g., &#8220;First name&#8221; adjacent to a text box). Sighted users make a visual [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","ngg_post_thumbnail":0,"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/580"}],"collection":[{"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=580"}],"version-history":[{"count":3,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/580\/revisions"}],"predecessor-version":[{"id":583,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/580\/revisions\/583"}],"wp:attachment":[{"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}