desc

  • Revision slug: SVG/Element/desc
  • Revision title: desc
  • Revision id: 75188
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment 24 words added

Revision Content

{{ SVGRefElem() }}

Each container element or graphics element in an SVG drawing can supply a desc description string where the description is text-only. When the current SVG document fragment is rendered as SVG on visual media, desc elements are not rendered as part of the graphics. Alternate presentations are possible, both visual and aural, which display the desc element but do not display path elements or other graphics elements. The desc element generally improve accessibility of SVG documents

Usage context

Categories Descriptive element
Normative document SVG 1.1 (2nd Edition)

Example

Attributes

Global attributes

Specific attributes

There is no specific attributes

DOM Interface

This element implements the SVGDescElement interface.

Related

  • {{ SVGElement("title") }}

Revision Source

<p>{{ SVGRefElem() }}</p>
<p>Each container element or graphics element in an SVG drawing can supply a <code>desc</code> description string where the description is text-only. When the current SVG document fragment is rendered as SVG on visual media, <code>desc</code> elements are not rendered as part of the graphics. Alternate presentations are possible, both visual and aural, which display the <code>desc</code> element but do not display <code>path</code> elements or other graphics elements. The <code>desc</code> element generally improve accessibility of SVG documents</p>
<h2>Usage context</h2>
<table class="standard-table"> <tbody> <tr> <td>Categories</td> <td>Descriptive element</td> </tr> <tr> <td>Normative document</td> <td><a class="external" href="http://www.w3.org/TR/SVG/struct.html#DescriptionAndTitleElements" title="http://www.w3.org/TR/SVG/struct.html#DescriptionAndTitleElements">SVG 1.1 (2nd Edition)</a></td> </tr> </tbody>
</table>
<h2>Example</h2>
<h2>Attributes</h2>
<h3>Global attributes</h3>
<ul> <li><a href="/en/SVG/Attribute#Core" title="en/SVG/Attribute#Core">Core attributes</a> »</li> <li>{{ SVGAttr("class") }}</li> <li>{{ SVGAttr("style") }}</li>
</ul>
<h3>Specific attributes</h3>
<p><em>There is no specific attributes</em></p><h2>DOM Interface</h2>
<p>This element implements the <code><a href="/en/DOM/SVGDescElement" title="en/DOM/SVGDescElement">SVGDescElement</a></code> interface.</p>
<h2>Related</h2>
<ul> <li>{{ SVGElement("title") }}</li>
</ul>
Revert to this revision