The ____ attribute in the img tag can be utilized to display text while the image is loading.
- alt
- display
- src
- title
The alt attribute, also known as the "alternative text" attribute, is used within the
tag to provide a text description for an image. This can be particularly helpful if the image fails to load or if the user is relying on screen reading software. The text can provide context or describe what is in the image, ensuring no information is lost even if the image doesn't appear.
Loading...
Related Quiz
- Which target attribute value is used to open a link in a new browsing context (like a new tab or window)?
- Which tag would be used to display a mathematical formula with exponents?
- While designing a blog post layout using block elements, how would you ensure that the text flows seamlessly around an image?
- HTML comments can be used to _____ sections of code for testing purposes.
- Inline quotations are typically represented using the _______ element in HTML.