{"id":40,"date":"2022-10-29T00:45:40","date_gmt":"2022-10-29T00:45:40","guid":{"rendered":"https:\/\/docs.joedolson.com\/wp-accessibility\/?p=40"},"modified":"2022-10-29T00:45:40","modified_gmt":"2022-10-29T00:45:40","slug":"support-for-longdesc-attributes","status":"publish","type":"post","link":"https:\/\/docs.joedolson.com\/wp-accessibility\/2022\/10\/29\/support-for-longdesc-attributes\/","title":{"rendered":"Support for longdesc attributes"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The <code>longdesc<\/code> attribute provides a description field for images that are more information-rich than can be conveyed in an alt attribute, such as in graphs or infographics. This uses the WordPress media library&#8217;s \u201cDescription\u201d field to generate a page linked to from the <code>longdesc<\/code> attribute which can describe that image. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The description field supports HTML, so you can add structure to the content in this field to help users understand the content.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WP Accessibility has a couple of options for how the information will be presented: either as a link that follows the image or as a button that displays the information as an overlay on top of the image.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.joedolson.com\/articles\/2014\/03\/update-wp-accessibility-longdesc\/\">Read more about <code>longdesc<\/code> in WP Accessibility<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The longdesc attribute provides a description field for images that are more information-rich than can be conveyed in an alt attribute, such as in graphs or infographics. This uses the WordPress media library&#8217;s \u201cDescription\u201d field to generate a page linked to from the longdesc attribute which can describe that image. The description field supports HTML, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-features"],"_links":{"self":[{"href":"https:\/\/docs.joedolson.com\/wp-accessibility\/wp-json\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.joedolson.com\/wp-accessibility\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.joedolson.com\/wp-accessibility\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.joedolson.com\/wp-accessibility\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.joedolson.com\/wp-accessibility\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":1,"href":"https:\/\/docs.joedolson.com\/wp-accessibility\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":41,"href":"https:\/\/docs.joedolson.com\/wp-accessibility\/wp-json\/wp\/v2\/posts\/40\/revisions\/41"}],"wp:attachment":[{"href":"https:\/\/docs.joedolson.com\/wp-accessibility\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.joedolson.com\/wp-accessibility\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.joedolson.com\/wp-accessibility\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}