HTMLHTML TutorialHTML Codes/Generators
HTML Background Code
HTML TagsHTML Color HTML Color Chart HTML Comment Box Code HTML Scrollbox Code HTML Text Code HTML Image Code HTML Marquee Code HTML Music Code HTML Video Code HTML Form Code HTML Frames Code HTML Entities HTML Examples HTML Help/Cheat Sheet HTML Templates More Codes... HTML Generator HTML Table Generator Marquee Generator Music Code Generator HTML Text Generator Text Box Generator MySpace Generators More Generators... HTML 5 Tags Create a Website
Sponsored Links
$1.99 Domain Names
With every new non-domain purchase thru ZappyHost, you get a domain name for only $1.99. |
HTML Image Link CodeThe 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. For various code usage, check out the HTML links page from the HTML tutorial. Image Link Code: With BorderTo create a border around your image when linked, use the 'border' attribute, specifying the size of the border. For example, type Note that, if you don't provide the 'border' attribute, some browsers will automatically display a border. Code: This code results in (click on the image): You'll notice that the linked page opens in a new browser window. This is because I've specified Image Link Code: No BorderTo remove the border, type Code: This code results in (click on the image): Image Link Code: ThumbnailsYou can link to a larger version of an image. When you do this, the smaller image is usually referred to as a "thumbnail" or "thumbnail image". When using thumbnails, it's best to resize the image using an image editor (as opposed to just resizing it in the HTML). This means you should have two images: One full sized image, and one (smaller) thumbnail image. Code: This code results in (click on the image): Image MapsImage maps allow you to create many "clickable" areas within a single image. Hover over the image below to see what I mean. As you hover, you'll notice the cursor turn into a hand as you hover over each link. There are 3 different links in the image below. See if you can find them!
To create an image map, check out how to create image maps. TemplatesYou can use the following templates as a basis for your HTML image link codes. Simply fill in the blanks or remove uneeded attributes. Link Code TemplateTo link an image, simply nest it inside a hyperlink tag. Here is the hyperlink tag including all possible attributes. For an explanation of all the attributes, see the HTML a tag specifications.
Link Code TemplateHere is the image tag including all possible attributes. For an explanation of all the attributes, see the HTML img tag specifications.
|
Sponsored Links
Need Website Content?
Get unique, quality digital content for your website.
|