Some characters are reserved in HTML and they have special meaning when used in HTML document. For example, you cannot use the greater than and less than signs or angle brackets within your HTML text because the browser will treat them differently and will treate them as html tags.
&entity name;
Or
&#entity number;
You can apply entities to any element and use any where within a HTML document.
Entity Name | Entity Number | Description | Output |
---|---|---|---|
" | " | Quotation Mark | " |
< | < | Less Than | < |
> | > | Greater Than | > |
' | ' | Apostrophe | ' |
& | & | Ampersand | & |
© | © | Copyright | © |
|   | Non breaking space | |
« | « | Angle quotation mark | « |
® | ® | Registered trademark | ® |
™ | ™ | Trademark | ™ |
° | ° | Degree | ° |
± | ± | Plus or minus | ± |
» | » | Angle quotation mark | » |
× | × | Multiplication | × |
÷ | ÷ | Division | ÷ |
… | &# ; | Horizontal ellipsis | … |
‹ | ‹ | Single left pointing | ‹ |
› | › | Single right pointing | › |
The Symbols in above table are common and important symbols used in HTML document.
Open notepad or any other text editor, follow the following points.
save file with name task.html or task.htm and then open it using any browser and see results.