HTML and CSS Certification Practice Test

Image Description

Question: 1 / 400

What text will appear while an image is loading in HTML?

Loading image...

The image is currently unavailable

Flowers

When an image is loading in HTML, the text that appears while the image is downloading is determined by the "alt" attribute in the image tag. This attribute provides alternative text for the image, which is particularly useful for accessibility purposes and for situations where the image cannot be displayed.

If an image is slow to load or if the image fails to load entirely, the text specified in the "alt" attribute will be shown in its place. Therefore, if the "alt" attribute is set to "Flowers", that is the text that users will see while the image is loading or if it fails to load.

In contrast, other phrases such as "Loading image..." or "Image loading failed" would not automatically appear as they are not standard attributes in HTML. Each of those phrases might require custom JavaScript to dynamically display that message, which is not how the HTML standard behavior works for images.

Get further explanation with Examzify DeepDiveBeta

Image loading failed

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy