HTML and CSS Certification 2025 – 400 Free Practice Questions to Pass the Exam

Question: 1 / 400

Which HTML element should be used to add an image in a webpage?

<img>

The <img> element is the standard HTML tag used for embedding images in a webpage. It allows you to display images from a source URL by using the `src` attribute to specify the image's location. This element also supports additional attributes such as `alt`, which provides alternative text for the image, enhancing accessibility and SEO.

The other options are not appropriate for directly adding images to a webpage. The <photo> element does not exist in HTML and therefore cannot be used for any purpose related to images. Although the <picture> element is valid and is used to provide multiple sources for an image, it acts as a wrapper for the <img> tag rather than being an element used on its own to display an image. The <background> option is also not an HTML element; instead, backgrounds are typically set using CSS properties, which apply to elements rather than being standalone HTML tags.

Get further explanation with Examzify DeepDiveBeta

<photo>

<picture>

<background>

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy