<!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( )
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(♦)
</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
Reviewed by Network security
on
April 29, 2019
Rating:
No comments: