HTML Entity for Contains Long Horizontal Stroke (⋺)

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

What You'll Learn

How to display Contains Long Horizontal Stroke (⋺) in HTML using numeric references, the named entity, and CSS escapes. This character is U+22FA (CONTAINS WITH LONG HORIZONTAL STROKE) in the Mathematical Operators block (U+2200–U+22FF). It is used in set theory for the “contains with long horizontal stroke” relation.

Use the named entity ⋺, hex ⋺, decimal ⋺, or CSS \22FA. ⋺ is the most readable option when writing HTML by hand. Do not confuse ⋺ with Contains As Member U+220B (∋) or Contains As Member Small U+220D (∍).

⚡ Quick Reference — Contains Long Horizontal Stroke

Unicode U+22FA

Mathematical Operators (U+2200–U+22FF)

Hex Code ⋺

Hexadecimal reference

HTML Code ⋺

Decimal reference

Named Entity ⋺

Standard HTML entity

Reference Table
Name           Value
────────────   ──────────
Unicode        U+22FA
Hex code       ⋺
HTML code      ⋺
Named entity   ⋺
CSS code       \22FA
1

Complete HTML Example

This example demonstrates Contains Long Horizontal Stroke (⋺) using hexadecimal code, decimal HTML code, the named entity ⋺, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\22FA";
  }
 </style>
</head>
<body>
<p>Contains Long Horizontal Stroke using Hexa Decimal: &#x22FA;</p>
<p>Contains Long Horizontal Stroke using HTML Code: &#8954;</p>
<p>Contains Long Horizontal Stroke using HTML Entity: &nisd;</p>
<p id="point">Contains Long Horizontal Stroke using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+22FA is supported in modern browsers; use a math-capable font for best glyph quality:

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

👀 Live Preview

See the contains-long-horizontal-stroke operator in context:

Named entity A &nisd; B
Set notation Relation: ⋺
Standalone
vs ∋ ⋺ (long stroke)   ∋ (contains member)
Monospace refs &#x22FA; &#8954; &nisd; \22FA

🧠 How It Works

1

Hexadecimal Code

&#x22FA; references code point U+22FA using hex digits 22FA.

HTML markup
2

Decimal HTML Code

&#8954; is the decimal equivalent (8954) for the same character.

HTML markup
3

Named HTML Entity

&nisd; is the standard named entity for U+22FA—readable for set-theory notation.

HTML markup
4

CSS Entity

\22FA is the CSS escape for U+22FA, used in the content property of ::before or ::after.

CSS stylesheet
=

Same visual result

All four methods produce the glyph: . Unicode U+22FA is in Mathematical Operators (U+2200–U+22FF).

Use Cases

Contains Long Horizontal Stroke (⋺) commonly appears in:

📊 Set theory

Specialized “contains with long horizontal stroke” relations in formal notation.

📚 Math education

Advanced discrete math and logic course materials.

📄 Academic papers

Technical PDFs and HTML preprints with set-relation operators.

💻 Documentation

Symbol glossaries and character reference tables for math HTML.

🔤 Entity demos

Examples showing &nisd; alongside numeric references.

📐 Generated HTML

Tools rendering math symbols without full MathML.

♿ Accessibility

Describe the relation in text; do not rely on the glyph alone.

💡 Best Practices

Do

  • Prefer &nisd; for readable hand-written HTML
  • Use math fonts (Cambria Math, STIX Two Math) for clear operators
  • Keep entity style consistent across a document
  • Use \22FA only inside CSS content
  • Distinguish ⋺ from simpler contains operators (∋, ∍)

Don’t

  • Write U+022FA—the correct notation is U+22FA
  • Substitute ∋ when the long-stroke operator is required
  • Use CSS \022FA with a leading zero unless your toolchain requires it—prefer \22FA
  • Put CSS escape in HTML text nodes
  • Mix entity styles randomly in one file

Key Takeaways

1

Named entity for easy authoring

&nisd;
2

Numeric references also render ⋺

&#x22FA; &#8954;
3

For CSS stylesheets, use the escape in the content property

\22FA
4

U+22FA CONTAINS WITH LONG HORIZONTAL STROKE

5

Four methods, one glyph — widely supported in modern browsers

❓ Frequently Asked Questions

Use &nisd; (named entity), &#x22FA; (hex), &#8954; (decimal), or \22FA in CSS content. All four methods render ⋺.
U+22FA (CONTAINS WITH LONG HORIZONTAL STROKE). Mathematical Operators (U+2200–U+22FF). Hex 22FA, decimal 8954.
When you need the ⋺ operator in set theory notation, mathematical documentation, academic content, or technical references for set relations with a long horizontal stroke.
HTML entities (&nisd;, &#8954;, or &#x22FA;) go directly in markup. The CSS escape \22FA is used in stylesheets, typically in the content property of pseudo-elements.
Yes. &nisd; is the named entity for U+22FA. It is well supported in modern browsers for this Mathematical Operators symbol.

Explore More HTML Entities!

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