HTML Entity for Contains Long Horizontal Stroke (⋺)

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
U+22FAMathematical Operators (U+2200–U+22FF)
⋺Hexadecimal reference
⋺Decimal reference
⋺Standard HTML entity
Name Value
──────────── ──────────
Unicode U+22FA
Hex code ⋺
HTML code ⋺
Named entity ⋺
CSS code \22FAComplete HTML Example
This example demonstrates Contains Long Horizontal Stroke (⋺) using hexadecimal code, decimal HTML code, the named entity ⋺, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\22FA";
}
</style>
</head>
<body>
<p>Contains Long Horizontal Stroke using Hexa Decimal: ⋺</p>
<p>Contains Long Horizontal Stroke using HTML Code: ⋺</p>
<p>Contains Long Horizontal Stroke using HTML Entity: ⋺</p>
<p id="point">Contains Long Horizontal Stroke using CSS Entity: </p>
</body>
</html>🌐 Browser Support
U+22FA is supported in modern browsers; use a math-capable font for best glyph quality:
👀 Live Preview
See the contains-long-horizontal-stroke operator in context:
🧠 How It Works
Hexadecimal Code
⋺ references code point U+22FA using hex digits 22FA.
Decimal HTML Code
⋺ is the decimal equivalent (8954) for the same character.
Named HTML Entity
⋺ is the standard named entity for U+22FA—readable for set-theory notation.
CSS Entity
\22FA is the CSS escape for U+22FA, used in the content property of ::before or ::after.
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:
Specialized “contains with long horizontal stroke” relations in formal notation.
Advanced discrete math and logic course materials.
Technical PDFs and HTML preprints with set-relation operators.
Symbol glossaries and character reference tables for math HTML.
Examples showing ⋺ alongside numeric references.
Tools rendering math symbols without full MathML.
Describe the relation in text; do not rely on the glyph alone.
💡 Best Practices
Do
- Prefer
⋺for readable hand-written HTML - Use math fonts (Cambria Math, STIX Two Math) for clear operators
- Keep entity style consistent across a document
- Use
\22FAonly inside CSScontent - 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
\022FAwith 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
Named entity for easy authoring
⋺Numeric references also render ⋺
⋺ ⋺For CSS stylesheets, use the escape in the content property
\22FAU+22FA CONTAINS WITH LONG HORIZONTAL STROKE
Four methods, one glyph — widely supported in modern browsers
❓ Frequently Asked Questions
⋺ (named entity), ⋺ (hex), ⋺ (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.⋺, ⋺, or ⋺) go directly in markup. The CSS escape \22FA is used in stylesheets, typically in the content property of pseudo-elements.⋺ 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.
8 people found this page helpful
