Sunday, April 6, 2008

HTML - displaying code in websites and blogs using character entities

To display code in a website or blog, special character such as "<" and for ">" need to be replaced by characters entities. For example <HTML> is display by typing in &lt;HTML&gt;. Here is a list of some of the common character entities used in blogs:

space&nbsp;
<&lt;
>&gt;
&&amp;
¢&cent;
£&pound;
¥&yen;
&euro;
©&copyright;
®&reg;
§&sect;
×&times;
÷&divide;