HTML and CSS Certification Practice Test 2025 - Free HTML and CSS Practice Questions and Study Guide

Question: 1 / 400

What HTML tag is used to define an image?

<img>

The `<img>` tag is specifically designed to embed images in HTML documents. This tag is a self-closing tag, meaning it does not require an end tag to function properly. When you use the `<img>` tag, you can provide attributes such as `src`, which specifies the source of the image file, and `alt`, which offers alternative text for the image in case it cannot be displayed. This makes the `<img>` tag not only essential for adding visual content to a webpage but also helpful for accessibility purposes.

The `<picture>` tag, while it is indeed used for images, serves a different purpose as it allows for more complex image presentations by specifying multiple sources for different viewport sizes and resolutions. It acts as a container for one or more `<source>` elements and an `<img>` element as a fallback.

The `<image>` tag does not exist in HTML. Therefore, any reference to it would be incorrect and the browser would not recognize it, leading to rendering issues.

Similarly, the `<icon>` tag isn't a valid HTML element for including images. Instead, icons are often implemented using images with the `<img>` tag, CSS background images, or by employing icon fonts and SVGs.

Thus, the `<img>` tag

Get further explanation with Examzify DeepDiveBeta

<picture>

<image>

<icon>

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy