{"id":1394,"date":"2012-11-28T08:50:36","date_gmt":"2012-11-28T13:50:36","guid":{"rendered":"http:\/\/www.equipmentlink.org\/blog\/?p=1394"},"modified":"2012-11-28T08:50:36","modified_gmt":"2012-11-28T13:50:36","slug":"form-fields-without-visible-labels-112812","status":"publish","type":"post","link":"https:\/\/www.equipmentlink.org\/blog\/?p=1394","title":{"rendered":"Form Fields Without Visible Labels, 11\/28\/12"},"content":{"rendered":"<h2>Form Fields Without Visible Labels<\/h2>\n<p>Sometimes form fields, such as a search text box, do not have visible label text. In order to be accessible, these fields must have descriptive text provided in one of two ways:<\/p>\n<ul>\n<li>Use the &#8220;title&#8221; attribute in place of a <a href=\"http:\/\/webaim.org\/techniques\/forms\/controls\">label<\/a>. If a form field has a title but no label, the screen reader will read the title as if it were a label. Using the &#8220;title&#8221; attribute will also create a tooltip that will be visible if a user hovers over the form field with a mouse.<\/li>\n<li>Use the &#8220;&lt;label&gt;&#8221;\u00a0element and hide the label element <a href=\"http:\/\/webaim.org\/techniques\/css\/invisiblecontent\/\">off-screen using CSS<\/a>. This technique has the advantage of creating a label that will be visible when styles are disabled. It is also possible to use CSS to create a label where part of the text is visible and part of the text is hidden off-screen.<\/li>\n<\/ul>\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=1394\" 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>Form Fields Without Visible Labels Sometimes form fields, such as a search text box, do not have visible label text. In order to be accessible, these fields must have descriptive text provided in one of two ways: Use the &#8220;title&#8221; attribute in place of a label. If a form field has a title but no [&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\/1394"}],"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=1394"}],"version-history":[{"count":6,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1394\/revisions"}],"predecessor-version":[{"id":1400,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1394\/revisions\/1400"}],"wp:attachment":[{"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}