Ads
related to: examples of a character reference
Search results
Results from the WOW.Com Content Network
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. Because numbers are harder for humans to remember than names, character entity references are most often written by humans, while numeric character references are most often produced by computer programs. [1]
In SGML, HTML and XML documents, the logical constructs known as character data and attribute values consist of sequences of characters, in which each character can manifest directly (representing itself), or can be represented by a series of characters called a character reference, of which there are two types: a numeric character reference and a character entity reference.
For example, in HTML 4, , 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.
Only a few higher-numbered codes can be created using entity names, but all can be created by decimal number character reference. Character entity references can also have the format &name; where name is a case-sensitive alphanumeric string. For example, "λ" can also be encoded as λ in an HTML document.
Reference mark: Asterisk, Dagger: Footnote ¤ Scarab (non-Unicode name) ('Scarab' is an informal name for the generic currency sign) § Section sign: section symbol, section mark, double-s, 'silcrow' Pilcrow; Semicolon: Colon ℠ Service mark symbol: Trademark symbol / Slash (non-Unicode name) Division sign, Forward Slash: also known as "stroke ...
Character entities can be included in an HTML document via the use of entity references, which take the form &EntityName;, where EntityName is the name of the entity. For example, —, much like — or —, represents U+2014: the em dash character "—" even if the character encoding used doesn't contain that character.
Ads
related to: examples of a character reference