HTML Basics

HTML Entities

Some characters have special meaning in HTML or cannot be typed directly. Entities let you display these characters safely and correctly.


What are HTML Entities?

An HTML entity is a code that represents a character. It starts with an ampersand (&) and ends with a semicolon (;). For example, &lt; displays a less-than sign. Entities are needed because characters like < and > are reserved for tags.

Common Entities

CharacterEntity nameEntity number
< (less than)&lt;&#60;
> (greater than)&gt;&#62;
& (ampersand)&amp;&#38;
" (double quote)&quot;&#34;
Non-breaking space&nbsp;&#160;
© (copyright)&copy;&#169;
® (registered)&reg;&#174;
€ (euro)&euro;&#8364;
Displaying reserved characters
<p>To write a tag, type &lt;p&gt; on the page.</p>
<p>Fish &amp; Chips</p>
<p>&copy; 2026 My Company</p>
ℹ️

A non-breaking space (&nbsp;) keeps two words together on the same line and prevents the browser from collapsing multiple spaces. Use it sparingly, for example in '10&nbsp;kg' so the number and unit stay together.

Ready to use your HTML skills?

Find web development internships and fresher jobs across India.

Browse Web Dev Internships