SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Code

  1. #1
    SitePoint Guru
    Join Date
    Dec 1999
    Location
    Southampton, Hants, UK
    Posts
    672
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do you insert HTML code into a website without the Browser interpreting i, so I can have code show as text on the page?

    ------------------
    Visit http://www.worldofwrestling.co.uk

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    There is a <CODE></CODE> tag but not all browsers support it. Also newer browsers interpret tags within <PRE></PRE> tags so that is out. I use character entities for the <> symbols. For "<" you would use "<" and for ">" you would use ">"



    ------------------
    Wayne Luke

    The Majormud Encyclopedia - www.bloodquest2.com
    Come Play one of the hottest games on the net.


  3. #3
    SitePoint Zealot
    Join Date
    Nov 1999
    Location
    Manhattan!
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know if it will show up in the forum but try useing the following codes:

    < = &*lt; (without the *)
    > = &*gt; (without the *)
    & = &*amp; (without the *)
    (space) = &*nbsp; (without the star)

    Using these codes, I can do <font faca='verdana' size='2'>TEXT GOES HERE</font> then it should look right.

    When you inclose your HTML tags in the above codes it will be interpreted as text, not as a tag.

    Christian

    [This message has been edited by ChrRmr (edited January 19, 2000).]

  4. #4
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Sorry.. I didn't think the forum would interpret the character codes since HTML is off. I was in a hurry and didn't look at my message afterwords. Thanks ChrRmr for clarifying what I wanted to say.

    ------------------
    Wayne Luke

    The Majormud Encyclopedia - www.bloodquest2.com
    Come Play one of the hottest games on the net.



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
  •