Computer Science, asked by MRahul6303, 1 year ago

How can you link an image as hyperlink to another document? Explain with the help of an example.(5M)

Answers

Answered by javed6542
43
<a href="http://www.google.com">Tag a for hyperlinks<a>
And,
<img src="image.jpg">Tag IMG for images<img>

So,

<a href="http://www.customdomain.com/anotherdocument.txt"><img sec="image.jpg">Tag IMG inside 'a' to link images to other pages or documents<img><a>
Answered by gauravarduino
5

Explanation:

Example explained First of all, you have the paragraph element in which the image hyperlink sits; this is denoted using the <p> tag. Inside of that element, you have the link itself, which is wrapped in the <a> tag. This tag lets the browser know that you're creating a link.

Similar questions