Content deleted Content added
→Example: disambiguation |
m formatting |
||
Line 3:
== Example ==
In SGML, HTML, and XML, the following are all valid numeric character references for the Greek capital letter Sigma ("
Σ
Line 41:
While the syntax of SGML does not prohibit references to unassigned code points, such as <code>&#xFFFF;</code>, SGML-derived markup languages such as HTML and XML can, and often do, restrict numeric character references to only those code points that are assigned to characters or that have not been permanently left unassigned.
Restrictions may also apply for other reasons. For example, in HTML 4, <code>&#12;</code>, which is a reference to a non-printing "form feed" control character, is allowed because a form feed character is allowed. But in XML, the form feed character cannot be used, not even by reference. As another example, <code>&#128;</code>, which is a reference to another control character, is not allowed to be used or referenced in either HTML or XML, but when used in HTML, it is usually not flagged as an error by web browsers—some of which attempt to interpret it as a reference to the character represented by code value 128 in the [[Windows-1252]] encoding: "
Markup languages also place restrictions on where character references can occur.
|