HTML entities

Codes for characters that would otherwise be read as HTML, such as < and &.

Also called: &nbsp;, escaping, character reference

Domain
Languages
Type
Term
Source
General
Languages
HTML, PHP

In plain English

&lt; is <, &gt; is >, &amp; is &, &nbsp; is a space that never breaks a line. With UTF-8 you can type most other characters directly.

Example

Write & in the HTML, or the ampersand can break the page.

In code

<p>Tom &amp; Jerry, 5&nbsp;km</p>

Learn more

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30