HTML – Link a picture to another page

February 2017



Issue



I just wanted to get the codes for adding images to a web page. I mean in html codes. This would help me greatly to add pictures to the sample web page that I am building. I had the main codes but I can't find it now.

Solution


The code like this will show just the pic:
<img border="0" src="address of image" width="304" height="228" /> 



This code will make your picture a link to another page or file or email or where ever you want it to go:

</script></p><a href="http://ccm.net"><img src="images/logo.jpg" width="150" height="125" alt="HO logo"></a>

Note


Thanks to wires and plugs for this tip on the forum.

Related


Published by aakai1056. Latest update on January 22, 2010 at 09:09 AM by aakai1056.
This document, titled "HTML – Link a picture to another page," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).