HTML Entity for Divides (∣)

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

What You'll Learn

How to display the Divides symbol (∣) in HTML using named, hexadecimal, decimal, and CSS entity methods. This character is U+2223 (DIVIDES) in the Mathematical Operators block (U+2200–U+22FF) and means a divides b in mathematics (e.g. 312).

Render it with the named entity ∣, ∣, ∣, or CSS escape \2223 in the content property. Do not confuse with the pipe character | (U+007C) or the division sign (÷).

⚡ Quick Reference — Divides

Unicode U+2223

Mathematical Operators block

Hex Code ∣

Hexadecimal reference

HTML Code ∣

Decimal reference

Named Entity ∣

Most readable option

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2223
Hex code       ∣
HTML code      ∣
Named entity   ∣
CSS code       \2223
1

Complete HTML Example

This example demonstrates the Divides symbol (∣) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape on a pseudo-element:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2223";
  }
 </style>
</head>
<body>
<p>Divides using Hexadecimal: &#x2223;</p>
<p>Divides using HTML Code: &#8739;</p>
<p>Divides using Named Entity: &mid;</p>
<p id="point">Divides using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Divides entity is universally supported in all modern browsers:

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

👀 Live Preview

See the Divides symbol (∣) rendered live in mathematical contexts:

Divisibility ab means a divides b (e.g. 3∣12)
Large glyph
vs pipe ∣ divides (U+2223)   | pipe (U+007C)
vs division ∣ relation   ÷ arithmetic operator
Monospace refs &mid; &#x2223; &#8739; \2223

🧠 How It Works

1

Named Entity

&mid; is the HTML named entity for the Divides symbol — easy to read in source and widely used for mathematical divisibility.

HTML markup
2

Hexadecimal Code

&#x2223; uses the Unicode hexadecimal value 2223 to display the Divides symbol. The x prefix indicates hexadecimal format.

HTML markup
3

Decimal HTML Code

&#8739; uses the decimal Unicode value 8739 to display the same character.

HTML markup
4

CSS Entity

\2223 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
=

Same visual result

All four methods produce the Divides glyph: . Unicode U+2223 sits in Mathematical Operators (U+2200–U+22FF). Not the same as | (U+007C).

Use Cases

The Divides symbol (∣) commonly appears in the following scenarios:

🔢 Number theory

Express ab, prime factors, divisibility rules, and number-theoretic notation.

📐 Algebra & math

Polynomial division, group theory, and academic math on the web.

📚 Education

Online courses, tutorials, and quizzes teaching divisibility and factors.

💻 Technical docs

Algorithm descriptions and articles with divides relations in formulas.

📝 Formula display

LaTeX-style or MathML pages needing ∣ instead of the ASCII pipe.

📑 Entity references

Mathematical Operators lists and HTML entity guides for science projects.

💡 Best Practices

Do

  • Use &mid; for readable source markup
  • Pick one style (hex / decimal / named) per project
  • Use fonts that cover Mathematical Operators (U+2200–U+22FF)
  • Pair ∣ with text or MathML/ARIA for accessibility
  • Use ∣ for divisibility, not the pipe |

Don’t

  • Confuse &mid; (∣) with | (U+007C pipe)
  • Use divides where you mean division (÷)
  • Use CSS escape \2223 inside HTML markup
  • Mix entity styles randomly in one file
  • Assume every font renders ∣ identically to |

Key Takeaways

1

Three HTML references all render ∣

&#x2223; &#8739; &mid;
2

For CSS stylesheets, use the escape in the content property

\2223
3

Unicode U+2223 means “a divides b” in Mathematical Operators

4

Prefer &mid; for readability in HTML source

5

Not interchangeable with | (pipe) or ÷ (division sign)

❓ Frequently Asked Questions

Use &mid; (named), &#x2223; (hex), &#8739; (decimal), or \2223 in CSS content. All produce ∣.
U+2223 (hex 2223, decimal 8739) in the Mathematical Operators block. It denotes divisibility (e.g. 312 means 3 divides 12).
In mathematical content, number theory, algebra, educational pages, LaTeX-style notation, and any web content that needs the divides relation (ab).
&mid; (U+2223) is the mathematical divides symbol ∣. The pipe | is U+007C, used in programming or as a separator. Use &mid; for divisibility.
Divides (∣, &mid;) is a relation (“a divides b”). The division sign (÷) is an arithmetic operator for quotient. See Division for ÷.

Explore More HTML Entities!

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