View Full Version : How can I show my html without using a textbox?


Michele
02-15-2003, 08:52 PM
HOw can i show html codes for my webbie without usuing a textbox???

I think the code might have an "x" in it.

Alcy
02-15-2003, 09:46 PM
<xmp> code here </xmp>

Michele
02-15-2003, 09:48 PM
Thank you

bejayel
02-16-2003, 01:53 AM
you can use <xmp>...</xmp> but then you have big spaces to worry about. i think you should do what lissa did here and use these entities. (NOTE: take the ' out of the entity)

&'lt = &lt
&"gt = &gt

this is how i made my tutorial. and i am pretty sure it is what lissa uses as well.

Michele
02-16-2003, 01:52 PM
whats an "enitity"

MaGiCSuN
02-16-2003, 02:21 PM
She means you have to take out the ' out of the codes she gave you because if she would type the codes in the right way they will change to the 'code viewer' they will work. And because she wants to show you the code to do it with she has to put in something to view the code.

I think she means that the entity is the code before the = > (the code you have to use instead of > )

Love,
Mirna

Michele
02-16-2003, 02:46 PM
okay, i see thanks again

bejayel
02-16-2003, 11:06 PM
entities are really nice to use because you can do a whole bunch of things with them. i am currently adding an entity page to my html tutorial page. (i am not adding a link because it would be rude to advertise my site here.) but you can have a hwole bunch of characters which are not on the keyboard without using the alt + key combonations.

entities are started with a & then finished with a letter/number combonation and end up like i have shown above.

Dude128
02-17-2003, 02:30 AM
of course, you will want to use the correct code, which would include a semicolon (;)

&lt;
&gt;

some browsers might display the characters properly, others will not. so its better to use the correct code, so that you don't end up with &amp;lt all over the page instead of the <

bejayel
02-17-2003, 03:42 AM
hahaha i was just coming in to correct myself. thanks for doing so. that iand i just remembered the entity for the amperstand o i could write all of the thing the correct way. I just had to go and fix my listing, and my actual site because of this semicolan thing it took like 4 hours !!!!!! :( anywho if you would like a complete listing of all (or at least most) of the entities go to No advertising