
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
HTML Entities
In HTML, some characters are reserved for syntax declaration. Using these characters in text might cause unwanted errors. 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 try to draw a meaning related to HTML tag.
NOTE − Entity names are case sensitive so should be used as they are.
Syntax
Following is the syntax:
&entity_name
Or
&#entity_number
Following are some of the useful entities:
Result | Description | Entity Name | Entity Number |
---|---|---|---|
< | less than | < | < |
> | greater than | > | > |
& | ampersand | & | & |
" | double quotation mark | " | " |
' | single quotation mark (apostrophe) | ' | $ |
£ | Pound | £ | £ |
¥ | Yen | ¥ | ¥ |
€ | Euro | € | € |
© | Copyright | © | © |
® | registered trademark | ® | ® |
- Related Articles
- Unescape HTML entities in JavaScript?
- What are Character Entities in HTML5
- Types of DBMS Entities and their examples
- HTML DOM HTML Object
- Difference between HTML and HTML 5
- Parse HTML with PHP's HTML DOMDocument
- HTML Tag
- HTML Tag
- HTML Attributes
- HTML Editors
- HTML Tag
- HTML Tag
- HTML Comments
- HTML Tag
- HTML Geolocation

Advertisements