Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to include html file in html page?
Posted
Updated 30-Mar-15 10:47am
v2

You have to use HTML encoding: it changes
<a href="...">text</a>
Into
&lt;a href="..."&gt;text&lt;/a&gt;
Which is automaticaly converted back into the readable form by the browser.

Exactly how you do that will depend on what you are writing your website in! :laugh:
But Google should be able to help: just try "HTML Encode TheLanguageYouAreWorkignIn"
 
Share this answer
 
In addition to OriginalGriff's answer about encoding, have a look at the pre element[^] in HTML, which allows you to write code as it is. So, for example (like this example on CodeProject), you can write this

HTML
<pre>
   <p>This is a paragraph.</p>
</pre>


It will be rendered as,

HTML
<p>This is a paragraph.</p>


It will maintain the tags, and they won't be rendered by the browser.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900