HTML Entity for Inverted Exclamation Mark (¡)

Beginner
6 min read
Updated: Sep 2026
1 example
Unicode U+00A1

What Is the Inverted Exclamation Mark Entity?

Inverted Exclamation Mark (¡) is the Latin-1 Supplement character at Unicode U+00A1 (INVERTED EXCLAMATION MARK). It opens exclamations in Spanish and related languages (e.g. ¡Hola!).

Remember
Character     ¡
Unicode       U+00A1
Hex entity    ¡
Decimal       ¡
Named entity  ¡
CSS escape    \00A1

All of these produce the same glyph: ¡. Prefer ¡ in HTML source for clarity; use hex/decimal when generating entities, and CSS \00A1 only in content.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity¡HTML markup (best default)
Hex entity¡HTML markup
Decimal entity¡HTML markup
CSS escape\00A1Stylesheet content
Direct character¡UTF-8 HTML text

When to Use Which

SituationUse
Readable Spanish HTML source¡
Need a numeric entity in HTML¡ or ¡
Generated text via ::before / ::aftercontent: "\00A1"
UTF-8 page, typing is easyType ¡ directly
Spanish question (not exclamation)Use Inverted Question Mark (¿)

Live Preview

Inverted Exclamation Mark in common Spanish contexts.

Greeting ¡Hola!
Large glyph ¡
Phrase ¡Qué bien!
Named entity ¡ → ¡
With entities Hex: ¡ | Decimal: ¡ | Named: ¡

Complete HTML Example

One page that shows Inverted Exclamation Mark with hex, decimal, named, and CSS. Use View Output or open the live editor.

Hex + Decimal + Named + CSS

All four ways to produce ¡ in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Inverted Exclamation Mark (¡) in HTML</title>
  <style>
    #point::after {
      content: "\00A1";
    }
  </style>
</head>
<body>
  <p>Using Hex Code: &#x00A1;</p>
  <p>Using HTML Code: &#161;</p>
  <p>Using Named Entity: &iexcl;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Spanish: &iexcl;Hola!</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+00A1 → &#x00A1; in HTML. The browser turns it into ¡.

2. Decimal: same code point as 161 → &#161;. Same result as hex.

3. Named: &iexcl; is the HTML5 name for this character — easiest to read in source.

4. CSS: use \00A1 in content (not an HTML entity). #point::after appends that ¡ after the paragraph text.

5. Spanish: open with &iexcl; and close with ! — e.g. &iexcl;Hola! → ¡Hola!.

Pitfalls & Tips

Common mistakes when working with the Inverted Exclamation Mark.

Named

Prefer &iexcl;

Named form is clearer than numeric codes in hand-written HTML.

Spanish

Pair with !

Open with ¡ and close with ! — e.g. &iexcl;Hola!.

CSS vs HTML

Do not mix escapes

\00A1 belongs in CSS. &iexcl; / &#x00A1; / &#161; belong in HTML.

Look-alikes

Not ! or ¿

! is the closing mark. ¿ (&iquest;) opens questions — a different character.

Semicolon

End references

Always finish with ; — write &iexcl;, not &iexcl.

Default

Type ¡ when you can

On UTF-8 pages you may type ¡ directly; entities help when encoding must be explicit.

Browser Support

Inverted Exclamation Mark (U+00A1) and its entity forms (&iexcl;, &#x00A1;, &#161;, CSS \\00A1) are supported in all mainstream browsers.

✓ Universal support

Inverted Exclamation Mark (¡)

Use &iexcl;, or encode with hex, decimal, or CSS escape — same glyph everywhere.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+00A1 / entities Full support

Bottom line: Prefer &iexcl; in HTML for readability. Use &#x00A1; or &#161; when encoding must be numeric, and \\00A1 only inside CSS content.

Key Takeaways

  • Unicode: inverted exclamation is U+00A1 (decimal 161).
  • HTML: prefer &iexcl;, or use &#x00A1; / &#161;.
  • CSS: use \00A1 inside content for generated text.
  • Spanish: open with ¡ and close with !.

One line: U+00A1 → &iexcl; / &#x00A1; / &#161; / CSS \00A1.

Frequently Asked Questions

Use &iexcl; (named), &#x00A1; (hex), &#161; (decimal), or the CSS escape \00A1 in the content property. All render ¡.
U+00A1 (INVERTED EXCLAMATION MARK). Hex 00A1, decimal 161. It belongs to the Latin-1 Supplement block.
Yes. &iexcl; is the named HTML5 entity for ¡ and is supported in all modern browsers.
Use it to open exclamations in Spanish and related languages (e.g. ¡Hola!). Prefer &iexcl; for readable source; pair with a closing ! at the end of the phrase.
HTML entities (&iexcl;, &#161;, or &#x00A1;) go in markup. The CSS escape \00A1 is used in stylesheets (usually in the content property of ::before/::after). Both render ¡.
! (U+0021) is the regular closing exclamation. ¿ (U+00BF, &iquest;) is the inverted question mark. ¡ opens exclamations; ! closes them.

Did you know?

Inverted Exclamation Mark is Unicode U+00A1 (decimal 161). HTML5 provides the named entity &iexcl; — prefer it for readable Spanish punctuation, or use &#x00A1; / &#161;. Pair ¡ with closing ! (e.g. ¡Hola!).

Next: Inverted Glottal Stop

Learn the HTML entity for Inverted Glottal Stop (U+01BE) — next in this sequence.

Inverted Glottal Stop tutorial →

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