FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
SVG by Hand: Why Every Developer Should Understand the Markup
How-ToWeb Development

SVG by Hand: Why Every Developer Should Understand the Markup

via Dev.to TutorialMichael Lip3h ago

I used to treat SVGs as black boxes. Figma exported them, I dropped them into the project, and I never looked at the markup. Then one day a client's logo had a 4MB SVG file that was crashing the mobile browser. I opened it and found 800 lines of nested groups, invisible layers, duplicate gradient definitions, and enough metadata to fill a novel. I cleaned it down to 12KB by hand. That's when I started learning SVG as a language, not just a file format. SVG is XML. It's readable, writable, and manipulable as text. You can inline it in HTML, style it with CSS, animate it with JavaScript, and version-control it with git. No other image format offers that. Here's the practical knowledge that matters. The viewport and viewBox Every SVG starts with these two concepts: <svg width= "200" height= "200" viewBox= "0 0 100 100" > <!-- content --> </svg> The width and height set the physical size on the page. The viewBox defines the internal coordinate system. In this example, the SVG is 200 pixels

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
0 views

Related Articles

The Maven Velocity Playbook: Mastering Build Speed, Dependency Scopes, and Modern Caching
How-To

The Maven Velocity Playbook: Mastering Build Speed, Dependency Scopes, and Modern Caching

Medium Programming • 52m ago

Monte Verde site gets a new date, but the big picture doesn't change
How-To

Monte Verde site gets a new date, but the big picture doesn't change

Ars Technica • 1h ago

Your CLAUDE.md Is a Suggestion. Hooks Make It Law.
How-To

Your CLAUDE.md Is a Suggestion. Hooks Make It Law.

Medium Programming • 1h ago

The Hidden Complexity of Citation Formatting (And Why I Automated It)
How-To

The Hidden Complexity of Citation Formatting (And Why I Automated It)

Dev.to Beginners • 2h ago

The Widmark Formula: How BAC Is Actually Calculated
How-To

The Widmark Formula: How BAC Is Actually Calculated

Dev.to Tutorial • 2h ago

Discover More Articles