PDF download Download Article PDF download Download Article

Ever want to add a link to an HTML document, but wanted to show the reader an image instead of text? Most HTML coders know, and so can you, after you've read and followed the directions in this article.

  1. Open a text editing program such as Notepad or WordPad on Windows, or, on a Mac open up TextEdit, or Dreamweaver on either platform.
  2. Advertisement
  3. Type the photo-based link opening tag (known by it's more sophisticated name as an " a nchor" element-hence the "a"), <a href=".
  4. Type the link you want the viewer to see (including the http://)
  5. Use the form <img src="imagefilenamehere.gif">.
  6. Type the photo-based link closing tag, </a>.
  7. Advertisement

Community Q&A

Search
Add New Question
  • Question
    What do I do after typing the code? Nothing happened.
    Community Answer
    You have to actually put the HTML code into a website or blog before it will function as it should.
Ask a Question
      Advertisement

      Video

      Tips

      • To ensure the reader of the code understands what the object is that denotes that the picture will create the link. Ensure that both the <a> and <img> and </a> HTML tags are placed on one the same line
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 142,305 times.

      Is this article up to date?

      Advertisement