Code for a 'link to us' page

Discussion in 'HTML & Website Design' started by Devilfish, Jan 25, 2009.

  1. #1
    Hi folks,

    I am creating a links page where I can add links and banners from other sites during link exchanges. I was to add a section at the bottom that says something like 'if you want to links to us, bla bla bla, use this code:' and then have the code that would display my banner.

    But how to I embed the code in a page without it converting it to the banner? If you know what I mean?

    Like this...

    
    <a href="http://www.mysite.com" target="_blank"><img src="/images/banner.gif" alt="My Banner" /></a>
    
    Code (markup):
    Thanks! :)
     
    Devilfish, Jan 25, 2009 IP
  2. Dox5

    Dox5 Peon

    Messages:
    35
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Change all the <'s with &lt; and the >'s with &gt; so that they will display as the > and < but wont be phrased as html.

    Thats one way at least
    You could put it in a <textarea> too, but it doest look very nice IMO
     
    Dox5, Jan 25, 2009 IP
  3. Chuckun

    Chuckun Well-Known Member

    Messages:
    1,161
    Likes Received:
    60
    Best Answers:
    2
    Trophy Points:
    150
    #3
    use

    or if you want it to self-highlight when you click on it;

    Hope this is what you're looking for.
     
    Chuckun, Jan 25, 2009 IP
  4. Devilfish

    Devilfish Active Member

    Messages:
    396
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    70
    #4
    Thank you, I used <textarea>. :)
     
    Devilfish, Jan 25, 2009 IP
  5. Chuckun

    Chuckun Well-Known Member

    Messages:
    1,161
    Likes Received:
    60
    Best Answers:
    2
    Trophy Points:
    150
    #5
    You know where the rep button is ;) lol
     
    Chuckun, Jan 25, 2009 IP