我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
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. |