HTML and CSS Certification Practice Test 2025 – The All-in-One Guide to Master Your Certification!

Question: 1 / 400

What is the correct HTML element for inserting an image?

<image>

<pic>

<img>

The correct HTML element for inserting an image is the <img> tag. This element is specifically designed for embedding images into a web page. It is a self-closing tag, which means it doesn't require a separate closing tag. The <img> tag includes attributes like "src" to specify the image file's location and "alt" to provide alternative text in case the image cannot be displayed. This is important for accessibility, as it allows screen readers to convey what the image represents to users with visual impairments.

The other options do not represent valid HTML tags for image insertion. The <image> tag is not a recognized HTML element for this purpose, nor is <pic>, which also does not exist in standard HTML. Additionally, <src> is not an HTML tag; rather, it is an attribute that belongs to the <img> tag, used to denote the source of the image file. Understanding the correct use of these elements and attributes is key to effective web development.

Get further explanation with Examzify DeepDiveBeta

<src>

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy