In the markup languages SGML and HTML, a character entity reference is a reference to a particular kind of named entity that has been predefined or explicitly declared in a Document Type Definition (DTD). The "replacement text" of the entity consists of a single character from the Universal Character Set/Unicode.
The purpose of a character entity reference is to provide a way to refer to a universal character in a limited character encoding, like ASCII.
Although in popular usage character references are often called "entity references" or even "entities", this usage is wrong. A character reference is a reference to a character, not to an entity. Entity reference refers to the content of a named entity. An entity declaration is created by using the syntax in a document type definition (DTD) or XML schema. Then, the name defined in the entity declaration is subsequently used in the XML. When used in the XML, it is called an entity reference.
Famous quotes containing the words character, entity and/or reference:
“In my experience, persons, when they are made the subject of conversation, though with a Friend, are commonly the most prosaic and trivial of facts. The universe seems bankrupt as soon as we begin to discuss the character of individuals. Our discourse all runs to slander, and our limits grow narrower as we advance. How is it that we are impelled to treat our old Friends so ill when we obtain new ones?”
—Henry David Thoreau (18171862)
“What is this world of ours? A complex entity subject to sudden changes which all indicate a tendency to destruction; a swift succession of beings which follow one another, assert themselves and disappear; a fleeting symmetry; a momentary order.”
—Denis Diderot (17131784)
“Indiana was really, I suppose, a Democratic State. It has always been put down in the book as a state that might be carried by a close and careful and perfect organization and a great deal of[from audience: soapMa reference to purchased votes, the word being followed by laughter].
I see reporters here, and therefore I will simply say that everybody showed a great deal of interest in the occasion, and distributed tracts and political documents all through the country.”
—Chester A. Arthur (18291886)