Which tag embeds an SVG directly?
Correct answer
C. <svg>
15 views
C. <svg>
15 views
The <svg> tag embeds Scalable Vector Graphics directly in an HTML page, so shapes become part of the DOM and can be styled with CSS and scripted with JavaScript.
<img> can display an SVG file but only as an external image, <canvas> draws pixels through scripting, and <picture> supplies responsive image sources.
Keep preparing with more Computer Science MCQs on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.