Concepts 🚀 Project 🧮 Labs
🧮 Labs / HTML / HTML entities — < > & © —

HTML entities — < > & © —

Special characters that need a code because they'd otherwise be parsed as HTML.

index.html v3.1
Live preview updates as you type
🧠 How it works

Entities start with & and end with ;. MUST-USE: < → &lt; > → &gt; & → &amp; (otherwise they're parsed as HTML tags). Useful: &copy; (©), &trade; (™), &mdash; (—), &nbsp; (non-breaking space — prevents line wrap). Numbers: &#60; for < &#169; for © (any Unicode char by code point). To SHOW HTML code on a page (like in a tutorial), every < > and & must be escaped.

✏️ Try these changes
  • Change &lt; to just <
    → the rest of the line becomes a tag and may disappear
  • Change &mdash; to &ndash;
    → em dash (long) becomes en dash (short)
  • Add &hearts; somewhere
    → heart symbol appears
  • Add &#128512; (smiley emoji by codepoint)
    → 😀 appears