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

what's wrong in this html code?

Discussion in 'Web Design' started by Arpit malhotra, May 28, 2017.

Tags:
  1. Arpit malhotra

    Arpit malhotra BANNED BANNED

    Joined:
    Sep 28, 2016
    Messages:
    163
    Likes Received:
    23
    Gender:
    Male
    HTML:
    <a href=<%access_url%><img style="width: 80px; height: 27px;" alt=""src="http://www.asianefficiency.com/wp-content/uploads/2015/10/Button-Download-PDF.png"></a>
     
  2. Ettienne

    Ettienne Jr. VIP Jr. VIP

    Joined:
    Mar 3, 2017
    Messages:
    148
    Likes Received:
    23
    Gender:
    Male
    Home Page:
    Try replacing the <%access_url%> with the actual url manually. Sometimes plugins/shortcodes don't function too well like that. Or you can also try "<%access_url%>" with the hyphens
     
  3. biccinnomanus

    biccinnomanus Junior Member

    Joined:
    Sep 28, 2015
    Messages:
    144
    Likes Received:
    16
    Gender:
    Male
    Try this
    <a href="access_url"><img style="width: 80px; height: 27px;" alt="" src="your_image_source_link"></a>
     
  4. pandasfriend

    pandasfriend Junior Member

    Joined:
    Jan 19, 2016
    Messages:
    142
    Likes Received:
    38
    missing > at the end of <a
    Code:
    what output <%access_url%> gives ?
    
    the thing is that it should look like this, notice > after closing after href:
    
    <a href="url"><img style="width: 80px; height: 27px;" alt=""src="http://www.asianefficiency.com/wp-content/uploads/2015/10/Button-Download-PDF.png"></a>
    
    TRY THIS:
    
    <a href="%access_url%"><img style="width: 80px; height: 27px;" alt=""src="http://www.asianefficiency.com/wp-content/uploads/2015/10/Button-Download-PDF.png"></a>
    
     
    • Thanks Thanks x 1
  5. Repulsor

    Repulsor Power Member

    Joined:
    Jun 11, 2013
    Messages:
    775
    Likes Received:
    280
    Location:
    PHP Scripting ;)
  6. Arpit malhotra

    Arpit malhotra BANNED BANNED

    Joined:
    Sep 28, 2016
    Messages:
    163
    Likes Received:
    23
    Gender:
    Male
    It worked!
    Thanks buddy!
     
  7. Repulsor

    Repulsor Power Member

    Joined:
    Jun 11, 2013
    Messages:
    775
    Likes Received:
    280
    Location:
    PHP Scripting ;)
    Buy me a beer ;)
     
  8. Arpit malhotra

    Arpit malhotra BANNED BANNED

    Joined:
    Sep 28, 2016
    Messages:
    163
    Likes Received:
    23
    Gender:
    Male
    I'm gonna earn some money with this code. The price of beer in U.S
    is $1.80. The first 2$ i'll earn will be yours. Give me your paypal id.:D
     
  9. Repulsor

    Repulsor Power Member

    Joined:
    Jun 11, 2013
    Messages:
    775
    Likes Received:
    280
    Location:
    PHP Scripting ;)
    Let me know when you start making money :)

    All the best mate! :)
     
  10. Arpit malhotra

    Arpit malhotra BANNED BANNED

    Joined:
    Sep 28, 2016
    Messages:
    163
    Likes Received:
    23
    Gender:
    Male
    Thanks!;)
     
  11. Naveen Onlive

    Naveen Onlive BANNED BANNED

    Joined:
    Jun 10, 2017
    Messages:
    25
    Likes Received:
    0
    Gender:
    Male
    Hello,
    you should use border="0" and after alt tag. if you do not need hyperlink border.