Numeric HTML Entities: Decimal and Hex Character References
Numeric HTML entities (< or <) encode any Unicode character. Learn decimal vs hex references, when to prefer them over named entities, and browser support.
Published:
Tags: encoding, html, unicode
Numeric HTML Entities: Decimal and Hex Character References Named HTML entities like and are readable but limited — they only exist for a subset of characters. Numeric character references work for every Unicode code point without exception. This article covers how they work, when to use them over named entities, and how to find the right code point for any character. Two Formats: Decimal and Hex Numeric HTML entities come in two flavors: Decimal format: where N is the Unicode code point as a base-10 integer. Hexadecimal format: where H is the Unicode code point as a base-16 value (case-insensitive). Both produce identical output. The prefix signals hex format; alone signals decimal. The Relationship to Unicode Code Points Every Unicode character has a code point — a number in the range…
All articles · theproductguy.in