HTML-Entities

Entities are used to display reserved HTML character.

Most of HTML tag start use <, > sign.  if you use <, > sign in your page as text you need to use &lt; for < sign and &gt; for > sign.

You can also use entity number such as @#60; for &lt;


 Syntax

Attributes are provided with start tag of HTML element.

Description Entity Name Entity Number
  non-breaking space &nbsp; &#160;
< less than &lt; &#60;
> greater than &gt; &#62;
& ampersand &amp; &#38;
¢ cent &cent; &#162;
£ pound &pound; &#163;
¥ yen &yen; &#165;
euro &euro; &#8364;
© copyright &copy; &#169;
® registered trademark &reg; &#174;

A diacritical mark (Special character) is a "glyph" added to a  letter. Some diacritical marks, like acute ( ̀) and grave ( ́) are called accents.

 Diacritical marks can appear both above and below a letter, inside a letter, and between two letters.

Diacritical marks can be used in combination with alphanumeric characters, to produce a character that is not present in the character set (encoding) used in the page.

Following can be used to display Diacritical mark in HTML

 

Mark Character Construct Result
  ̀ a a&#768;
  ́ a a&#769;
̂ a a&#770;
  ̃ a a&#771;
  ̀ O O&#768;
  ́ O O&#769;
̂ O O&#770;
  ̃ O O&#771;

 


Sample Code

 

 

 






Attributes    Blocks    Color-Values    Colornames    Colors    Comments    CSS    Editors-for-writing-html    Elements    Entities    Formatting-in-HTML    Forms    Head    Headings    HTML-Reference    IFrames    Image    Javascript    Layouts    Links    Options for building websites    Paragraphs    pointers and questions    Symbol-for-Mathmatics    Symbol-for-Punctuations    Symbols    Tables    Whats-new-in-HTML5   

Advertisement

Topics