1. Home
  2. Computer Science MCQs
  3. HTML
  4. Which tag embeds an SVG directly?

Added 14 Sep 2025

Which tag embeds an SVG directly?

  1. <img>
  2. <canvas>
  3. <svg> Correct answer
  4. <picture>

Correct answer

C. <svg>

15 views

MCQSEXAM

Explanation

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.

Reference

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More HTML MCQs

Practise all HTML MCQs

Similar MCQs