Html:- Some html character entities number

<!DOCTYPE html> 
<html> 

<head> 
 <meta name="viewport" content="width=device-width, initial-scale=1"> 
 <title>HTML Character Entities</title> 
</head> 

<body> 

 <pre> <!--Already we seen about pre tag--> 
    Space(&#160;) 
    Less than(&#60;) 
    Greater than(&#62;) 
    ampersand (&#38;) 
    cent (&#162;) 
    pound (&#163;) 
    yen (&#165;) 
    euro (&#8364;) 
    copyright (&#169;) 
    registered trademark (&#174;) 
    Trademark (&#8482;) 
    Leftwards Arrow (&#8592;) 
    Upwards Arrow(&#8593;) 
    Rightwards Arrow(&#8594;) 
    Downwards Arrow(&#8595;) 
    Black Spads Suit(&#9824;)  
    Black Club Suit(&#9827;) 
    Black Heart Suit(&#9829;) 
    Black Diamond Suit(&#9830;) 
 </pre> 

</body> 

</html> .          Output:-    
    Space( ) 
    Less than(<) 
    Greater than(>) 
    ampersand (&) 
    cent (¢) 
    pound (£) 
    yen (¥) 
    euro (€) 
    copyright (©) 
    registered trademark (®) 
    Trademark (™) 
    Leftwards Arrow (←) 
    Upwards Arrow(↑) 
    Rightwards Arrow(→) 
    Downwards Arrow(↓) 
    Black Spads Suit(♠)  
    Black Club Suit(♣) 
    Black Heart Suit(♥) 
    Black Diamond Suit(♦) 
 Definition:-

Html Entities


Uses of Entities
  • Some characters are reserved in HTML. (For example < , > and etc)
  • Character entities are used to display reserved characters in HTML.
  • Advantage : An entity name is easy to remember.
  • Disadvantage: Browsers may not support all entity names, but it support numbers.
Html:- Some html character entities number Html:- Some html character entities number Reviewed by Network security on April 29, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.