Computer Science, asked by RedChilli, 1 year ago

write the code to create an image named "heritage.gif" as a hyperlink to "india.html"

Answers

Answered by wreckitralph237
23
<body>
<a href = "heritage.gif">click here</a>
</body>
Answered by hotelcalifornia
8

Answer:

Assuming that “heritage.gif” is created, we are now creating “India.html”

<HTML>

<HEAD>

<TITLE> Link to image </TITLE>

</HEAD>

<BODY>

<a href =”../link.html”><img src=”heritage.gif” width = 60 height = 80 title =”heritage” alt =” ancient”></a>

</BODY>

</HTML>

Here, in this program the essential code lies in the <body> tag. <A> is used to create an hyperlink. According to the question instead of text as hyperlink, we are using image as an hyperlink. So <img> take is used and source is specified as “heritage.gif”. When the HTML page is launched, the user can find the hand symbol, when the cursor is moved over the image.

Similar questions