English

i. Which HTML tag is used for inserting an image on a webpage. ii. Rahul wants to display an image 'logo.jpg' on a webpage. Write the HTML command he should use to insert the image. - Computer Applications

Advertisements
Advertisements

Question

  1. Which HTML tag is used for inserting an image on a webpage.
  2. Rahul wants to display an image 'logo.jpg' on a webpage. Write the HTML command he should use to insert the image.
  3. 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.
  4. Explain the use of the “alt” attribute in the HTML image tag.
Code Writing
Advertisements

Solution

  1. <img> tag
  2. <img src="logo.jpg" alt="Logo">
  3. <a href="aboutus.html">
    <img src="logo.jpg" alt="Logo">
    </a>
  4. The “alt” attribute provides an alternate text for the image that will be displayed when the image fails to load.
shaalaa.com
  Is there an error in this question or solution?
2025-2026 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×