Special tags to display html code on the page

Discussion in 'HTML & Website Design' started by freetesthost, Jul 10, 2007.

  1. #1
    Hi all,
    If anyone knows what tags should be used to display HTML tags with the text we write - in another word, the tags that can display other HTML tags in a browser?

    Thanks
     
    freetesthost, Jul 10, 2007 IP
  2. x-noise

    x-noise Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    there is only an option: use &lt; for < and &gt; for >
     
    x-noise, Jul 10, 2007 IP
  3. grimsqueaker

    grimsqueaker Peon

    Messages:
    551
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try either:

    <pre></pre>

    or

    <textarea></textarea>
     
    grimsqueaker, Jul 10, 2007 IP
  4. x-noise

    x-noise Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <pre></pre> does not show you the html tags. and textarea has other purposes.
     
    x-noise, Jul 10, 2007 IP
  5. Amsterdam

    Amsterdam Well-Known Member

    Messages:
    361
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #5
    Amsterdam, Jul 10, 2007 IP
  6. grimsqueaker

    grimsqueaker Peon

    Messages:
    551
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #6
    <pre></pre> would show the html tags - I think your way is better actually, but I'm just giving him more options. :)
     
    grimsqueaker, Jul 10, 2007 IP
  7. haruko764

    haruko764 Peon

    Messages:
    25
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    http://regexlib.com/

    Library of regular expressions (HTML equivalents of symbols).
     
    haruko764, Jul 10, 2007 IP
  8. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #8
    They're called character entities, not regular expressions.
     
    Dan Schulz, Jul 10, 2007 IP