HTML Code - adding html code to site

They have: 76 posts

Joined: May 1999

Hi,

I am trying to add a page on my site that offers banners for others to copy and put on their site. I also want to supply the correct code for them to just copy and paste onto their site.

Does anyone know how to show this html code on the webpage without a browser actually reading the code and converting it?

Thanks!

Chris

They have: 1,587 posts

Joined: Mar 1999

use < in place of <

heck never mind that, can't get this board not to recognize the code i'm putting in. just go to birminghamnet.com and check out the code for the "link to birmigham" page.

good luck

----------
Isn't it time you started making money with your site!
http://www.birminghamnet.com/cgi-bin/links/pages/WebmasterResources/MakingMoney

Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

Like fairhousing said, in place of a < use the escape:
&lt;

----------
Page Resource: http://www.pageresource.com
JavaScript City: http://www.javascriptcity.com

They have: 76 posts

Joined: May 1999

Thanks for the help guys! It works great.

By the way, it is great to see the e-mail notification feature working. It is a Big Plus! Smiling

They have: 88 posts

Joined: Jun 1999

place all the code you want to display between <xmp> and </xmp>

----------
e n d u r a d e z i n e
endura.co.nz

They have: 76 posts

Joined: May 1999

Jodys,

Is the <xmp> tag a better way to do is versus the alternate way stated earlier? Can all browsers read both versions?

I just set up my page using the other method and am wondering if it is worth changing it.

Thanks,
Chris

They have: 88 posts

Joined: Jun 1999

its works great for me.. all you need is the two tags. you don't need to put < and > where you want to show a tag... I am not sure if it works with all browsers youll have to look into it

an alernative woul be to use a text box..

<textarea name="none" cols="30" rows="4" wrap="OFF">
your HTML here
</textarea>

----------
e n d u r a d e z i n e
endura.co.nz

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.