|
HTML Home
Create a Website HTML TutorialHTML Tutorial HomeAbout HTML Getting Started HTML Elements HTML Formatting HTML Attributes HTML Colors HTML Links HTML Images HTML Meta Tags HTML Comments HTML Forms HTML Tables HTML Image Maps HTML Frames HTML Entities HTML Layouts HTML Styles HTML Scripts HTML Website Templates Website Hosting Summary HTML Code GeneratorsHTML Code GeneratorHTML Table Generator Marquee Generator Music Code Generator HTML Text Generator Text Box Generator Free HTML CodesHTML Background CodeHTML Comment Box Codes HTML Scroll Box Codes HTML Font Codes HTML Picture Codes HTML Marquee Code HTML Music Codes HTML Templates More Codes... HTML ReferenceHTML ExamplesComplete HTML Tag List Complete HTML 5 Tag List HTML Special Characters Hex Color Codes HTML Help FREE Hosting!With every domain name you register with ZappyHost, you get FREE hosting.$1.99 Domain NamesWith 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.
Enjoy this website?
Oh, and thank you for supporting Quackit! |
Need Content for your Website?Get unique, quality digital content for your website. You can even earn money by reselling it!Includes:
|