View Full Version : showing HTML


Moonlit
07-09-2004, 05:35 AM
Is this wrong for showing HTML?


<p>&lt;<a href="http://Blah.com" target="_blank">
<img src="Blah.jpg" width="2" height="2" alt="Blah"></a>&gt;

pb&j
07-09-2004, 05:38 AM
&lt; will appear as < on your webpage.
&gt; will appear as > on your webpage.

your snippit of coding will appear like a linked image with < > around it.

perhaps you are trying to do this....

&lt;a href="http://Blah.com" target="_blank"&gt;
&lt;img src="Blah.jpg" width="2" height="2" alt="Blah"&gt;&lt;/a&gt;

or this...
<xmp>
<a href="http://Blah.com" target="_blank"><img src="Blah.jpg" width="2" height="2" alt="Blah"></a>
</xmp>

Moonlit
07-09-2004, 05:45 AM
Okay...so on the first one you posted...what part of that makes it so I can see the HTML on the page?

pb&j
07-09-2004, 05:54 AM
each time you want < to appear on your webpage, you have to type in the &lt; code.

each time you want > to appear on your webpage, you have to type in the &gt; code.