Computer Science, asked by heerarprabhu33, 1 year ago

How to insert an image in html and how to assign a hyperlink connecting that image in another window.Please answer fast tmrws my exam.

Answers

Answered by Anonymous
1

Hi,

How to insert an image in html?

You can add an image in html document using <img> tag and then setting its src attribute to the actual location/path of that image.

example: <img src="location/of/image/example.jpg" />

how to assign a hyperlink connecting that image in another window?

You can assign a hyperlink to that image by wrapping that image in <a> tag.

example:

<a href="location/of/your/html/file.html">

<img src="location/of/image/example.jpg" />

</a>


Similar questions