Computer Science, asked by mohit5585, 1 year ago

what is the purpose of scr and alt attributes of the<img> tag?

Answers

Answered by nitish8089
4
src -attribute assign the url or link of image.
alt-attribute is used for the purpose when your attach image are not load then assign value in the attribute shown on image section
Answered by priyanka18885
0

The src attribute is required, and contains the path to the image you want to embed.

The alt attribute holds a text description of the image, which isn't mandatory but is incredibly useful for accessibility — screen readers read this description out to their users so they know what the image means.

Similar questions