Interview Question

What is SVG in HTML?

SVG creates scalable graphics that stay sharp at any size.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

SVG is a way to draw sharp graphics using shapes and paths. • It stays clear when resized because it is vector-based. • Its shapes can be styled with CSS. • It works well for icons, logos, and diagrams.

💡 Simple Example

<svg viewBox="0 0 100 100"><circle cx="50" cy="50" r="40"/></svg>

⚡ Quick Revision

SVG creates scalable graphics that stay sharp at any size.