HTML Entities-Currency Symbol

22 Sep

Reserved characters in HTML must be replaced with character entities.

Some characters are reserved in HTML.

It is not possible to use the less than (<) or greater than (>) signs in your text, because the browser will mix them with tags.





To display a less than sign we must write: &lt; or <

Non-breaking Space

A common character entity used in HTML is the non-breaking space (&nbsp;).

Browsers will always truncate spaces in HTML pages. If you write 10 spaces in your text, the browser will remove 9 of them, before displaying the page. To add spaces to your text, you can use the &nbsp; character entity.

For Test Online Result:

HTML Useful Character Entities

Note: Entity names are case sensitive!

Result Description Entity Name Entity Number
non-breaking space &nbsp;  
< less than &lt; <
> greater than &gt; >
& ampersand &amp; &
¢ cent &cent; ¢
£ pound &pound; £
¥ yen &yen; ¥
euro &euro;
§ section &sect; §
© copyright &copy; ©
® registered trademark &reg; ®
trademark &trade;
Leave a comment

Posted by on September 22, 2010 in ASP Dot Net C#


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: