brentonstrine
brentonstrine

Reputation: 22742

What does the X mean in hexadecimal character codes for HTML?

The format for a hexadecimal character code in HTML is:

�

... where 00 is the UTF-8 or ASCII code of the character.

Obviously the & and the ; are somewhat arbitrary codes, and the # indicates that a numerical code is being given rather than a text reference like & for ampersand. Without the x, the browser expects a code in decimal format, which makes sense.

But why the x to indicate hexidecimal?

Upvotes: -1

Views: 2052

Answers (1)

Vuer
Vuer

Reputation: 149

x means that is hexadecimal reference: http://www.w3schools.com/charsets/ref_utf_dingbats.asp

Upvotes: -1

Related Questions