Vector Graphics for the Web

Renegade Knight
Aug 28 · 4 min read
Map of Africa
Map of Africa
Map of Africa by Truston Ailende

The SVG Specification

<svg xmlns=”http://www.w3.org/2000/svg"> 

</svg>
<svg xmlns=”http://www.w3.org/2000/svg"> 
<circle cx=”40" cy=”40" r=”30" stroke=”#000" stroke-width=”1" fill=”#FFF” />
</svg>
Image for post
Image for post
Drawn Circle

SVG Advantages

Resolution Independence

Image for post
Image for post
Vector Graphics are Resolution Independent

Interactivity

SEO Friendly

Adding SVG to Your Web Pages

Using the Image Tag

<img src=”circle.svg” alt=”A simple circle” width=”100" height=”100" />

Using the Object Tag

<object type=”image/svg+xml” data=”circle.svg”></object>

Using inline SVG

Browser Adoption

Image for post
Image for post
Browser Support for SVG

JavaScript Tools for Working with SVG

RaphaelJS

JustGage

Snap.svg

D3.js

Conclusion

JavaScript In Plain English

JavaScript In Plain English

New JavaScript + Web Development articles every day.

Renegade Knight

Written by

Engineer, Entrepreneur, Educator Passionate about Game Development, Simulation Programming and Robotics. https://trustonailende.com

JavaScript In Plain English

New JavaScript + Web Development articles every day.

Renegade Knight

Written by

Engineer, Entrepreneur, Educator Passionate about Game Development, Simulation Programming and Robotics. https://trustonailende.com

JavaScript In Plain English

New JavaScript + Web Development articles every day.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store