Tutorials Logic, IN info@tutorialslogic.com
Navigation
Home About Us Contact Us Blogs FAQs
Tutorials
All Tutorials
Services
Academic Projects Resume Writing Website Development
Practice
Quiz Challenge Interview Questions Certification Practice
Compiler Tools

HTML Entities — Special Characters Reference

Entities

Entities are used as a replacement of reserved characters in HTML document. Characters which are not present on the keyboard, can also be replace by entities. For example, if we use the symbol < or > in our HTML document, then the browser might mix these symbol with tags. Thats why we use entities to display reserved characters. Below is a list of important and most commonly used entities-

EntityDescriptionNumerical ReferenceResult
&nbsp;Non-breaking space&#160; 
&lt;Less than&#60;<
&gt;Greater than&#62;>
&amp;Ampersand&#38;&
&quot;Double quotation mark&#34;"
&apos;Single quotation mark (apostrophe)&#39;'
&dollar;Dollar&#36;$
&cent;Cent&#162;¢
&pound;Pound&#163;£
&copy;Copyright&#169;©
&reg;Registered trademark&#174;®

More Useful HTML Entities

EntityDescriptionResult
&trade;Trademark
&euro;Euro sign
&mdash;Em dash
&times;Multiplication sign×
&deg;Degree symbol°
&plusmn;Plus-minus sign±

Entities in Practice

Entities in HTML
<!-- Copyright footer -->
<footer>&copy; 2024 Tutorials Logic. All rights reserved.</footer>

<!-- Non-breaking space -->
<p>10&nbsp;km</p>

<!-- Math expressions -->
<p>Temperature: 37&deg;C</p>
<p>Result: 5 &times; 3 = 15</p>
Key Takeaways
  • Always use &lt; and &gt; to display < and > in HTML.
  • &nbsp; creates a non-breaking space - useful between numbers and units.
  • HTML entities can be written as named (&copy;), decimal (&#169;), or hexadecimal (&#xA9;) references.
  • Use &amp; to display a literal ampersand (&) in HTML.
  • Entities are essential when displaying code examples in HTML.
  • Modern HTML5 with UTF-8 encoding supports most Unicode characters directly.

Ready to Level Up Your Skills?

Explore 500+ free tutorials across 20+ languages and frameworks.