HTML Entities
HTML entities are special codes used to represent reserved characters, as well as characters that may not easily be typed or displayed in HTML documents. In HTML, certain characters have special meanings, such as the less-than sign ("<") and the greater-than sign (">"), which are used to define HTML tags. If you want to display these characters as part of your content rather than as markup, or if you want to include characters that don't have a direct keyboard representation, you can use HTML entities to achieve this.
HTML entities are written in the form &entity_name; or entity_number;. For example:
- < represents the less-than sign ("<").
- > represents the greater-than sign (">").
- & represents the ampersand character ("&").
- " represents the double quotation mark (").
- © represents the copyright symbol ("©").
There are also numeric character references, such as © for the copyright symbol, where the number corresponds to the character's Unicode code point.
HTML Character Entities
HTML character entities are special codes used to represent reserved characters, as well as characters that may not easily be typed or displayed in HTML documents. These entities are useful for displaying characters that have special meanings in HTML, ensuring proper rendering and interpretation by browsers.
Reserved Characters:
- < represents the less-than sign ("<").
- > represents the greater-than sign (">").
- & represents the ampersand character ("&").
- " represents the double quotation mark (").
- © represents the copyright symbol ("©").
Mathematical Symbols:
- + represents the less-than sign ("+").
- − represents the greater-than sign ("-").
- × represents the ampersand character ("x").
- ÷ represents the double quotation mark ("÷").
Entity numbers look like this:
To display a less than sign (<) we must write: < or <
Non-breaking Space
A non-breaking space is a special type of space character that is used in HTML and other markup languages to prevent the browser or text editor from breaking the line at that particular space. In HTML, the non-breaking space is represented by the entity or the numeric character reference  
Some Useful HTML Character Entities
Result | Description | Name | Number |
---|---|---|---|
non-breaking space | |   | |
< | less than | < | < |
> | greater than | > | > |
& | ampersand | & | & |
" | double quotation mark | " | " |
' | single quotation mark | ' | ' |
¢ | cent | ¢ | ¢ |
£ | pound | £ | £ |
¥ | yen | ¥ | ¥ |
€ | euro | € | € |
© | copyright | © | © |
® | trademark | ® | ® |