List of XML and HTML Character Entity References - Character Reference Overview

Character Reference Overview

A numeric character reference refers to a character by its Universal Character Set/Unicode code point, and uses the format

&#nnnn;

or

&#xhhhh;

where nnnn is the code point in decimal form, and hhhh is the code point in hexadecimal form. The x must be lowercase in XML documents. The nnnn or hhhh may be any number of digits and may include leading zeros. The hhhh may mix uppercase and lowercase, though uppercase is the usual style.

In contrast, a character entity reference refers to a character by the name of an entity which has the desired character as its replacement text. The entity must either be predefined (built into the markup language) or explicitly declared in a Document Type Definition (DTD). The format is the same as for any entity reference:

&name;

where name is the case-sensitive name of the entity. The semicolon is required.

Read more about this topic:  List Of XML And HTML Character Entity References

Famous quotes containing the words character and/or reference:

    His character as one of the fathers of the English language would alone make his works important, even those which have little poetical merit. He was as simple as Wordsworth in preferring his homely but vigorous Saxon tongue, when it was neglected by the court, and had not yet attained to the dignity of a literature, and rendered a similar service to his country to that which Dante rendered to Italy.
    Henry David Thoreau (1817–1862)

    The common behavior of mankind is the system of reference by means of which we interpret an unknown language.
    Ludwig Wittgenstein (1889–1951)