HTML <svg> Element Reference

The SVG <svg> element embeds scalable vector graphics in an HTML document.

<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>

Related references

Description

The SVG <svg> element embeds scalable vector graphics in an HTML document.

References

  1. HTML Living Standard: Index of elements
  2. MDN: HTML <svg> Element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies