eHow launches Android app: Get the best of eHow on the go.

How To

How to Create a Link to an Image Using HTML Programming

Contributor
By Angela Wells
eHow Contributing Writer
(0 Ratings)

HTML, or hypertext markup language is a computer language that is used to create web pages. Websites and web pages are written in HTML code. Whether you are setting up a personal web page or a business web page, learning HTML code can be very beneficial. Knowing how to use the codes can help you manipulate your page settings. HTML documents contain plain text and have the extension .html or .htm extension. You can create a link on your page that users can click on to be directed to an image. Adding links to images is an excellent way to make your page attractive. This guide will teach you how to create a link to an image. You can link a smaller version of your image to a larger version. This guide presents a very simple approach to customizing your page.

Difficulty: Easy
Instructions
  1. Step 1

    Start your word processor or text editor that you will use to create your web page. Open the page that you will be adding a link to. Type the text or add the image to your page that you want users to click on to display the image.

  2. Step 2

    Place your cursor in front of the text or image that users will click on and type <A HREF=“?” Type </A> after the name of the file.

  3. Step 3

    Replace the question mark with the location of the linked image on your computer. Your text within your paragraph should look like the example below. <A HREF=“image.jpg”><IMG SRC=“image.jpg”></A>click here to view image. </BODY> </HTML>

  4. Step 4

    Open a new web browser to verify that your web page displays the link properly. To display your page you may use a browser, such as Internet Explorer. To open your web page in the browser, click the "File" button along the "Menu" bar, click "Open." The "Open" dialog box appears. Click browse to locate your web page in the location that it is saved. Choose the web page that you wish to open. Your web page will appear in the browser. Try clicking on the link and verify that the image displays properly.

Tips & Warnings
  • You should display your web page in several browsers to see how each browser will display your page.
Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Tags
Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics