Closed Thread
Results 1 to 5 of 5

Thread: Special tags to display html code on the page

  1. #1
    Bodyag is offline Newbie
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    3
    Rep Power
    0

    Special tags to display html code on the page

    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?

    Thank you in advance.

    Regards

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    You have to use the & things, to display something like this:

    Code:
    <head>
    <title>Untitled Document</title>
    </head>
    
    <body>
    </body>
    </html>
    You would have to do something like this:
    Code:
    <p>&lt;head&gt;<br>
      &lt;title&gt;Untitled Document&lt;/title&gt;<br>
      &lt;/head&gt;</p>
    <p>&lt;body&gt;<br>
      &lt;/body&gt;<br>
      &lt;/html&gt;<br>
    </p>
    Pretty much this should get you started
    Code:
    &lt; = <
    &gt; = >
    &quot; = "

  4. #3
    Deathcry's Avatar
    Deathcry is offline Learning Programmer
    Join Date
    Feb 2007
    Posts
    69
    Rep Power
    0
    <pre>is what i use</pre>
    the code is with you

  5. #4
    Chan is offline Programming Professional
    Join Date
    Jun 2006
    Posts
    205
    Rep Power
    0
    <pre> is easier but is it recommended?

  6. #5
    xtraze is offline Programming God
    Join Date
    Dec 2006
    Location
    Sri lanka
    Posts
    911
    Rep Power
    0
    I prefer this if I really wanted to use HTML tags inside HTML.
    <p>&lt;head&gt;<br>
    &lt;title&gt;Untitled Document&lt;/title&gt;<br>
    &lt;/head&gt;</p>
    <p>&lt;body&gt;<br>
    &lt;/body&gt;<br>
    &lt;/html&gt;<br>
    </p>
    Use the Find and Replace tool in Notepad and you have your tag ready.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. clear html tags and after the tags
    By lol33d in forum PHP Development
    Replies: 1
    Last Post: 08-29-2011, 11:58 PM
  2. Is this code supposed to appear in the HTML page info?
    By eindoofus in forum ASP, ASP.NET and Coldfusion
    Replies: 1
    Last Post: 11-07-2010, 05:08 PM
  3. Replies: 1
    Last Post: 06-02-2010, 05:28 PM
  4. Replies: 10
    Last Post: 10-27-2009, 05:29 AM
  5. HTML code to refresh page every X seconds...?
    By jashsayani in forum HTML Programming
    Replies: 13
    Last Post: 11-19-2008, 08:57 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts