Q1. How can you add interactivity to SVG?
Add JavaScript event listeners like onclick, onmouseover, or use CSS :hover effects.
Q2. What is SMIL in SVG?
Synchronized Multimedia Integration Language - declarative animations within SVG using <animate> tags.
Q3. How do you animate with SMIL?
Use <animate attributeName="x" from="0" to="100" dur="2s" repeatCount="indefinite" />
Q4. What are modern alternatives to SMIL?
CSS animations for simple properties, JavaScript libraries like GreenSock (GSAP) for complex animations.
Q5. Can SVG elements respond to hover?
Yes, use CSS :hover pseudo-class to change fill, stroke, or other properties.
