How to Add an unDraw SVG Illustration to HTML
How to add an unDraw SVG to HTML with an image element or inline SVG, with working code examples, sizing, accessibility basics and the trade-offs of each method.
Read the guideGuide category
Practical guides for putting unDraw artwork on real web pages: adding SVG to HTML, using PNG in WordPress, responsive sizing with CSS, optimizing file weight, writing honest alt text, and building a helpful 404 page.
How to add an unDraw SVG to HTML with an image element or inline SVG, with working code examples, sizing, accessibility basics and the trade-offs of each method.
Read the guideHow to use unDraw PNG illustrations in WordPress: export the right size, upload and place artwork in posts and pages, write alt text, and keep pages fast.
Read the guideMake unDraw illustrations responsive with CSS: fluid sizing, aspect ratio, art direction with picture and srcset, and checks that stop artwork breaking a mobile layout.
Read the guideOptimize unDraw illustrations for the web: honest SVG cleanup, right-sized PNG exports, compression, lazy loading and layout stability, without inventing savings figures.
Read the guideHow to write alt text for unDraw illustrations: when an illustration is informative or decorative, what to describe, what to leave out, and examples for common scenes.
Read the guideBuild a helpful 404 page with an unDraw illustration: what a good error page contains, how to choose and place artwork, and the links that help visitors recover.
Read the guide