Character entity references Web Designing

Characters not found in the normal alphanumeric character set, such as < and &, must be specified in HTML using character entities. Using the standard desktop publishing keyboard commands (such as Option-g for the © symbol) within an HTML document will not produce the desired character when the document is rendered in a browser. In fact, the browser generally displays the numeric entity for the character.

Character entities can be referenced by name (&name;) or by numeric value (&#nnn;). The browser interprets the string to display the proper character. Named entities are preferable because numeric values may be interpreted differently on different platforms. Table presents the character entities for commonly used special characters.

Table: Common special characters and their character entities

Common special characters and their character entitiesCommon special characters and their character entities


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Web Designing Topics