View Full Version : using pre tag

12-24-2009, 06:17 AM
when i want to display code in a page that should not be executed i write that html code inside

example 1

float: left;
width: 900px;
height: auto;


this is working fine, however when i write the following code, it is not appearing as code, instead it is being executed.

example 2

<div id="topmenu">
<li><a href="#">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact Us</a></li>

the list in this code is being executed, however i want the list code to appear like a code as in example 1

please advice.


12-24-2009, 07:02 AM
replace < with &lt;

replace > with &gt;

<ul> should be written as



12-24-2009, 07:20 AM
thanks for letting me know

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum