leeand00
leeand00

Reputation: 26392

Two Different Types of Character Entities?

Clearly there are two different types of character entities in HTML/XML.

There are the ones that are specified by numbers, i.e. < and >

And then there are the ones that are specified by letters, < and >

Is there a specific name for each of these types of character entities, or are they just "character entities that are specified by numbers and character entities that are specified by letters?

Upvotes: 1

Views: 242

Answers (1)

Oded
Oded

Reputation: 499002

These are numeric character references (<) and character entities (<).

Character entities are defined as a sequence of character references - for instance, nbsp is defined as  .

When processed, character entities are converted to the corresponding character references.

By the way - a character entity can be defined as more than one character reference, though this has not been done in XML or HTML.

Upvotes: 1

Related Questions