HTML Image Link Code

I have had a lot of friends ask me about this, so I have decided to write this article to make things easier for people who want to add images with a link to their, web site, FaceBook, Craigslist or what ever. The following is an example of html image code. You can copy and paste this code into your own HTML documents – just change the values of the attributes as required (meaning the image link and web address you want it pointed to).

How to modify the HTML Image Link Code:

  • Between the quotation marks Replace ( https://freewebsitetricks.com/ ) with your the web address you want it to point to.
  • Between the quotation marks Replace ( https://freewebsitetricks.com/images/FreeWebSiteTricks-Banner.png ) with your image.
  • To add a  border, replace “0” with a number, example ( border="1" )always keep the quotation marks
  • To have the link open in the same window remove the code: ( target=”_blank” )

Just Copy and paste the HTML Image Code below in to your html document:

—————————————————-

<a href=”https://freewebsitetricks.com/” target=”_blank”>
<img src=”https://freewebsitetricks.com/images/FreeWebSiteTricks-Banner.png” border=”0″ alt=”Free Web Site Tricks”/>
</a>

—————————————————-

This is what it should look like with no border.

Free Web Site Tricks

Published by

Mke

About Michael from Free Website Tricks Welcome to FreeWebsiteTricks.com, this website was created to help beginners who would like to build a website. My name is Michael and I have been designing websites since 2000, although I no longer design websites (by choice) I really enjoy designing websites for myself and teaching others how to design their own websites. This site will be dedicated to teaching you what options are available to you when it comes to website design along with other helpful tools for online and offline use.

Leave a Reply

Your email address will not be published. Required fields are marked *

*