Common HTML Entities Every Developer Should Know
The 20 HTML entities developers use most: &, <, >, , ©, ™, —, …, and more with copy-paste snippets.
Published:
Tags: encoding, html, reference
Common HTML Entities Every Developer Should Know You don't need to memorize the full HTML5 entity specification. Most day-to-day HTML work involves fewer than 30 entities. This article covers the ones that actually come up — grouped by type, with the codes you'll reach for repeatedly. The Non-Negotiable Five These are the only entities that are truly mandatory. The HTML parser uses these five characters as syntax markers. If they appear in your content unescaped, the parser may misinterpret them as markup. | Character | Name | Entity | Decimal | Hex | |-----------|------|--------|---------|-----| | | Ampersand | | | | | | Less-than | | | | | | Greater-than | | | | | | Double quote | | | | | | Apostrophe | | | | Encode first. If you encode first, produce , then encode and produce — you've…
All articles · theproductguy.in