Aral Code

Text Lesson 12 of 42

HTML Entities and Symbols (₱, ©, < and More)

Learn how to show special characters in HTML using entities — the peso sign, copyright, less-than, non-breaking spaces, ñ and emoji.

What if you want to write the text <p> on your page, so readers can see the tag itself? If you type it directly, the browser thinks it's a real paragraph tag. And how do you type the peso sign (₱) if it's not on your keyboard? The answer to both is HTML entities.

What is an entity?

An entity is a short code that stands for a character. It starts with an ampersand & and ends with a semicolon ;. There are two kinds:

  • Named entities, like &copy; for ©
  • Numeric entities, like &#8369; for ₱ (the number is the character's code)

The "reserved" characters

A few characters have special meaning in HTML. To show them as normal text, you must use entities:

CharacterEntityWhy it's special
<&lt;Starts a tag
>&gt;Ends a tag
&&amp;Starts an entity
"&quot;Wraps attribute values
Example Showing tags as text
<p>To make a paragraph, type &lt;p&gt; at the start and &lt;/p&gt; at the end.</p>
<p>Tom &amp; Jerry is a classic cartoon.</p>
<p>In math, 5 &lt; 8 and 10 &gt; 3.</p>

That's exactly how this website shows HTML code to you in every lesson!

Useful symbols for Filipino pages

SymbolCodeName
₱&#8369;Philippine peso
ñ / Ñ&ntilde; / &Ntilde;Enye (as in Parañaque, Señor)
©&copy;Copyright
®&reg;Registered trademark
™&trade;Trademark
°&deg;Degree (temperature)
×&times;Multiplication
÷&divide;Division
½&frac12;One half
→&rarr;Right arrow
•&bull;Bullet
–&ndash;En dash (for ranges like 8–10)
Example A price list with symbols
<h3>Kakanin Price List</h3>
<p>Bibingka &rarr; &#8369;45</p>
<p>Puto (&frac12; dozen) &rarr; &#8369;30</p>
<p>Suman sa Lihiya &times; 3 &rarr; &#8369;50</p>
<p>Best served at 60&deg;C &bull; Order 8&ndash;10 AM</p>
<p><small>&copy; 2026 Kakanin ni Aling Rosa, Para&ntilde;aque</small></p>

Do you still need entities with UTF-8?

Good question! If your page has <meta charset="utf-8"> (and it should), you can type most symbols directly: ₱, ñ, ©, even emoji 🇵🇭. It works fine. Entities are still useful when:

  • the character is a reserved one like < or &,
  • you can't easily type the symbol on your keyboard,
  • you want the code to show clearly which symbol is meant (like a non-breaking space, which looks the same as a normal space).

The non-breaking space

&nbsp; is a space that does two things: it doesn't collapse (you can use several in a row), and it prevents a line break between two words. Use it to keep things together that shouldn't be split across lines, like an amount and its unit.

Example Keeping values together
<p>The bridge is 2.5&nbsp;km long and the fare is &#8369;&nbsp;13.</p>
<p>Call us at 0917&nbsp;123&nbsp;4567.</p>

Emoji

Emoji are just characters too. With UTF-8, you can paste them straight into your HTML: 🎉 📚 🏀. You can also use numeric codes, like &#127477;&#127469; for the Philippine flag 🇵🇭 (it's made of two "regional indicator" letters, P and H). Use emoji sparingly — they look different on every device.

Quick Quiz

Check what you learned. Walang grade ito, practice lang. 🙂

1. How do you show the text <h1> on a page without the browser treating it as a tag?
2. Which code shows the Philippine peso sign?
3. What does &nbsp; do?
4. Every entity ends with which character?

By Sir Reyel · Last updated 2026-12-04