Member Offer
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

linking code for HTML Email Image

Discussion in 'Website Coding & Programming Forum:' started by davidjp, Nov 22, 2016.

Thread Status:
Not open for further replies.
  1. davidjp

    davidjp New Member

    Hi folks,

    I'm using my web server to host an image (that will be used for an email marketing campaign by someone else). Questions are:

    1) What code to I need to add to the following to ensure that when the image is clicked the user is sent to the clients webpage (and not my own).

    2) What do I do to ensure that any mail clients blocking html will see something, rich text and a url etc...

    Here's the HTML as it is:

    <HTML>
    <HEAD>
    <TITLE>My-Test</TITLE>
    </HEAD>
    <BODY>
    <A HREF="http://www.mywebsite.com"><IMG SRC="http://www.mywebsite.com/wp-content/uploads/2016/09/test-image.jpg"></A>
    </BODY>
    </HTML>

    Thanks everyone, really appreciate it :)

    D
     
  2. Paul Murray

    Paul Murray Moderator Staff Member

    Change the link in the 'href' to the link you want users to visit when they click the image.
     
  3. davidjp

    davidjp New Member

    Ah, brilliant. Thanks mate :)
     
Thread Status:
Not open for further replies.

Share This Page