9th Class Computers Science Working with HTML Question Bank HTML

  • question_answer
    The img tag is used for displaying an image in a webpage. The correct use of the img tag is __________.

    A) <img src="imagename.format" alt="This is an image" height="45" width="45">"

    B) </img src="imageurl.html"><alt="This is an image", height="45", width="45"/>

    C) <image src="imagename.gif,alt="This is an image"><height="45">, <width="45"/>

    D) <img="imagename.format" height="45", width="45">

    Correct Answer: A

    Solution :

    The syntax of img tag is : <img src="url" alt="text"> Here url specifies the path where image is stored and alt specifies the alternate text for the image.


You need to login to perform this action.
You will be redirected in 3 sec spinner