Content deleted Content added
Only a few higher-numbered codes can be created using entity names, but all can be created by decimal number character reference. |
GeorgeMoney (talk | contribs) clean up using AWB |
||
Line 5:
===Illegal characters===
HTML forbids&
* 0000 to 0008
Line 14:
* 55296 to 57343
These characters are ''not even allowed by reference''. That is, you are not even allowed to write them as [[numeric character reference]]s. However, references to characters 0128–0159 are commonly interpreted by lenient web browsers as if they were references to the characters assigned to ''bytes'' 128–159 (decimal) in the [[ISO 8859-1|Windows-1252]] character encoding. This is in violation of HTML and SGML standards, and the characters are already assigned to higher code points, so HTML document authors should always use the higher code points. For example, for the trademark sign (
The characters 0009 (tab), 0010 (linefeed), and 0013 (carriage return) are allowed in HTML documents, but, along with 0032 (space) are all considered "[[whitespace (computer science)|whitespace]]"[http://www.w3.org/TR/REC-html40/struct/text.html#h-9.1]. The "form feed" control character, which would be at 0012, is not allowed in HTML documents, but is also mentioned as being one of the "white space" characters — perhaps an oversight in the specifications. In HTML, most consecutive occurrences of white space characters, except in a <code><pre></code> block, are interpreted as comprising a single "word separator" for rendering purposes. A word separator is typically rendered a single en-width space in European languages, but not in others.
|