Thread: Need help!
View Single Post
07-20-2007, 04:01 PM
#2
Imac is offline Imac
Status: Member
Join date: Feb 2007
Location: Earth....
Expertise:
Software:
 
Posts: 328
iTrader: 8 / 100%
 

Imac is on a distinguished road

Send a message via ICQ to Imac Send a message via MSN to Imac

  Old

You need to escape the < and > character entities using &lt; and &gt;. For example, you might have something like this:

<p>
To create a paragraph, surround your paragraph with &lt;p&gt; and &lt;/p&gt;.
</p>

This would then output this when viewed in a browser: Here is a example


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
#container {
width:600px;
height:200px;
border:1px solid #000;
font-family:verdana,arial,sans-serif;
font-size:14px;
overflow:auto;
}
</style>

</head>
<body>

<div id="container">

<pre>

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;

&lt;style type="text/css"&gt;

&lt;/style&gt;

&lt;script type="text/javascript"&gt;

&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;

&lt;div&gt;&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;

</pre>

</div>

</body>
</html>