Search Engine Optimization > Webmaster World > How do you post HTML to a page?
How do you post HTML to a page?
Posted by Kkiely on February 21st, 2004

how do you show HTML code on a page without the page executing the code. I want
to write the cut and paste code to my banners onto my page.

<a href="http://www.homepokergames.com" target="new"><img
src="http://www.homepokergames.com/bannerbig1.gif"></a>

Posted by GreyWyvern on February 21st, 2004

On 21 Feb 2004 00:55:13 GMT, Kkiely <kkiely@aol.comnojunk> wrote:

Just substitute &lt; for all the < and &gt; for all the > And wrap it all
in <pre> tags.

<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;The page Title&lt;/title&gt;

...
</pre>

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- http://www.greywyvern.com - ORCA - Camouflaged PHP Web Scripts.

Posted by DevLance.com on February 21st, 2004

You just need to change the <'s and >'s into with &lt; and &rt; replacing
with those will make the script appear in your HTML page as you desire.

www.devlance.com



"Kkiely" <kkiely@aol.comnojunk> wrote in message
news:20040220195513.20326.00000102@mb-m04.aol.com...


Posted by Gazza on February 21st, 2004

In article <20040220195513.20326.00000102@mb-m04.aol.com>,
kkiely@aol.comnojunk says...
Use &lt; and &gt; (less than (<) and greater than (>))

e.g.
-----------
<p>To add my banner to your site use: <br>

<code>
&lt;a href="http://www.homepokergames.com" target="new"&gt;
&lt;img src="http://www.homepokergames.com/bannerbig1.gif"&gt;
&lt;/a&gt;</code><br>

and you too could be popular like me!</p>
-----------

IIRC, most browsers will only need the &lt;, leaving > in won't hurt,
but it's safer to use both character encodings.

--
Gazza
http://www.rossmore.org/
http://www.garyjones.co.uk/
"Some people don't listen, they simply wait to speak"

Posted by Gazza on February 21st, 2004

In article <opr3o33kluv0in9v@news.ican.net>,
SP_bhuisman@greywyvern.com_AM says...

With <pre> deprecated under HTML4.01
<http://www.w3.org/TR/html401/struct/text.html#h-9.3.4>
shouldn't <code> be used?
http://www.w3.org/TR/html401/struct/text.html#edef-CODE

--
Gazza
http://www.rossmore.org/
http://www.garyjones.co.uk/
"Some people don't listen, they simply wait to speak"

Posted by GreyWyvern on February 21st, 2004

On Sat, 21 Feb 2004 01:35:08 -0000, Gazza <gary@garyjones.co.uk.invalid>
wrote:

Heh, yesh. Quite right. I always seem to forget about that one

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- http://www.greywyvern.com - ORCA - Camouflaged PHP Web Scripts.

Posted by Alan D-W on February 21st, 2004


"DevLance.com" <admin@devlance.com> wrote in message
news:ihyZb.1105$DV3.48221@news.uswest.net...
&rt;??
(They don't refer to left and right! It should be &gt
Alan




Posted by Charles Sweeney on February 21st, 2004

"GreyWyvern" <SP_bhuisman@greywyvern.com_AM> wrote in message
newspr3o7e8w4v0in9v@news.ican.net...

Yep, until it too falls out of fashion and gets "deprecated".
--
Charles Sweeney
www.CharlesSweeney.com



Posted by Safalra on February 21st, 2004

"Alan D-W" <alan@somewhere.info> wrote in message news:<40376f37$0$10337$cc9e4d1f@news-text.dial.pipex.com>...
Oh course you don't need to escape > at all, it's just for symmetry.

--- Safalra (Stephen Morley) ---
http://www.safalra.com/hypertext

Posted by GreyWyvern on February 21st, 2004

On Sat, 21 Feb 2004 19:53:04 -0000, Charles Sweeney
<me@charlessweeney.com> wrote:

Even in the Real World of ethics, politics and science, standards change.
Internet protocol is no different. Get over it Charles.

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- http://www.greywyvern.com - ORCA - Camouflaged PHP Web Scripts.

Funbolt.com - Entertainment portal, wallpapers, sexy celebs