An entity is a representation of a special character that causes syntax conflicts in HTML (Hypertext Markup Language). Some symbols cause web browsers to misinterpret them as HTML tags or confuse them with other syntaxes. Using entities allows you to replace these reserved characters with corresponding entity codes to achieve your desired effect. 

For example, your browser may interpret a less than (<) or greater than (>) symbol as a tag. To avoid this, use &lt; to replace < and &gt; to replace >

Here’s an HTML code snippet for bold text using the less than (<) and greater than symbols: 

<p>This is an example of <strong>bold</strong> text. </p>

The below HTML code snippet replaces the less than (<) and greater than (>) symbols with &lt; and &gt;, respectively : 

<p>This is an example of a &lt;strong&gt;bold&lt;/strong&gt; text. </p>

Here’s a list of common reserved characters and their entities:

Character Entity Function
° &deg; Rendered as the degree symbol
&ndash; Rendered as the en dash
&mdash; Rendered as the em dash
£ &pound; Rendered as the pound sign
&euro; Rendered as the euro sign

Visit Webflow University to learn how to build and style web pages in HTML and CSS. Learn web development best practices to take your coding knowledge to the next level.

A new way to learn and to build for the web

Get the best, coolest, and latest in design and no-code delivered to your inbox each week.

Shoot, something didn't work. Try again later, bud.