6. Explain the "src" and "alt" attributes of <img> tag?
Answers
Answered by
2
Answer:
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
Computer Science,
2 months ago
Geography,
2 months ago
History,
2 months ago
Math,
10 months ago
Math,
10 months ago