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. |
< | < |
Character indicates the beginning of a tag |
> | > | Character indicates the ending of a tag |
" | " | Character indicates the beginning and end of an attribute value. |
Learn more
Technical reference
Document Tags and Contributors
Tags:
Contributors to this page:
Colptha,
rolfedh,
PushpitaPikuDey,
wblock,
Jeremie,
klez,
Andrew_Pfeiffer
Last updated by:
Colptha,