Character Entities in HTML
suggest changeMany symbols and special characters show up in web pages, but some characters are reserved by HTML and others are not on the keyboard. Character references avoid that conflict.
A character reference is either a name (&entity_name;) or a number (&#entity_number; or &#xhex;). Use either form for the symbol you need.
A short list of character references is at https://dev.w3.org/html5/html-author/charref
A simple example uses a numeric reference for a magnifying glass:
<input type="text" placeholder=" 🔍 Search"/>
which renders as
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents