HTML Entities

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 &copy;</h1>
                                <h1>Entity Symbol &reg;</h1>
                                <h1>Entity Symbol &trade;</h1>
                                <h1>Entity Symbol &lt;</h1>
                                <h1>Entity Symbol &gt;</h1>
                                <h1>Entity Symbol &laquo;</h1>
                                <h1>Entity Symbol &raquo;</h1>
                                <h1>Entity Symbol &#8224;</h1>
                                <h1>Entity Symbol &#8282;</h1>
                                <h1>Entity Symbol &#65;</h1>
                                <h1>Entity Symbol &#169;</h1>
                                <h1>Entity Symbol &#174;</h1>
    </body>

</html>

No comments:

Post a Comment