Each container element or graphics element in an SVG drawing can supply a description string using the <desc> element 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 improves accessibility of SVG documents.

Usage context

CategoriesDescriptive element
Permitted contentAny elements or character data

Attributes

Global attributes

Specific attributes

None

DOM Interface

This element implements the SVGDescElement interface.

Specifications

Specification Status Comment
Scalable Vector Graphics (SVG) 2
The definition of '<desc>' in that specification.
Candidate Recommendation  
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of '<desc>' in that specification.
Recommendation Initial definition

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 1Edge Full support YesFirefox Full support YesIE Full support 9Opera Full support 8Safari Full support 3.1WebView Android Full support 3Chrome Android Full support 18Edge Mobile Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support 3.1Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

See also

Document Tags and Contributors

Contributors to this page: ExE-Boss, abbycar, Sebastianz, Jeremie, kscarfone, Manuel_Strehl
Last updated by: ExE-Boss,