<svg>
HTML <svg> Element Reference
The SVG <svg> element embeds scalable vector graphics in an HTML document.
Categories
- Embedded content
Tag omission
Consult the HTML Living Standard for the precise tag-omission rules.
Content model
- Detailed content-model guidance will be added to this reference.
Attributes
Examples
Example
A practical svg element example.
<svg viewBox="0 0 24 24" role="img" aria-label="Check mark">
<path d="M5 12l4 4L19 6" fill="none" stroke="currentColor"/>
</svg>