SVG

Scalable Vector Graphics, an XML-based image format that describes shapes with coordinates so it stays sharp at any size.

In more detail

Icons are usually inline SVG elements. Decorative icons inside a labelled button should have aria-hidden="true" so screen readers do not try to read the graphic.

Example

In the browser: SVG stands for Scalable Vector Graphics. An inline SVG icon inside a button is part of the DOM, so a click on the icon has the icon's path as event.target, which is why delegation uses closest().

Related terms

Taught in

References