W3C home > Mailing lists > Public > www-svg@w3.org > October 2010

Where to put <desc> tags

From: ddailey <ddailey@zoominternet.net>
Date: Mon, 4 Oct 2010 19:55:32 -0400
Message-ID: <781C4216CA6D4788AB923F7CD6B03CDE@disxgdg31szkx7>
To: <www-svg@w3.org>
In what appear to be the two main documents from W3C on accessibility in SVG [1,2], there seem to be slightly unclear advice in where to put <desc> tags.

In some of the examples, the <desc> precedes the group or object it is meant to describe:
<desc>this is a red rectangle meant to portray a button</desc>
<rect fill="red" />

In others, it is embedded as a child of the object it describes:

<rect fill="red" >
<desc>this is a red rectangle meant to portray a button</desc>

The latter would seem to be a better approach since the <desc> is rather yoked to the thing it describes, but how are search engines and screen readers likely to deal with it? 

Is there another place where this is discussed, or am I missing something in my reading of these? What is the best advice for authors?

[1] (dated 2000) http://www.w3.org/TR/SVG-access/ 
{2] (dated 2008) http://www.w3.org/TR/SVG/access.html#SVGAccessibilityGuidelines 
Received on Monday, 4 October 2010 23:56:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:22 UTC