Character Entities

Reserved Characters

Some characters have special meaning in HTML. If you write < in text, the browser may think a tag is starting. Use character entities instead:

ResultDescriptionEntity nameNumber
<less than&lt;&#60;
>greater than&gt;&#62;
&ampersand&amp;&#38;
"double quote&quot;&#34;
 non-breaking space&nbsp;&#160;
©copyright&copy;&#169;
₹Indian rupee&#8377;

Example

Example

<!DOCTYPE html>
<html>
<head>
  <title>Page Title</title>
</head>
<body>

<p>To write a paragraph tag, type &lt;p&gt;.</p>
<p>Tom &amp; Jerry &copy; 2024</p>
<p>Price: &#8377;499&nbsp;only</p>
<p>Emojis are characters too: &#128512; &#128640;</p>

</body>
</html>

Result

Tip: With <meta charset="UTF-8"> you can also type ₹, © or emoji directly. Only <, > and & must be escaped in text.