Image tag with attribute gives information about the image
a) src b) alt c) width d) height
Answers
Answered by
9
Answer:
- The attribute that gives information about the image is - alt.
Explanation:
- The alt attribute contains the alternate text for the image.
- It appears on the web page if the image doesn't appear.
- Syntax: <img src="url" alt="alternate text"/>
- Sometimes, images don't load on the site due to network problem. In that case, the alternate text is displayed which gives an idea about the image to the user.
- There are many more attributes like width, height, src, id ,class etc.
•••♪
Answered by
6
Question:-
- Image tag with attribute gives information about the image
Correct Answer:-
- Option (B): alt
Explaination:-
Let us take any image as example(say, brainly.jpg)
So here how we do it ..
<img src="img.jpg" alt="Brainly logo">
ProTips:-
- For better view of image, you can use width and height
Example:-
<img src="img.jpg" alt="Brainly logo" width="100" height="50">
Similar questions