How can I put HTML in a page without the outcome showing?

Discussion in 'HTML & Website Design' started by Plutonic, Jun 30, 2007.

Thread Status:
Not open for further replies.
  1. #1
    I want to put an image code in my site where people can copy the html code and put it in their site, but it keeps just showing the image, how can I make it show the code not the outcome?
     
    Plutonic, Jun 30, 2007 IP
  2. unique-i

    unique-i Active Member

    Messages:
    188
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #2
    You can use Tag

    <textarea>The code for the image which people can copy</textarea>

    hope it helps...
     
    unique-i, Jun 30, 2007 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    or you could replace all the < with the code &lt;

    &lt;img src="whatever.png" />
     
    deathshadow, Jun 30, 2007 IP
  4. blogosquare

    blogosquare Peon

    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    please check out this tutorial :

    blogosquare.com/2007/04/21/the-proper-way-to-write-code-in-your-blog-posts/
     
    blogosquare, Jun 30, 2007 IP
  5. blogosquare

    blogosquare Peon

    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    oh I forgot to tell about the solution in brief. Your blog will automatically execute any html tags so you should be converting them into what is know as character entities so that they get only displayed and not executed. I think the tutorial will give you all the details required.. do tell whether you need further clarification though.
     
    blogosquare, Jun 30, 2007 IP
  6. Brennan

    Brennan Notable Member

    Messages:
    3,318
    Likes Received:
    198
    Best Answers:
    0
    Trophy Points:
    240
    #6
    Thanks so much guys for making the thread and answering the question because I was actually wandering how to do this a few days ago because I wrote a HTML guide and then when I uploaded it, it used all the codes and didn't look write.
     
    Brennan, Jun 30, 2007 IP
  7. Plutonic

    Plutonic Peon

    Messages:
    2,964
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks, but I didn't use the ideas, I ended up just making the code in a Photoshop .jpg and putting the pic there.
     
    Plutonic, Jun 30, 2007 IP
  8. stickysnail

    stickysnail Active Member

    Messages:
    335
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #8
    Haha! All that for nothing. I was going to say the same as Hyde!
     
    stickysnail, Jul 1, 2007 IP
Thread Status:
Not open for further replies.