Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display HTML KeyWords

Status
Not open for further replies.

Brig

MIS
Mar 14, 2000
5
US
How do I display HTML keywords to show examples.
For instance I want to say, This is the proper way to write a submit button. "code for submit button goes here".
But everytime I try, the browser traslates my "example code to a real submit button so no one ever sees the code.
I know about "<" and ">" but is there a easier way to tell the browser...don't translate this next line?
 
use the <pre> text goes here </pre> tag it will display the text inbetween the tags as you format it.
 
Sorry WebGodiva I already tried that
When I do this...
<PRE>
<Example code>
<More example Code>
</HTML>
</PRE>
That little </HTML> gets translated. And the document ends before I want it too.
I can't use &amp;lt; or &amp;gt;

any other suggestions?

 
try adding a blank space immediately following the opening bracket of any of your html code and just clarify that for the reader. I tested it on my system and it worked fine.

<PRE>
This is the preformated < b>text< /b>
there should be &amp;(blank space added here) amp; some text here
-- < TABLE BORDER=0 CELLSPACING=0 CELLPADDING=5 WIDTH=211>
< TR>
< TD>
< P ALIGN=JUSTIFY>&amp; (blank space added here) nbsp;&amp;nbsp;<BR><BR><BR> &amp;nbsp;</P>
< /TD>
< /TR>
< /TABLE></PRE>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top