HTML Tutorial

INTRODUCTION

Edit Template

HTML Tutorial

INTRODUCTION

Edit Template

HTML Entities

HTML entities let you display characters that are reserved in HTML or not directly available on a keyboard. They ensure tour content appears exactly as intended.

What are HTML Entities?

An HTML entity is a piece of text that begins with & and ends with ;. It tells the browser to display a specific character.

				
					&lt; = <
&gt; = >

				
			

Why Use HTML Entities?

  • Reserved characters like <, >, and & can’t be typed directly in HTML.
  • Special Symbols such as ©, , ®,etc.
  • Non-breaking spaces (&nbsp;) to prevent line breaks in specific text.

Common HTML Entities

EntityOutputPurpose
&lt;<Less than sign
&gt;>Greater than sign
&amp;&Ampersand
&quot;"Double quotation mark
&apos;'Apostrophe (single quote)
&nbsp; Non-breaking space
&copy;©Copyright symbol
&reg;®Registered trademark
&euro;Euro symbol
&trade;Trademark

Usage Examples

Reserved Characters

				
					<p>10 &lt; 20 and 20 &gt; 10</p>

				
			

Output: 10 < 20 and 20 > 10

Special Symbols

				
					<p>Copyright &copy; 2025</p>

				
			

Output: Copyright © 2025.

Non-Breaking Space

				
					<p>This&nbsp;text&nbsp;won’t&nbsp;break</p>

				
			

Output: This text won’t break

Conclusion

HTML entities are essential for displaying reserved characters, invisible spacing, and special symbols. They keep your content clean, correct, and user-friendly.

Scroll to Top