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

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your HTML and CSS skills with our Certification Test. Practice with multiple-choice questions and comprehensively designed quizzes. Prepare thoroughly for your certification exam with detailed explanations and insights!

The 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 element does not exist in HTML and therefore cannot be used for any purpose related to images. Although the element is valid and is used to provide multiple sources for an image, it acts as a wrapper for the tag rather than being an element used on its own to display an image. The 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.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy