HTML Entity for Roman Numeral Seven (Ⅶ)

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

What You'll Learn

How to display the Roman numeral seven (Ⅶ) in HTML using hex, decimal, and CSS entity methods. This character lives in the Number Forms Unicode block and is commonly used for outlines, headings, academic references, historical numbering, and clock-style numbering.

Ⅶ has no named HTML entity, so you’ll use numeric references (Ⅶ or Ⅶ) or a CSS escape (\2166 in content).

⚡ Quick Reference — Ⅶ Entity

Unicode U+2166

Number Forms block

Hex Code Ⅶ

Hexadecimal reference

HTML Code Ⅶ

Decimal reference

CSS Code \2166

Use in CSS content

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

Complete HTML Example

This example demonstrates Ⅶ using hexadecimal code, decimal HTML code, and a CSS content escape on a pseudo-element:

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

<p>Roman Numeral Seven using Hexa Decimal: &#x2166;</p>
<p>Roman Numeral Seven using HTML Code: &#8550;</p>
<p id="point">Roman Numeral Seven using CSS Entity: </p>

</body>
</html>
Try It Yourself

🌐 Browser Support

The character Ⅶ (U+2166) is supported in all modern browsers. Rendering depends on font support for the Number Forms block, so include a sensible fallback font stack:

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

👀 Live Preview

See Ⅶ rendered in a few practical contexts:

Heading style Chapter Ⅶ
Large glyph
Inline text See Part Ⅶ for more details.
Typography note Ⅶ is a single Number Forms glyph; it can differ from typing three Latin capitals “V” + “I” + “I” in metrics and semantics.

🧠 How It Works

1

Hexadecimal Code

&#x2166; references Unicode 2166 in hexadecimal to produce the glyph in HTML.

HTML markup
2

Decimal HTML Code

&#8550; uses the decimal code point value 8550 to render the same character.

HTML markup
3

CSS Entity (Escape)

\2166 is used in CSS (often in content) to generate Ⅶ in pseudo-elements like ::before and ::after.

CSS stylesheet
=

Same visual result

All methods render . Unicode is U+2166 (Number Forms). There is no named HTML entity for this character.

Use Cases

The Roman numeral seven (Ⅶ) commonly appears in the following scenarios:

📋 Outlines

Formal numbering in documents (Ⅰ, Ⅱ, Ⅲ, Ⅳ, Ⅴ, Ⅵ, Ⅶ).

📚 Publishing

Volumes, parts, and chapters (e.g., Volume Ⅶ, Part Ⅶ).

⚖️ Legal & Academic

Articles, acts, and sections (e.g., Article Ⅶ).

🕐 Clock Faces

Clock numerals and decorative numbering styles.

📝 Headings

Section headings like “Part Ⅶ” or series labels (Edition Ⅶ).

🎨 Typography

Use a single glyph for consistent roman spacing in headings.

💡 Best Practices

Do

  • Use <ol style="list-style-type: upper-roman"> when it’s truly a list
  • Use numeric references (&#x2166; / &#8550;) for portability
  • Verify font support for Number Forms if the glyph is critical
  • Keep numbering style consistent within a section
  • Pair with text context when needed (e.g., “Part Ⅶ”)

Don’t

  • Use Ⅶ where plain Latin “V” + “I” + “I” is semantically intended (they can behave differently)
  • Assume all fonts include Number Forms
  • Mix uppercase and lowercase roman styles without reason
  • Use the CSS escape inside HTML content
  • Replace semantic list structure with decorative glyphs

Key Takeaways

1

Use numeric references in HTML

&#x2166; &#8550;
2

For CSS, use the escape in the content property

\2166
3

Unicode U+2166 is in Number Forms

4

Ⅶ is a roman numeral glyph, not generic body text

5

There is no named HTML entity for Ⅶ

❓ Frequently Asked Questions

Use &#x2166; (hex) or &#8550; (decimal) in HTML. In CSS, use \2166 in the content property. All render Ⅶ.
U+2166 (hex 2166, decimal 8550). It’s part of the Number Forms Unicode block.
Use it for outlines, headings, academic/historical references, clock faces, and volume/chapter numbering where uppercase Roman numerals are conventional.
HTML numeric references (&#8550; or &#x2166;) are used directly in markup. The CSS escape \2166 is used in stylesheets (often in content on pseudo-elements). Same glyph, different layer.
Number Forms characters like Ⅶ are normally referenced using numeric Unicode codes. It’s standard to use &#x2166; or &#8550; instead of a named entity.

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