HTML Entity for Right Single Quotation Mark (’)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+2019

What Is the Right Single Quotation Mark Entity?

Right Single Quotation Mark (’) is the General Punctuation character at Unicode U+2019 (RIGHT SINGLE QUOTATION MARK). It is the closing (curly) single quote — and the usual typographic apostrophe in words like don’t.

Remember
Character     ’
Unicode       U+2019
Hex entity    ’
Decimal       ’
Named entity  ’
CSS escape    \2019
Not the same  ' (U+0027) · ‘ (‘) · ” (”)

All of these produce the same glyph: ’. Prefer ’ when you want an explicit entity. Pair with ‘ to open the quote.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity’HTML markup (best entity default)
Hex entity’HTML markup
Decimal entity’HTML markup
CSS escape\2019Stylesheet content
Direct character’UTF-8 HTML text

When to Use Which

SituationUse
Readable HTML entity source’
Need a numeric entity’ or ’
Generated text via ::before / ::aftercontent: "\2019"
Opening single quoteUse ‘ (U+2018)
Straight ASCII apostropheUse ' / ' (U+0027)
Closing double quoteUse ” (U+201D)

Live Preview

Right Single Quotation Mark in common typography contexts.

Quoted phrase ‘Hello’
Contraction don’t · it’s
Large glyph ’
Named entity ’ → ’
vs ' / ‘ ’  |  '  |  ‘
With entities Hex: ’ | Decimal: ’ | Named: ’

Complete HTML Example

One page that shows this symbol 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 (paired with ‘ in quote samples).

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Right Single Quotation Mark (’)</title>
  <style>
    #point::after {
      content: "\2019";
    }
  </style>
</head>
<body>
  <p>Using Hex Code: &#x2018;Hello&#x2019;</p>
  <p>Using HTML Code: &#8216;Hello&#8217;</p>
  <p>Using Named Entity: &lsquo;Hello&rsquo;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Contraction: don&rsquo;t</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+2019 → &#x2019; in HTML. The browser turns it into ’ (shown here closing the quote after Hello).

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

3. Named: &rsquo; is the HTML5 name for this character. Opening quotes use &lsquo;.

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

5. Contractions: don&rsquo;t uses the right single quote as a typographic apostrophe.

Pitfalls & Tips

Common mistakes when working with Right Single Quotation Mark.

Look-alikes

’ ≠ ' ≠ ‘

&rsquo; closes a curly single quote. The ASCII ' is straight. &lsquo; opens the curly pair.

Pairing

Close with &rsquo;

Open with &lsquo;. Mixing left and right marks looks wrong in polished typography.

Apostrophe

Contractions prefer &rsquo;

Words like don&rsquo;t and it&rsquo;s typically use the right single quote, not &lsquo;.

CSS vs HTML

Do not mix escapes

\2019 belongs in CSS. &rsquo; / &#x2019; / &#8217; belong in HTML.

A11y

Quotes are usually fine alone

Screen readers treat curly quotes as punctuation. Prefer real quote characters over decorative substitutes.

Semicolon

End references

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

Browser Support

Right Single Quotation Mark (U+2019) and its entity forms (&rsquo;, &#x2019;, &#8217;, CSS \\2019) are supported in all modern browsers. Glyph coverage depends on the font.

✓ Universal encoding

Right Single Quotation Mark (&rsquo;)

Encode with named, hex, decimal, or CSS escape — or type ’ directly in UTF-8 HTML.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer IE 9+
Yes*
U+2019 / &rsquo; Full support

Bottom line: Prefer &rsquo; for readable HTML. Use \\2019 only inside CSS content.

Key Takeaways

  • Unicode: this symbol is U+2019 (decimal 8217).
  • HTML: prefer &rsquo; — or use &#x2019; / &#8217;.
  • CSS: use \2019 inside content for generated text.
  • Watch out: &rsquo; ≠ ' ≠ &lsquo;.

One line: U+2019 → &rsquo; / &#x2019; / &#8217; / CSS \2019.

Frequently Asked Questions

Use &rsquo; (named), &#x2019; (hex), &#8217; (decimal), or the CSS escape \2019 in the content property. You can also type ’ directly in UTF-8 HTML.
U+2019 (RIGHT SINGLE QUOTATION MARK). Hex 2019, decimal 8217. It belongs to General Punctuation (U+2000–U+206F).
Yes. &rsquo; is the HTML5 named entity (alias &CloseCurlyQuote;). You can also use &#x2019; or &#8217;.
Use it as the closing curly single quote, and as the typographic apostrophe in contractions (don’t, it’s). Pair it with &lsquo; for opening quotes. Prefer &rsquo; for readable HTML.
HTML entities (&rsquo;, &#8217;, or &#x2019;) go in markup. The CSS escape \2019 is used in stylesheets (usually in the content property of ::before/::after). Both render ’.
The ASCII apostrophe ' (U+0027 / &apos;) is straight. &lsquo; (U+2018) is the left (opening) curly single quote. &rsquo; (U+2019) is the right (closing) curly single quote and the preferred typographic apostrophe.

Did you know?

Right Single Quotation Mark is Unicode U+2019 (decimal 8217) — RIGHT SINGLE QUOTATION MARK. HTML5 provides &rsquo; (alias &CloseCurlyQuote;). Prefer it for readable source. It closes curly single quotes and is the usual typographic apostrophe in contractions. Do not confuse it with the ASCII apostrophe &apos; / ' (U+0027) or the left form &lsquo; (U+2018).

Next: Right Square Bracket With Quill

Learn the HTML entity for Right Square Bracket With Quill — next in this sequence.

Continue 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