HTML Entity for Contains Long Horizontal Stroke (⋺)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+22FA

What Is Contains Long Horizontal Stroke?

Contains with long horizontal stroke (⋺) is the Unicode character at U+22FA in the Mathematical Operators block. It is a contains-style set symbol with a long horizontal stroke — related to, but not the same as, plain contains as member (∋).

Remember
Character     ⋺
Unicode       U+22FA
Hex entity    ⋺
Decimal       ⋺
Named entity  ⋺
CSS escape    \22FA
Not the same  ∋ U+220B · ⋾ U+22FD

All of these produce the same glyph: ⋺. Prefer ⋺ or a typed ⋺ in hand-written HTML; use numeric forms when generating markup.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct character⋺HTML text (UTF-8)
Named entity⋺HTML markup
Hex entity⋺HTML markup
Decimal entity⋺HTML markup
CSS escape\22FAStylesheet content

When to Use Which

SituationUse
Contains with long horizontal stroke⋺ or type ⋺
Plain “contains as member”∋ U+220B (∋)
Generated / numeric-only markup⋺ or ⋺
Generated text via ::before / ::aftercontent: "\22FA"
Contains with overbar⋾ U+22FD

Live Preview

Contains with long horizontal stroke rendered next to related contains symbols.

Inline math A ⋺ x
Large glyph ⋺
Compared ⋺   ∋   ⋾
Monospace set ⋺ el
With entities Named: ⋺ | Hex: ⋺ | Decimal: ⋺

Complete HTML Example

One page that shows Contains Long Horizontal Stroke with the named entity, hex entity, decimal entity, CSS escape, and a typed character. Use View Output or open the live editor.

Named + Hex + Decimal + CSS + Typed

Five ways to produce ⋺ in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Contains Long Horizontal Stroke (⋺) in HTML</title>
  <style>
    #point::after {
      content: "\22FA";
    }
  </style>
</head>
<body>
  <p>Contains long stroke using Named Entity: &nisd;</p>
  <p>Contains long stroke using Hex Code: &#x22FA;</p>
  <p>Contains long stroke using HTML Code: &#8954;</p>
  <p id="point">Contains long stroke using CSS Entity: </p>
  <p>Typed directly: ⋺</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &nisd; is the HTML5 named reference for U+22FA → ⋺.

2. Hex: U+22FA → &#x22FA; in HTML. Same glyph as the named form.

3. Decimal: same code point as 8954 → &#8954;. Same result as hex.

4. CSS: use \22FA in content (not an HTML entity). #point::after appends that ⋺ after the paragraph text.

5. Typed: in a UTF-8 page you can paste ⋺ directly. All five lines show the same glyph.

Pitfalls & Tips

Common mistakes when working with Contains Long Horizontal Stroke.

Named

&nisd; ≠ &ni;

&nisd; is U+22FA (⋺). &ni; is U+220B (∋). Different symbols.

Variant

Not plain contains

Use ∋ for everyday contains-as-member. Use ⋺ only when the long-stroke form is required.

Overbar

Not contains overbar

⋾ (U+22FD) is a different contains variant. Pick the code point that matches your notation.

CSS vs HTML

Do not mix escapes

\22FA belongs in CSS. &nisd; / &#x22FA; / &#8954; belong in HTML.

Fonts

Math font coverage

Some fonts omit U+22FA. Prefer a font with Mathematical Operators coverage for display.

Semicolon

End references

Always finish with ; — write &nisd; and &#8954;, not bare forms.

Browser Support

Contains with long horizontal stroke (U+22FA) and its entity forms (&nisd;, &#x22FA;, &#8954;, CSS \\22FA) are supported in all mainstream browsers. Visible glyphs depend on font coverage.

✓ Universal support

Contains Long Horizontal Stroke (⋺)

Encode with named, hex, decimal, CSS escape, or type the character — same glyph everywhere encoding is supported.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+22FA / entities Full support

Bottom line: Prefer &nisd; or typed ⋺ in HTML. Use \\22FA only inside CSS content. Prefer &ni; / ∋ for plain contains-as-member.

Key Takeaways

  • Unicode: contains with long horizontal stroke is U+22FA (decimal 8954) — glyph ⋺.
  • HTML: use &nisd;, &#x22FA;, &#8954;, or type ⋺.
  • CSS: use \22FA inside content for generated text.
  • Watch out: &nisd; ≠ &ni; (⋺ ≠ ∋).

One line: U+22FA → &nisd; / &#8954; / CSS \22FA / type ⋺.

Frequently Asked Questions

Use &#x22FA; (hex), &#8954; (decimal), &nisd; (named), or the CSS escape \22FA in the content property. All render ⋺. You can also paste ⋺ directly when your file is UTF-8.
U+22FA (hex 22FA, decimal 8954). It belongs to the Mathematical Operators block and is a contains-style set symbol with a long horizontal stroke.
Yes. &nisd; is the HTML5 named reference for ⋺. Numeric forms &#8954; and &#x22FA; also work. Do not confuse &nisd; with &ni; (∋, U+220B).
Use it in set-theory or math pages that specifically need the long-horizontal-stroke contains glyph. For plain “contains”, prefer ∋ (U+220B / &ni;).
HTML entities (&nisd;, &#8954;, or &#x22FA;) go in markup. The CSS escape \22FA goes in stylesheet strings (usually content on ::before/::after).
⋺ (U+22FA / &nisd;) is contains with long horizontal stroke. ∋ (U+220B / &ni;) is plain contains as member. ⋽ (U+22FD) is contains with overbar — a different variant.

Did you know?

Contains with long horizontal stroke is Unicode U+22FA (decimal 8954) — glyph ⋺ in the Mathematical Operators block. HTML named reference is &nisd;. It is a contains-style membership symbol with a long horizontal stroke through it — not plain contains as member ∋ (U+220B / &ni;).

Next: Contains Overbar

Learn the HTML entity for contains with overbar (U+22FD).

Contains Overbar tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

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