HTML Entity for Right Single Quotation Mark (’)

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

What You'll Learn

How to display the Right Single Quotation Mark (’) in HTML using the named entity, hexadecimal, decimal, and CSS escape methods. This symbol is U+2019 (Right Single Quotation Mark) in the General Punctuation block (U+2000–U+206F)—the closing curly single quote used for proper typography in dialogue, quoted phrases, and publishing.

Render it with ’ (named), ’, ’, or CSS \2019. Do not confuse ’ with U+2018 (‘, opening single quote / ‘) or U+0027 (', straight ASCII apostrophe).

⚡ Quick Reference — Right Single Quotation Mark

Unicode U+2019

General Punctuation

Hex Code ’

Hexadecimal reference

HTML Code ’

Decimal reference

Named Entity ’

Most readable option

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2019
Hex code       ’
HTML code      ’
Named entity   ’
CSS code       \2019
Meaning        Closing single quotation mark
Related        U+2018 = left single quotation mark (‘)
               U+0027 = apostrophe (')
1

Complete HTML Example

A simple example showing the Right Single Quotation Mark (’) using the named entity, hexadecimal code, decimal HTML code, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2019";
  }
 </style>
</head>
<body>
<p>Quote (hex): &#x2018;Hello&#x2019;</p>
<p>Quote (decimal): &#8216;Hello&#8217;</p>
<p>Quote (named): &lsquo;Hello&rsquo;</p>
<p id="point">Quote (CSS): </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Right Single Quotation Mark (’) is universally supported in all modern browsers—General Punctuation glyphs are included in virtually all system fonts:

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

👀 Live Preview

See the Right Single Quotation Mark (’) rendered live in different contexts:

Inline dialogue She said, ‘Hello there!’
Large glyph
Nested quotes “He replied, ‘Yes.’”
Quote pair &lsquo; text &rsquo;
Quote comparison ‘ ’ '
Apostrophes don’t, John’s
Numeric refs &rsquo; &#x2019; &#8217; \2019

🧠 How It Works

1

Hexadecimal Code

&#x2019; uses the Unicode hexadecimal value 2019 for the Right Single Quotation Mark. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

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

HTML markup
3

Named Entity

&rsquo; is the semantic named entity — the easiest to read in source HTML and the most self-descriptive option.

HTML markup
4

CSS Entity

\2019 is used in CSS stylesheets in the content property of pseudo-elements like ::before or ::after.

CSS stylesheet
=

Same visual result

All four methods produce . Unicode U+2019 is in the General Punctuation block. Pair with &lsquo; (U+2018) to open. Previous: Right Side Arc Clockwise Arrow.

Use Cases

The Right Single Quotation Mark (’) is commonly used in:

💬 Dialogue & Quotes

Close single-quoted dialogue or quoted phrases (e.g. ‘He said’).

📜 Typography

Use proper curly closing single quote instead of a straight apostrophe.

📄 Content & CMS

Ensure correct quote rendering in articles, blogs, and CMS output.

♿ Accessibility

Pair with &lsquo; for proper quoted text that screen readers handle well.

📚 Academic & Legal

Typeset quotations and references with the correct closing single quote.

🌐 Internationalization

Support languages and styles that use single quotation marks.

💡 Best Practices

Do

  • Use &rsquo; for readable source markup
  • Pair with &lsquo; to open and &rsquo; to close single quotations
  • Prefer typographic quotes over straight ASCII apostrophes in quoted text
  • Keep one entity style per project for consistency
  • Use proper quote pairs so assistive tech understands boundaries

Don’t

  • Confuse ‘ (opening) with ’ (closing single quote)
  • Use CSS \2019 inside HTML text nodes
  • Substitute a straight apostrophe (') for typographic closing quotes
  • Mix entity styles randomly in one file
  • Leave quotes unpaired in dialogue or nested quotations

Key Takeaways

1

Four HTML references plus CSS all render ’

&#x2019; &#8217; &rsquo;
2

For CSS, use \2019 in the content property

3

Unicode U+2019 — Right Single Quotation Mark

4

Prefer &rsquo; and pair with &lsquo; for opening

❓ Frequently Asked Questions

Use &#x2019; (hex), &#8217; (decimal), &rsquo; (named), or \2019 in CSS content. All four methods render ’ correctly.
U+2019 (Right Single Quotation Mark). General Punctuation block (U+2000–U+206F). Hex 2019, decimal 8217. The closing curly single quote used in typographic quotation.
For closing single quotations, apostrophes in contractions (don’t, John’s), and the end of quoted phrases.
HTML references (&#8217;, &#x2019;, or &rsquo;) go in markup. The CSS escape \2019 is used in stylesheets, typically on ::before or ::after. Both produce ’.
Yes. &rsquo; is the named HTML entity for U+2019. You can also use &#8217; (decimal) or &#x2019; (hex) and \2019 in CSS.

Explore More HTML Entities!

Discover 1500+ HTML character references — arrows, symbols, math operators, 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