HTML Entity for Inverted Exclamation Mark (¡)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+00A1

What You'll Learn

How to display the Inverted Exclamation Mark (¡) in HTML using hexadecimal, decimal, named entity, and CSS escape methods. Spanish punctuation requires ¡ at the start and ! at the end of exclamatory phrases (e.g. ¡Hola! ¿Qué tal?).

This character is U+00A1 (INVERTED EXCLAMATION MARK) in the Latin-1 Supplement block (U+0080–U+00FF). Render it with ¡, ¡, ¡, or CSS \00A1.

⚡ Quick Reference — Inverted Exclamation Mark

Unicode U+00A1

Latin-1 Supplement

Hex Code ¡

Hexadecimal reference

HTML Code ¡

Decimal reference

Named Entity ¡

Most readable option

Reference Table
Name           Value
────────────   ──────────
Unicode        U+00A1
Hex code       ¡
HTML code      ¡
Named entity   ¡
CSS code       \00A1
Meaning        Opening exclamation (Spanish ¡)
Example        ¡Hola!
1

Complete HTML Example

This example demonstrates the Inverted Exclamation Mark symbol (¡) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\00A1";
  }
 </style>
</head>
<body>
<p>Inverted Exclamation Mark using Hexadecimal: &#x00A1;</p>
<p>Inverted Exclamation Mark using Decimal: &#161;</p>
<p>Inverted Exclamation Mark using Named Entity: &iexcl;</p>
<p id="point">Inverted Exclamation Mark using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Inverted Exclamation Mark symbol (¡) is universally supported in all modern browsers:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

See the Inverted Exclamation Mark (¡) in Spanish punctuation contexts:

Greeting ¡Hola! ¿Cómo estás?
Exclamation ¡Qué bien! ¡Feliz cumpleaños!
Large glyph ¡
Named entity &iexcl; → ¡
Numeric refs &#x00A1; &#161; \00A1

🧠 How It Works

1

Hexadecimal Code

&#x00A1; uses the Unicode hexadecimal value 00A1 to display the Inverted Exclamation Mark. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#161; uses the decimal Unicode value 161 to display the same character.

HTML markup
3

CSS Entity

\00A1 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
4

Named Entity

&iexcl; is the standard named HTML entity for the inverted exclamation mark—easy to read and remember in source markup.

HTML markup
=

Same visual result

All four methods produce ¡. Unicode U+00A1 is in Latin-1 Supplement. Next: Inverted Glottal Stop (U+01BE).

Use Cases

The Inverted Exclamation Mark symbol (¡) is commonly used in:

🇪🇸 Spanish

Open exclamations with ¡ and close with ! (e.g. ¡Hola!).

🌐 Multilingual

Localized sites and apps with correct Spanish punctuation.

📚 Education

Language courses, textbooks, and learning materials.

✍️ Editorial

Articles, blogs, and publications in Spanish.

💬 UX Copy

UI strings, notifications, and messages with exclamatory tone.

📝 Accessibility

Proper punctuation helps screen readers interpret Spanish exclamations.

💡 Best Practices

Do

  • Prefer &iexcl; for readable source markup
  • Pair ¡ with closing ! in Spanish (e.g. &iexcl;Hola!)
  • Set <meta charset="utf-8">
  • Use one entity style (named, hex, or decimal) per project
  • Include ¡ in Spanish locale strings for i18n/l10n

Don’t

  • Use only ! at the start in Spanish (omit the opening ¡)
  • Confuse ¡ (U+00A1) with regular ! (U+0021)
  • Use CSS \00A1 inside HTML text nodes
  • Mix entity styles randomly in one file
  • Assume all fonts lack Latin-1 (U+00A1 is widely supported)

Key Takeaways

1

Three HTML references all render ¡

&#x00A1; &#161; &iexcl;
2

For CSS stylesheets, use \00A1 in the content property

3

Unicode U+00A1 — INVERTED EXCLAMATION MARK

4

Prefer &iexcl; for readability in HTML source

❓ Frequently Asked Questions

Use &#x00A1; (hex), &#161; (decimal), &iexcl; (named), or \00A1 in CSS content. All produce ¡.
U+00A1 (INVERTED EXCLAMATION MARK). Latin-1 Supplement block (U+0080–U+00FF). Hex 00A1, decimal 161. Opens exclamations in Spanish (e.g. ¡Hola!).
In Spanish and Latin American content, multilingual websites, language learning, typography for correct Spanish punctuation, and any context that requires opening ¡ before an exclamatory phrase.
HTML entities (&iexcl;, &#161;, or &#x00A1;) go in markup. The CSS escape \00A1 is used in stylesheets, typically on ::before or ::after. Both render ¡.
Yes. &iexcl; is the named HTML entity for ¡ (inverted exclamation). It is part of the HTML/Latin-1 entity set and is well supported in modern browsers.

Explore More HTML Entities!

Discover 1500+ HTML character references — punctuation, symbols, and more.

All HTML Entities →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful