Character Entities in HTML

suggest change

Many 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="  &#128269; Search"/>

which renders as

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents