View Full Version : How do I make HTML codes show on my page?


jbabigurl
02-28-2005, 07:17 PM
Ok, I know I have to use :

&lt; = <
&gt; = >

but I dont know where exactly to put them. I'm trying to show an HTML code for my site visitors to place my Link Button on their sites. I have the code. It's:

<A href="http://freewebs.com/gothic-angelz" target="_blank"><IMG src="http://www.freewebz.com/gothic-angelz/linky1.bmp" border=0 A <></A>

but I need to know how to put the code on my site without my Link Button showing; just the code. Can someone PLEASE help me? Thanks....

flinchalot
02-28-2005, 07:21 PM
You just put your code between the < > I think.

You could also use a text box :

<textarea rows=3 cols=30>
Code goes here
</textarea>

lovely
02-28-2005, 07:22 PM
No problem!

Go here (http://www.lissaexplains.com/fun2.shtml) and find all the symbols you need (< and > and /, I think that's it) and replace the symbol with the code you need for each one. *hopes that makes sense* Then just put it straight into your webpage and it should appear like you want it to.

pb&j
02-28-2005, 08:46 PM
&lt;a href="http://freewebs.com/gothic-angelz" target="_blank"&gt;
&lt;img src="http://www.freewebz.com/gothic-angelz/linky1.bmp" border="0"&gt;
&lt;/a&gt;

and just a quick note... it is best if you supply a GIF or JPG type image instead of BMP. the BMP type is very large to download or display.

lovely
02-28-2005, 09:13 PM
Hey, pb&j, I've got a quick question. Why can you use either &lt; and &gt; or &amp;#60; and &amp;#62; for < and >?

pb&j
02-28-2005, 10:25 PM
computers have different levels of thinking (kinda like knowing different languages).

lovely
03-01-2005, 01:31 AM
*nods* Okay, I guess that makes sense. ^_^ Thank you.

DUANE
03-01-2005, 11:12 PM
You can also use the "xmp" tags:

<xmp><a href="http://freewebs.com/gothic-angelz" target="_blank"> <img src="http://www.freewebz.com/gothic-angelz/linky1.bmp" border="0"> </a></xmp>

VortexWebMaster
03-07-2005, 09:07 PM
I have a question, is the <xmp> tag the same as the <pre> tag?
Thanks

DUANE
03-07-2005, 09:23 PM
I don't believe it is the same.

VortexWebMaster
03-08-2005, 07:33 PM
another thing to remember is that you shouldn't use regular quotes. Say you had a link code in your site and this was the code:
<a href="url">Click Here</a>
You would want to do it like this:
&lt;a href=&quot;url&quot;&gt;Click Here&lt;/a&gt;

I think slashes(/) are ok, not sure, I just know that on the last html assignment I did in my class I had to correct a page generated from netscape to make it valid with html transitional standars, and I had to replace the quotes("") with &quot;. But I think its easier to use the <xmp></xmp> because the &lt;&gt; &quot; is a pain to type in if you have alot of code to display. I have yet to try to use a textarea though, because my site background is black and the white textarea looks bad.
Lol, well that was long and drawn out, sorry for rambling.

maco
03-09-2005, 12:35 AM
You can also use the "xmp" tags:

<xmp><a href="http://freewebs.com/gothic-angelz" target="_blank"> <img src="http://www.freewebz.com/gothic-angelz/linky1.bmp" border="0"> </a></xmp>
that's what I always use for it...