Tsallaka zuwa abun ciki
Justice Tech School

HTML Entities

The characters < and > start tags, so to show them as text you write &lt; and &gt;. An ampersand is &amp;. A non-breaking space is &nbsp;.

An entity starts with & and ends with ; and can be a name (&copy;) or a number (&#169;).

Example
<p>To make a paragraph write &lt;p&gt;Hello&lt;/p&gt;.</p>
<p>Fish &amp; chips &copy; 2026</p>

Exercise

Show a less-than sign as text.

<p>5 &; 10</p>

Quiz Test

Which entity shows an ampersand?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.