Thread: HTML tutorial

  1. #1
    Syngyl
    Guest

    HTML tutorial

    Hi again, I have a rather embarrassing problem right now.

    I'm a part-time web developer and I'm not bad at it but I have a problem. I've just been asked to write a tutorial.
    OKAY! NO PROBLEM!
    Does anyone know a tag that will let the code show in browser and not be read by it?
    I can't find one in any of my reference books.

    Syngyl

  2. #2
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    i think you can use the <code></code>
    tags
    Monday - what a way to spend a seventh of your life

  3. #3
    Syngyl
    Guest
    I was prepared to kick myself so hard then... fortunately I was sensible to try it first.

    Alas... It's such a simple thing you don't really think it could be such a trying problem.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    I think

    <pre>
    </pre>

    Are for pre-formatted text

  5. #5
    How about just use an editor, like DreamWeaver or FrontPage?
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  6. #6
    Registered User
    Join Date
    Aug 2001
    Posts
    129
    As Salem said, <pre> is what you're looking for...

    Also remember to use

    &lt; instead of <
    &gt; instead of >
    &amp; instead of &
    &quot; instead of "

    not to mess up the output.

  7. #7
    Registered User
    Join Date
    Sep 2001
    Posts
    8

    Lightbulb

    I can answer that question since I know a lot of HTML and have two websites. To be able to display the tags you must replace the < and > with &lt; and &gt;. Like for example:

    &lt;HTML&gt;

    and it will not be read by the browser! Now you know!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please Help - C code creates dynamic HTML
    By Christie2008 in forum C Programming
    Replies: 19
    Last Post: 04-02-2008, 07:36 PM
  2. My new website
    By joeprogrammer in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-17-2006, 07:38 PM
  3. Please review my first tutorial
    By Stan100 in forum C++ Programming
    Replies: 13
    Last Post: 06-22-2005, 03:06 PM
  4. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  5. My DirectInput tutorial....
    By jdinger in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-18-2002, 11:32 PM