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. 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

Add a Link to a Picture4 Ways to Add a Link to a Picture
Insert Images with HTMLInsert Images with HTML
Embed Pictures Embed Images in Documents and Websites
Insert a Hyperlink Insert a Hyperlink Using Rich Text or HTML: 3 Methods
Add a Hyperlink with HTMLCode a Hyperlink with HTML: A Beginner's How-To Guide
Create a Link With Simple HTML ProgrammingCreate a Link With Simple HTML Programming
Create Redirects in HTMLCreate Redirects in HTML
Edit HTML FilesEdit HTML Files
Insert Buttons in an HTML WebsiteInsert Buttons in an HTML Website
Create a Link Create a Link: Easy, Step-by-Step Instructions
Link Within a Page Using HTMLLink Within a Page Using HTML
Add a Hyperlink to a Jpeg in Photoshop Add a Hyperlink to a JPEG in Photoshop
Add Images to a List Using HTML ProgrammingAdd Images to a List Using HTML Programming
Create a Simple Web Page with HTML Create a Basic HTML Website: A Step-by-Step Guide
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 144,574 times.
How helpful is this?
Co-authors: 14
Updated: June 5, 2023
Views: 144,574
Categories: HTML
Thanks to all authors for creating a page that has been read 144,574 times.

Is this article up to date?

Advertisement