PDA

View Full Version : HTML tutorial



Syngyl
01-06-2002, 05:48 PM
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

iain
01-06-2002, 05:53 PM
i think you can use the <code></code>
tags

Syngyl
01-06-2002, 06:15 PM
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.

Salem
01-07-2002, 02:25 PM
I think

<pre>
</pre>

Are for pre-formatted text

gnu-ehacks
01-07-2002, 08:17 PM
How about just use an editor, like DreamWeaver or FrontPage?

kooma
01-08-2002, 06:41 AM
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.

techie
01-08-2002, 06:43 AM
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!