Content deleted Content added
+External Link |
Note on numeric references |
||
Line 25:
In addition to native character encodings, characters can also be encoded as '''HTML entities''', using the encoding format derived from the use of entities in [[SGML]].
Many symbolic character entities have been defined. For example, the character 'λ' can be encoded as <code>&lambda;</code>. This use of the '&' character as an [[escape character]] for character entities means that literal '&' characters in HTML need to be encoded as an entity themselves, as <code>&amp;</code>.
Decimal and hexadecimal HTML character references can also be used, based on the [[Unicode]] numeric code for the character encoded. For example, λ can also be represented as a decimal-coded character reference as <code>&#955;</code>. It is important to note that numeric references ''always'' refer to Unicode, no matter the page encoding. Using numeric references which lie within the reserved control area of Unicode (and therefore also ISO 8859 1) is therefore illegal. This are all characters in the ([[hexadecimal|hex]]) ranges 00-1F, 7F, and 80-9F.
Note that unnecessary use of HTML character references may significantly reduce the readability of HTML. If the character encoding for a web page is chosen appropriately then HTML character references are usually only required for a few special characters. The characters '''&
==External Link==
|