Im looking for a way to void HTML code.

Discussion in 'HTML & Website Design' started by cscott5288, Sep 24, 2008.

  1. #1
    I am looking for a way to void html code so it just displays as text.

    How can i do this? It is for a wordpress blog post and i don't want to alter the code's appearance at all.
     
    cscott5288, Sep 24, 2008 IP
  2. cscott5288

    cscott5288 Active Member

    Messages:
    912
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #2
    does anyone have a suggestion for this?
     
    cscott5288, Sep 25, 2008 IP
  3. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #3
    What do you mean by "void" html content?

    If you're trying to encrypt your HTML, don't bother.
     
    Kerosene, Sep 25, 2008 IP
  4. cscott5288

    cscott5288 Active Member

    Messages:
    912
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #4
    I simply don't want the browser to read a portion of html code..i wan't the code to display as text. I don't know how much more simply i can explain it.
     
    cscott5288, Sep 25, 2008 IP
  5. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #5
    Kerosene, Sep 25, 2008 IP
    cscott5288 likes this.
  6. ecnetserv

    ecnetserv Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you don't want the browser to read a seciton of HTMl code you would "comment" it out.

    <!-- anything between these tags will not be displayed in a browser -->
     
    ecnetserv, Sep 25, 2008 IP
  7. cscott5288

    cscott5288 Active Member

    Messages:
    912
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #7
    hmm, that looks like a cool tool but for some reason it doesn't work for me..the browser still reads the text as html. also, if i try using the <code></code> insert, it doesn't work..any other suggestions?
     
    cscott5288, Sep 25, 2008 IP
  8. cscott5288

    cscott5288 Active Member

    Messages:
    912
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #8
    yes, but i want it to be displayed on the page.
     
    cscott5288, Sep 25, 2008 IP
  9. cscott5288

    cscott5288 Active Member

    Messages:
    912
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #9
    cscott5288, Sep 25, 2008 IP
  10. heyman12

    heyman12 Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You need to use symbols.

    If you used the < sign in the code itself, then it will not appear as is part of the syntax for the tags.

    http://www.yellowpipe.com/yis/tools/ASCII-HTML-Characters/index.php

    This has a table of all the codes you will need. Either place the HTML number (<) or the HTML name (&lt;) in the place of the < character (or any that is part of the html syntax) and it will appear as < on the browser rendered page. The & sign and the ; have to be included as it tells the browser it is about to display a special character.
     
    heyman12, Sep 25, 2008 IP