- HTML Tutorial
- HTML - Home
- HTML - Introduction
- HTML - Editors
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Headings
- HTML - Paragraphs
- HTML - Fonts
- HTML - Blocks
- HTML - Style Sheet
- HTML - Formatting
- HTML - Quotations
- HTML - Comments
- HTML - Colors
- HTML - Images
- HTML - Image Map
- HTML - Iframes
- HTML - Phrase Elements
- HTML - Meta Tags
- HTML - Classes
- HTML - IDs
- HTML - Backgrounds
- HTML Tables
- HTML - Tables
- HTML - Headers & Caption
- HTML - Table Styling
- HTML - Table Colgroup
- HTML - Nested Tables
- HTML Lists
- HTML - Lists
- HTML - Unordered Lists
- HTML - Ordered Lists
- HTML - Definition Lists
- HTML Links
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML Color Names & Values
- HTML - Color Names
- HTML - RGB
- HTML - HEX
- HTML - HSL
- HTML Forms
- HTML - Forms
- HTML - Form Attributes
- HTML - Form Control
- HTML - Input Attributes
- HTML Media
- HTML - Video Element
- HTML - Audio Element
- HTML - Embed Multimedia
- HTML Header
- HTML - Head Element
- HTML - Adding Favicon
- HTML - Javascript
- HTML Layouts
- HTML - Layouts
- HTML - Layout Elements
- HTML - Layout using CSS
- HTML - Responsiveness
- HTML - Symbols
- HTML - Emojis
- HTML - Style Guide
- HTML Graphics
- HTML - SVG
- HTML - Canvas
- HTML APIs
- HTML - Geolocation API
- HTML - Drag & Drop API
- HTML - Web Workers API
- HTML - WebSocket
- HTML - Web Storage
- HTML - Server Sent Events
- HTML Miscellaneous
- HTML - MathML
- HTML - Microdata
- HTML - IndexedDB
- HTML - Web Messaging
- HTML - Web CORS
- HTML - Web RTC
- HTML Demo
- HTML - Audio Player
- HTML - Video Player
- HTML - Web slide Desk
- HTML Tools
- HTML - Velocity Draw
- HTML - QR Code
- HTML - Modernizer
- HTML - Validation
- HTML - Color Picker
- HTML References
- HTML - Cheat Sheet
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
- HTML Resources
- HTML - Quick Guide
- HTML - Useful Resources
- HTML - Color Code Builder
- HTML - Online Editor
HTML - Symbols
HTML symbols allow us to embed symbols that are not presents in keyboard using special codes called entities. Entities start with ampersand(`&`) and end with semi column(`;`).
What are HTML Symbols?
In HTML, there are some characters that holds a special meaning and are difficult to type directly by the keyboard. They are often termed as Symbols. For example, other than dollar symbol we can’t find any currency symbols like Rupees and Euro in normal keyboards. However, HTML provide other ways to insert these symbols into webpages. In this tutorial, we are going to learn how to use special characters or symbols in HTML document.
How to insert Symbols in HTML document?
To insert symbols into an HTML document, we use entities. If no entity name exists then we are allowed to use entity number which is a decimal or a hexadecimal reference. An HTML entity is a piece of text that begins with an ampersand (&) and ends with a semicolon (;). They are used to represent characters and symbols that are either reserved in HTML, or not directly available in keyboards for use on the web page.
Example
The following example shows how to insert symbols into an HTML document.
<!DOCTYPE html> <html> <head> <title> Symbols in HTML </title> </head> <body> <h1>Common HTML Symbols</h1> <p>Registered trademark Symbol : ® </p> <p>Trademark Symbol : ™ </p> <p>Copyright Symbol : © </p> <p>Left Arrow Symbol : ← </p> </body> </html>
Currency Symbols in HTML
The following table shows currency symbols and their corresponding entities:
Symbols | Description | Entity Name | Entity Number |
---|---|---|---|
₹ | Indian Rupee Symbol | NA | ₹ |
€ | Euro Symbol | € | € |
₿ | Bitcoin Symbol | NA | ₿ |
¥ | Japanese Yen Symbol | ¥ | ¥ |
₽ | Ruble Symbol | NA | ₽ |
Example
In the following example, we are going to display a few currency symbols using their corresponding entities:
<!DOCTYPE html> <html> <head> <title> Symbols in HTML </title> </head> <body> <h1>Common Currency Symbols</h1> <p>Indian Rupee Symbol : ₹ </p> <p>Euro Symbol : € </p> <p>Bitcoin Symbol : ₿ </p> <p>Japanese Yen Symbol : ¥ </p> </body> </html>
Mathematical Symbols in HTML
The following table shows Mathematical symbols and their corresponding entities:
Symbols | Description | Entity Name | Entity Number |
---|---|---|---|
∀ | For all symbol | ∀ | ∀ |
∅ | Empty sets symbol | ∅ | ∅ |
∇ | Nabla symbol | ∇ | ∇ |
∑ | Summation symbol | ∑ | ∑ |
∈ | Element of | ∈ | ∈ |
Example
In this example, we will demonstrate how to insert mathematical symbols into an HTML document.
<!DOCTYPE html> <html> <head> <title> Symbols in HTML </title> </head> <body> <h1>Common Mathematical Symbols</h1> <p>For all symbol : ∀ </p> <p>Nabla symbol : ∇ </p> <p>Empty sets symbol : ∅ </p> <p>Summation symbol : ∑ </p> </body> </html>
To learn all the symbols in HTML, you can visit our entities tutorial.