HTML entities are special codes that are used to represent characters that cannot be typed directly into HTML code. For example, the less than (<) and greater than (>) signs are reserved characters in HTML, so you cannot use them in your text without them being interpreted as tags. To display these characters, you need to use their HTML entity codes, which are < and > respectively.
HTML entities are also used to represent characters that are not part of the ASCII character set, such as foreign currency symbols and mathematical symbols. For example, the euro symbol is represented by the entity code €.
HTML Entities Converter
HTML entities are special codes that are used to represent characters that cannot be typed directly into HTML code. For example, the less than (<) and greater than (>) signs are reserved characters in HTML, so you cannot use them in your text without them being interpreted as tags. To display these characters, you need to use their HTML entity codes, which are < and > respectively.
HTML entities are also used to represent characters that are not part of the ASCII character set, such as foreign currency symbols and mathematical symbols. For example, the euro symbol is represented by the entity code €.
HTML entities can be written in two ways:
- Entity name: The entity name is a short descriptive name for the character, such as "amp" for the ampersand (&).
- Entity number: The entity number is a numeric code for the character, such as "&" for the ampersand (&).
You can use either entity names or entity numbers in your HTML code. However, entity names are generally preferred because they are easier to remember.
Here is a table of some common HTML entities:
Character | Entity name | Entity number |
---|---|---|
Ampersand | & | & |
Apostrophe | ' | ' |
Quotation mark | " | " |
Less than | < | < |
Greater than | > | > |
Copyright symbol | © | © |
Registered trademark symbol | ® | ® |
Trademark symbol | ™ | ™ |
Euro symbol | € | € |
For a complete list of HTML entities, you can refer to the W3Schools HTML character entity reference: https://www.w3schools.com/charsets/ref_html_entities_4.asp.
Here is a complete list of HTML entities, including both entity names and entity numbers:
Character | Entity name | Entity number |
---|---|---|
Ampersand | & | & |
Apostrophe | ' | ' |
Quotation mark | " | " |
Less than | < | < |
Greater than | > | > |
Non-breaking space | ||
Hyphen | ‐ | ‑ |
Multiplication sign | × | × |
Copyright symbol | © | © |
Registered trademark symbol | ® | ® |
Trademark symbol | ™ | ™ |
Currency symbols | ||
Dollar sign | $ | $ |
Euro sign | € | € |
Pound sign | £ | £ |
Yen sign | ¥ | ¥ |
Won sign | &won; | ₭ |
Other symbols | ||
Section sign | § | § |
Paragraph sign | ¶ | ¶ |
Copyright symbol (old) | ©old; | © |
Registered trademark symbol (old) | ®old; | ® |
Trademark symbol (old) | &tradeold; | ™ |
Pi symbol | π | π |
Degree symbol | ° | ° |
Micro symbol | µ | µ |
Nano symbol | &nano; | ℘ |
Pico symbol | &pico; | ℙ |
Femto symbol | &femto; | ℚ |
At symbol | &at; | @ |
This is just a small sample of the many HTML entities that are available. For a complete list, you can refer to the W3Schools HTML character entity reference: https://www.w3schools.com/charsets/ref_html_entities_4.asp.
0 Comments