SVG
SVG (Scalable Vector Graphics) is an XML-based standard and markup language for describing scalable two-dimensional vector graphics.
D3.js in Action, Third Edition
SVG is the Scalable Vector Graphics standard for describing resolution-independent two-dimensional graphics with XML-based elements.
- How it is used
- Renders vector marks for D3 data visualizations inside the browser DOM.
- How deep it goes
- Works through container sizing, coordinates, reusable shapes, styling, labels, and groups, then compares SVG’s rendering trade-offs with Canvas.
- Examples
- Builds a gallery of SVG shapes and positions a line chart inside a translated, margin-aware group.
- What you can do after
- Build it from scratch with SVG shapes, then apply it via D3 selections to create and position chart elements.
HTML5 in Action
SVG 2 is a version of the Scalable Vector Graphics specification that succeeds SVG 1.1.
- How it is used
- Uses SVG to create responsive, interactive graphics inside HTML applications.
- How deep it goes
- Works through SVG setup, shapes, animation, imported assets, and a flexible viewBox rather than treating the full specification as a reference.
- Examples
- Builds a resizable alien game with ships, shields, lasers, imported SVG assets, and interactive elements.
- What you can do after
- Build from scratch SVG applications that use HTML, CSS, and JavaScript for resizable, interactive graphics.
Tiny CSS Projects
SVG is an XML-based standard for describing two-dimensional vector graphics.
- How it is used
- Uses SVG rectangles to create a responsive loading graphic that communicates an ongoing task.
- How deep it goes
- Explains vector coordinates, basic shapes, responsive rectangle placement, and styling access; leaves irregular paths unused.
- Examples
- Shows eleven spaced rectangles in a responsive loader and CSS fill colors applied to individual bars.
- What you can do after
- Build it from scratch: position SVG rectangles in a responsive loader and style their fills with CSS.
Also covered in
- Rust in Action: Systems programming concepts and techniques
- Architecting AccessibilityIn early access (MEAP)
- Vanilla WebIn early access (MEAP)
- .NET MAUI in Action
- Digital Twins in Action
- React Quickly, Second Edition
- Web Design Playground, Second Edition
What to know first
- HTMLHTML is the standard markup language for structuring content and elements in documents on the web.
- CSSCSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- bitmap imageA bitmap image is a raster representation of visual content as a grid of individually encoded pixels.
- JavaScriptJavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
Related concepts
- D3.jsused by · D3.js is an open-source JavaScript library for binding data to documents and creating dynamic, interactive visualizations in web browsers.
- CSSuses · CSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- xmluses · XML (Extensible Markup Language) is a text-based markup language for representing structured information using elements, attributes, and nested relationships.
- bitmap imagecontrasts with · A bitmap image is a raster representation of visual content as a grid of individually encoded pixels.
- browseruses · A web browser is software that retrieves, interprets, and renders web resources, executes supported web content, and enables interaction with web applications.
Questions about SVG
What is SVG?
SVG (Scalable Vector Graphics) is an XML-based standard and markup language for describing scalable two-dimensional vector graphics.
Which Manning books explain SVG?
D3.js in Action, Third Edition, HTML5 in Action and Tiny CSS Projects.
What should I know before learning SVG?
Manning books that teach SVG usually introduce HTML, CSS, bitmap image and JavaScript first.
What is the difference between SVG and bitmap image?
SVG (Scalable Vector Graphics) is an XML-based standard and markup language for describing scalable two-dimensional vector graphics. A bitmap image is a raster representation of visual content as a grid of individually encoded pixels.
What is SVG also called?
SVG is also called Scalable Vector Graphics.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


