Multiple choice technology programming languages

Which directives specify an HTTP response that will be of type "image/svg"?

  1. <%@ page type ="image/svg"%>

  2. <%@ page mimetype="image/svg" %>

  3. <% page language="image/svg" %>

  4. <% page contentType="image/svg" %>

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The contentType attribute of the page directive defines the MIME type of the HTTP response. While the option contains a minor syntax typo (missing the @ character in the directive prefix), it correctly identifies contentType as the appropriate attribute, whereas type, mimetype, and language are invalid attributes.