Read with Formatting | Join TechSpot! (it's free) | Bookmark / Share this



HTML - need help with coding...

Spike
03-01-2005, 01:50 PM
I'm trying to display a few lines of code on a html page, for an example, I'm trying to say something along the lines of...

To display the banner above, all you have o do is enter the line...

<script="javascript" ......></script>

...into the head tags of your page , and ......

but each time I do this the page acctually runs that line of code, whereas I want it to remain text.

I've tried wrapping the line in a <pre> tag, but it doesn't seem to work. probably because it's wrong. lol

Can anybody tell me how to do this?

Spike
03-01-2005, 02:28 PM
Nevermind (again!) crisis averted.

I was editing files on the server, and the editor was changing my htmlentities to the acctual symbols when I saved.

After editing in notepad, and uploading, the page displayed how I told it to. :)

Ad
03-01-2005, 02:28 PM

RealBlackStuff
03-01-2005, 06:36 PM
theyarecomingtotakemeawayhahahohohihi
sad.... :haha:

Spike
03-01-2005, 08:40 PM
LMAO!!!!

I really don't have any idea why I keep doing this. I post a question, and then suddenly I find the answer. I don't post the question, and I haven't got a clue.

It's getting pretty bizzare now. That's the second time in a few days.

 Top Technology News

 Software Downloads

Copyright © 1998-2008 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.