Jump to content

Recommended Posts

Posted

HTML 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 actually display reserved characters, we must use character entities in the HTML source code.

 

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

 

Tip: The advantage of using an entity name, instead of a number, is that the name is easier to remember. However, the disadvantage is that browsers may not support all entity names (the support for entity numbers is very good).

Non-breaking Space

 

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

 

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   character entity.

 

HTML Useful Character Entities

 

Result 	Description 	Entity Name 	Entity Number
  	non-breaking space 	  	&#160;
< 	less than 	< 	&#60;
> 	greater than 	> 	&#62;
& 	ampersand 	& 	&#38;
¢ 	cent 	¢ 	&#162;
£ 	pound 	£ 	&#163;
¥ 	yen 	¥ 	&#165;
€ 	euro 	€ 	&#8364;
§ 	section 	§ 	&#167;
© 	copyright 	© 	&#169;
® 	registered trademark 	® 	&#174;
™ 	trademark 	™ 	&#8482;

 

Credits Olympus,Internet,ME.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock