html entities
html entities
DCIS1204
SEMISTER TWO
YEAR ONE
HTML - Entities
An HTML entity is used to display invisible characters and reserved characters that would
otherwise be interpreted as HTML code. It is a piece of text, or string, that begins with an
ampersand (&) and ends with a semicolon (;).
Some characters are reserved in HTML and they have special meaning when used in HTML
document. For example, you cannot use the greater than and less than signs or angle brackets
within your HTML text because the browser will treat them differently and will try to draw a
meaning related to HTML tag.
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 ".
HTML - Entities