HTML Entity for Uppercase Roman Numeral Two (Ⅱ)

Beginner
⏱️ 5 min read
📚 Updated: Aug 2025
🎯 1 Code Example
Unicode U+2161

What You'll Learn

How to display the uppercase roman numeral two (Ⅱ) in HTML using hex, decimal, and CSS entity methods. This character belongs to the Number Forms Unicode block and is useful for outlines, hierarchical numbering, lists, academic content, and typography.

Ⅱ has no named HTML entity. You’ll typically use numeric references (Ⅱ or Ⅱ) or a CSS escape (\2161 in content).

⚡ Quick Reference — Ⅱ Entity

Unicode U+2161

Number Forms block

Hex Code Ⅱ

Hexadecimal reference

HTML Code Ⅱ

Decimal reference

CSS Code \2161

Use in CSS content

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2161
Hex code       Ⅱ
HTML code      Ⅱ
Named entity   (none)
CSS code       \2161
1

Complete HTML Example

This example demonstrates the uppercase roman numeral two (Ⅱ) using hexadecimal code, decimal HTML code, and a CSS content escape on a pseudo-element:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2161";
  }
 </style>
</head>
<body>

<p>Uppercase Roman Two using Hexa Decimal: &#x2161;</p>
<p>Uppercase Roman Two using HTML Code: &#8545;</p>
<p id="point">Uppercase Roman Two using CSS Entity: </p>

</body>
</html>
Try It Yourself

🌐 Browser Support

The Ⅱ character (Unicode U+2161) is supported in all modern browsers. If a font doesn’t include the Number Forms glyph, the browser may fall back to another font.

Chrome1+
Firefox1+
Safari1+
Edge12+
Opera4+
Android4.4+
iOS Safari1+

👀 Live Preview

See the uppercase roman numeral two rendered live in different contexts:

Inline text Chapter Ⅱ introduces the main concepts.
Large glyph
Numbering Section Ⅱ → 2 (uppercase roman numeral)
Font fallback check If a font lacks Number Forms, the browser will use a fallback font to render Ⅱ.

🧠 How It Works

1

Hexadecimal Code

&#x2161; references Unicode 2161 in hexadecimal, producing the glyph in your HTML.

HTML markup
2

Decimal HTML Code

&#8545; references the same Unicode code point using the decimal value 8545.

HTML markup
3

CSS Entity (Escape)

\2161 is used in CSS (most often in the content property) to generate Ⅱ without adding extra HTML.

CSS stylesheet
=

Same visual result

All methods produce . The Unicode value is U+2161 in the Number Forms block. There is no named HTML entity for this character.

Use Cases

The uppercase roman numeral two (Ⅱ) commonly appears in the following scenarios:

📋 Outlines

Primary numbering in structured documents and outlines.

📝 Lists

Uppercase roman list markers for main sections or chapters.

🎓 Academic Content

Chapter numbering, appendices, and citation conventions using roman numerals.

📄 Figure/Table Labels

Captions or references like “Figure Ⅱ” when style requires roman numbering.

🎨 Typography

Design-forward headings and decorative numbering with roman styling.

⚖️ Legal/Technical Docs

Formal documents that use roman numerals for primary sections.

💡 Best Practices

Do

  • Use &#x2161; or &#8545; for reliable HTML rendering
  • Use the CSS escape \2161 in content for decorative markers
  • Prefer semantic lists (<ol>) when you’re presenting real list content
  • Keep the roman style consistent (uppercase vs lowercase) throughout a document
  • Test fonts and fallback behavior on mobile devices

Don’t

  • Assume every font includes all Number Forms glyphs
  • Use the CSS escape \2161 directly in HTML text
  • Mix hex/decimal styles randomly in the same file
  • Use uppercase roman numerals where convention expects lowercase (or vice versa)
  • Rely on a single glyph without context when it conveys meaning

Key Takeaways

1

Two HTML numeric references render Ⅱ

&#x2161; &#8545;
2

For CSS stylesheets, use the escape in the content property

\2161
3

Unicode U+2161 belongs to the Number Forms block

4

There is no named HTML entity for this character

5

Use Ⅱ for primary chapter/section numbering, lists, and typography

❓ Frequently Asked Questions

Use &#x2161; (hex) or &#8545; (decimal) in HTML. For CSS, use \2161 in the content property. All methods render Ⅱ.
U+2161 (hex 2161, decimal 8545). It’s part of the Number Forms block.
Use it in outlines, hierarchical lists, numbering schemes, academic content, and typography where uppercase roman numerals are required.
HTML numeric references (&#8545; or &#x2161;) go directly in markup. The CSS escape \2161 is used in stylesheets (usually in content on ::before/::after). Same visual result, different layers of the stack.
Characters from the Number Forms block typically don’t have named HTML entities and are referenced using numeric codes. For Ⅱ, use hex &#x2161; or decimal &#8545;.

Explore More HTML Entities!

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