W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2011

[whatwg] <details> for long description of image/ video etc

From: Bruce Lawson <brucel@opera.com>
Date: Sat, 02 Apr 2011 08:07:29 +0100
Message-ID: <op.vtat2ow5h8on37@bruce-pc>
   From a comment in a blog post of mine about longdesc
(http://www.brucelawson.co.uk/2011/longdesc-in-html5/comment-page-1/#comment-749853)
I'm wondering if this is an appropriate used of <details>

<details>
    <summary>
    <img src=chart.png alt="Graph of percentage of total U.S.
non-institutionalized population age 16-64 declaring one or more
disabilities">
    </summary>
<p>The bar graph shows the percentage of total U.S. noninsitutionalized
population age 16-64 declaring one or more disabilities. The percentage
value for each category is as follows:</p>
				<ul>
					<li>Total declaring one or more disabilities: 18.6 percent </li>
					<li>Sensory (visual and hearing): 2.3 percent</li>
					<li>Physical: 6.2 percent</li>
					<li>Mental: 3.8 percent</li>
					<li>Self-care: 1.8 percent</li>
					<li>Diffuculty going outside the home: 6.4 percent</li>
					<li>Employment disability: 11.9 percent</li>
				</ul>
				<p>data retrieved from <a
href="http://www.census.gov/prod/2003pubs/c2kbr-17.pdf" title="Link to
External Site" class="external">2000 U.S. Census<span> -
           external link</span></a></p>
</details>

.. thereby acting as a discoverable-by-anyone longdesc. (The example is
adapted from the longdesc example at
http://webaim.org/techniques/images/longdesc#longdesc)

Note to grumpy people: I'm not trying to advocate abolishing longdesc,
just seeeing whether details can be used as an alternative.
Received on Saturday, 2 April 2011 00:07:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:03 GMT