MENU

Chapter 6 Inserting Images and Links in HTML Solutions

Question - 1 : - How can text be displayed in place of image for users whose browser do not support images?

Answer - 1 : - The alt attribute of tag is used to display the text in place of image for the users whose browser do not support images.

Question - 2 : - Write a statement in HTML that inserts an image named тАШschool.jpgтАЩ found in the тАШimagesтАЩ folder of the current folder. In case the image cannot be found, it should display тАШSchools in IndiaтАЩ.

Answer - 2 : - тАЭSchools

Question - 3 : -
The following code is written to align the image in center in the browserтАЩs window.
However, the>desired result is not achieved. Mention the reason.

Answer - 3 : - The reason for not getting the desired result is that center is not a value of align attribute in tag.

Question - 4 : - Why width and height attributes are used?

Answer - 4 : - The width and height attributes are used, such that downloading of an image will be faster after knowing the dimensions of the images in the browser.

Question - 5 : - What do you mean by hypertext?

Answer - 5 : - Hypertext acts as a link on which you click to navigate to the desired content.

Question - 6 : - In HTML, how linking can be done?

Answer - 6 : - In HTML, linking can be done by using anchor tag followed by href attribute.

Question - 7 : - Explain linking.

Answer - 7 : - When one Web page or a text fragment is connected to another Web page, then it is called linking. It is of two typesтАФ internal linking and external linking.

Question - 8 : - What happens when we click on a hyperlink in a Web page?

Answer - 8 : - When we click on a hyperlink in a Web page, it provides a link that leads from one document to another.

Question - 9 : -
Give the expansion of the following

Answer - 9 : -


Question - 10 : - Describe the use of alt attribute with tag.

Answer - 10 : - The alt attribute is used to define тАШalternate textтАЩ for an image. It tells the Website visitor, what he/she is missing on the page if the browser cannot load images. The browser will then display the altertnate text instead of the image. It is good to include alt attribute for each image on a page to improve the appearance and usefulness of the document.

Free - Previous Years Question Papers
Any questions? Ask us!
×