Advertisements
Advertisements
प्रश्न
- Which HTML tag is used for inserting an image on a webpage.
- Rahul wants to display an image 'logo.jpg' on a webpage. Write the HTML command he should use to insert the image.
- On the same webpage, Rahul wants to create a link to another webpage ‘aboutus.html’ when the image is clicked. Write the HTML command he should use.
- Explain the use of the “alt” attribute in the HTML image tag.
कोड लेखन
Advertisements
उत्तर
-
<img> tag -
<img src="logo.jpg" alt="Logo"> -
<a href="aboutus.html"> <img src="logo.jpg" alt="Logo"> </a> - The “alt” attribute provides an alternate text for the image that will be displayed when the image fails to load.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
