Some characters, like (<), are of special significance to HTML, so these characters are not allowed in the text. To display (<) this character in HTML, we must use the entity character.
Entity characters
There are some characters that are special to HTML, like less than symbols (<), which are used to define HTML header tags. If we want to display such characters in the browser, we must insert the entity characters in the HTML code.
An entity character has three parts: a (&) symbol, a special symbol name or a # plus a special number, and finally a semicolon (;).
To display less than the symbol is written in HTML:< or < the advantage of using a name is that it is easier to remember than to use numbers.
but not all browsers support the latest entity characters, Not as good as the entity characters are supported by all browsers.
Note entity characters need to be case-sensitive. This example is for you to experiment with these entity characters (only ie browser)
No line breaks
The most common entity character in HTML is the No line break interval.
General HTML will give you the text to remove the interval, if you have 10 spacing in the text, then the HTML will remove 9 of them. To add an interval, you have to use the character.
Some very common entity characters:
results |
description |
entity name |
entity number |
, |
Non-newline interval |
  |
& #160 |
< |
Less than |
< |
& #60 |
> |
Greater than |
> |
& #62 |
& |
"&" |
& |
& #38 |
" |
double quotes |
" |
& #34 |
‘ |
Single quotation marks |
' IE does not support |
& #39 |
Other characters commonly used character entities:
results |
Span style= "font-family: the song Body;" > |
entity name |
Number of entities |
< Span style= "font-family: the song Body;" >¢ |
|
¢ |
& #162 |
< Span style= "font-family: the song Body;" >£ |
lb |
£ |
< Span style= "FONT-SIZE:12PT;" >& #163 |
< Span style= "font-family: the song Body;" >¥ |
meta |
¥ |
< Span style= "color: #000000;" >& #165 |
< Span style= "font-family: the song Body;" >§ |
Department |
&NBSP; § |
& #167 |
< Span style= "FONT-SIZE:10.5PT;" >© |
copyright |
© |
& #169 |
< Span style= "FONT-SIZE:10.5PT;" >® |
registered trademarks |
® |
< Span style= "FONT-SIZE:12PT;" >& #174 |
x |
multiply |
× |
& #215 |
< Span style= "font-family: the song Body;" >÷ |
except |
÷ |
& #247 |