Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

DTD Entities

DTD - Entities


Entities are variables used to define shortcuts for referencing ordinary text or special characters.


An internal entity declaration

Syntax

Example

DTD example:

XML example:

&writer;©right;

Note: An entity consists of three parts: an ampersand (&), an entity name, and a semicolon (;).


An external entity declaration

Syntax

Example

DTD example:

XML example:

&writer;©right;