HTML5 Please

<svg>

Safe to use with polyfillsvg

SVG has had good support for several years in most browsers, except for Internet Explorer.

Verdict
Safe to use
Category
CSS features
Browser support
Can I Use
Works in
IE9+

Should you use <svg> in 2026?

IE9 brings support, which means for oldIE you can use SVGWeb as a polyfill, or create SVG dynamically via Raphael (which uses a VML fallback).

For Android Browser support, you can use CanVG. Meanwhile D3.js is an SVG and DOM library for data visualization.

How to use it

<svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true">
  <path d="M4 12l6 6L20 6" fill="none" stroke="currentColor" stroke-width="2"/>
</svg>

Polyfills and fallbacks

SVGWeb