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 "anchor" 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
    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
200 characters left
Include your email address to get a message when this question is answered.
Submit
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

You Might Also Like

Advertisement

About This Article

CB
Co-authored by:
Tech Enthusiast
This article was co-authored by Christopher Batchelor. Christopher Batchelor is a wikiHow community member and technology enthusiast. He has experience using a range of different platforms and software, and likes to keep up with updates and new features. This article has been viewed 142,425 times.
How helpful is this?
Co-authors: 14
Updated: June 5, 2023
Views: 142,425
Categories: HTML
Thanks to all authors for creating a page that has been read 142,425 times.

Is this article up to date?

Advertisement