An HTML entity is a string that begins with '&' and ends with ';'. Entities can be used to represent any character in HTML.

However, HTML reserves the following four characters. Browsers interpret these characters instead of rendering them in the output. To display these characters in your content, use the entity.

Character Entity Note
& & Character indicates the beginning of an entity.
< &lt; Character indicates the beginning of a tag
> &gt; Character indicates the ending of a tag
" &quote; Character indicates the beginning and end of an attribute value.

Learn more

Technical reference

Document Tags and Contributors

 Contributors to this page: rolfedh, PushpitaPikuDey, wblock, Jeremie, klez, Andrew_Pfeiffer
 Last updated by: rolfedh,