Name any two attributes used with <img> tag. Describe their use with example.
Answers
Answered by
3
Ans <IMG> tag is used to insert images in any webpage. Its two main attributes are as follows: SRC: It specifies the URL of the image. ALT: It specifies an alternate text for an image.
Answered by
7
Answer:
The <img> tag is used to insert images. Its attributes are as follows: src, alt, width, and height
Explanation:
The <img> tag is used to insert images into the webpage.
The src attribute is used to specify the path/URL of the image.
Ex: - <img src="hello world.png">
The alt attribute is used to display a text if the specified image in the 'src' tag isn't found.
Ex: - <img src=hell world" alt="404: Image Not Found">
Similar questions