|
In certain portions of an HTML document, characters may be referenced directly ("raw") if the character encoding of the document allows, or by using character entity references (see also the list of XML and HTML character entity references), or by using numeric character references, which can incorporate either hexadecimal or decimal numbers. This list deals with the latter. This list is not complete; it only covers the first 16,384 character references. This is an arbitrary cutoff to keep the length of this article down. Exactly 1,114,050 out of the full set of 1,411,112 Universal Character Set/Unicode code points are allowed to be represented by numeric character references in HTML. As of 2005, only about 16,384 code points are assigned to characters, and the majority of those are in code points 0 through 16,383, hence the cutoff. Implementation In the attribute value and character data portions of an HTML document, a character can be referenced according to its Universal Character Set code point by using the following numeric character reference syntax:
where NNNN is the code point, in decimal form. For example, replacing NNNN with 60 produces: &. Leading zeroes are optional, and there can be as many digits as necessary.
Rendering Main article: HTML decimal character rendering This list will display differently in different browsers, for various technical reasons. There are also some codes, such as &, that are not permitted to be used in HTML. See this section's main article and the special characters note for details.
0000 ~ 0255 0256 ~ 0511 0512 ~ 0767 0768 ~ 1023 1024 ~ 1279 1280 ~ 1535 1536 ~ 1791 1792 ~ 2047 2048 ~ 2303 2304 ~ 2559 2560 ~ 2815 2816 ~ 3071 3072 ~ 3327 3328 ~ 3583 3584 ~ 3839 3840 ~ 4095 4096 ~ 4351 4352 ~ 4607 4608 ~ 4863 4864 ~ 5119 5120 ~ 5375 5376 ~ 5631 5632 ~ 5887 5888 ~ 6143 6144 ~ 6399 6400 ~ 6655 6656 ~ 6911 6912 ~ 7167 7168 ~ 7423 7424 ~ 7679 7680 ~ 7935 7936 - 15999 Continued here: List of HTML decimal character references Part 2 See also | |||||||
|
--> | ||||||||
![]() |
|
| |