Entities are special kind of symbols may or may not exist in
keyboard we can get these entities in two types
1. Named Entities:
by calling name of entity we will get the
symbols
Syntax:
$entity name;
2. Numerical Entities:
Every symbol as its own ASCII number by calling the number we can get symbol
Syntax:
&#number;
Example of calling Entities:
<html>
<head>
<title>
First Page</title>
</head>
<body>
<h1>Entity
Symbol ©</h1>
<h1>Entity
Symbol ®</h1>
<h1>Entity
Symbol ™</h1>
<h1>Entity
Symbol <</h1>
<h1>Entity
Symbol ></h1>
<h1>Entity
Symbol «</h1>
<h1>Entity
Symbol »</h1>
<h1>Entity
Symbol †</h1>
<h1>Entity
Symbol ⁚</h1>
<h1>Entity
Symbol A</h1>
<h1>Entity
Symbol ©</h1>
<h1>Entity
Symbol ®</h1>
</body>
</html>
No comments:
Post a Comment