openmusictheory / openmusictheory.github.io

A growing, online "textbook" for music theory and aural skills
348 stars 161 forks source link

Create SVGs #32

Open bcmoseley opened 9 years ago

bcmoseley commented 9 years ago

For scalable, responsive, and easily editable design, I'm using SVGs instead of PNGs. Using the img tag, you can support a PNG fallback in case of browser incompatibility.

Ex:

<img referrerpolicy="no-referrer" src="Graphics/ClassicalThemes/hybrid1.svg" onerror="this.src='Graphics/ClassicalThemes/hybrid1.png'">