PDA

View Full Version : How do I do code snipplets in HTML?



Archbob
April 5th, 2003, 18:14
Umm, you know how people have part of their page yellow or grey or whatever and then have php or html code on display. How do I do that, if I do that, it does runs the HTML or php. Someone please help.

dawizman
April 6th, 2003, 01:52
use this tag for <

&lt;
and this tag for the >

&gt;

Canuckkev
April 6th, 2003, 03:19
Wasn't there a tag called <text>? And inbetween <text> and </text>, everything appeared as typed?

Archbob
April 6th, 2003, 03:51
Thanks.

Canuckkev
April 6th, 2003, 13:00
Hmm....I thought there used to be a tag that did that...but I don't seem to be able to find what it is...I guess you'll have to stick with the &lt; and &gt;.

Or you can always use <textareas>

dawizman
April 7th, 2003, 16:39
He could use text areas, but &lt; and &gt; look better.

ducktape
April 7th, 2003, 22:30
wasnt there somethinglike <xmp> </xmp> or something

dawizman
April 8th, 2003, 01:01
Yeah, but it has removed in HTML 3.2