SVG

General Info

XML is case-sensitive (unlike HTML).

Attribute values in SVG must be placed inside quotes, even if they are numbers.

Anatomy of an SVG

xmlns namespace attribute, tells browser what time of xml file this is

viewbox defines the bounds of the svg

Inline vs Linked SVGs

Linking is generally cleaner and simpler but does not allow you to interact with the SVG through CSS or JavaScript.

Inlining SVGs allow you to unlock their full potential, but it also comes with some serious drawbacks: it makes your code harder to read, makes your page less cacheable, and if it’s a large SVG it might delay the rest of your HTML from loading.

SVG Sites

SVG Path Editor Tool

Icon Sites

The Noun Project

Feather Icons

Material Icons

SVG Libraries

SVGJS

SnapSVG