CBSE Class 10 Computer Applications Question 96 of 125

HTML II — Images, Links and Tables — Question 10

Back to all questions
10
Question

Question 10

How would you make the word Elephant appear whenever the actual elephant.jpg image couldn't be displayed by a Web browser ?

Answer

We can do this by setting the value of alt attribute to 'Elephant' in the following way:

<IMG SRC = "ELEPHANT.JPG" ALT = "ELEPHANT">