what are html entities
ReportAn HTML entity is a piece of text ("string") that begins with an ampersand ( & ) and ends with a semicolon ( ; ) . Entities are frequently used to display reserved characters (which would otherwise be interpreted as HTML code), and invisible characters (like non-breaking spaces).
When to use HTML entities?
Generally, you don’t need to use HTML entities if your editor supports Unicode. For some instances, entities can be useful:
-
Your editor does not support Unicode.
-
Your keyboard does not support the character you would like to type, such as em-dash or the copyright symbol.
-
You want specific HTML-specific characters like
<
,&
, or"
.
Useful HTML entities
- non-breaking space
<
- less than sign
>
- greater than sign
&
- ampersand (&
)
"
- double quotation mark
'
- single quotation mark
¢
- cent sign
£
- pound sign
¥
- yen sign
€
- euro sign
©
- copyright
®
- registered trademark
Thread Reply