HTML Entity for Colon Equals (≔)

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

What You'll Learn

How to display the Colon Equals (≔) symbol in HTML using numeric references, the named entity, and CSS escapes. This character is U+2254 (COLON EQUALS) in the Mathematical Operators block (U+2200–U+22FF). It denotes definition or assignment-by-definition in mathematics, logic, and documentation.

You can use the named entity ≔, hex ≔, decimal ≔, or CSS \2254. Do not confuse ≔ with Equals Colon U+2255 (≕), the plain colon U+003A (:), or the two-character sequence := in source code.

⚡ Quick Reference — Colon Equals

Unicode U+2254

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+2254
Hex code       ≔
HTML code      ≔
Named entity   ≔
CSS code       \2254
1

Complete HTML Example

This example demonstrates the Colon Equals (≔) using hexadecimal code, decimal HTML code, the named entity ≔, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2254";
  }
 </style>
</head>
<body>
<p>Colon Equals using Hexa Decimal: &#x2254;</p>
<p>Colon Equals using HTML Code: &#8788;</p>
<p>Colon Equals using HTML Entity: &colone;</p>
<p id="point">Colon Equals using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+2254 is supported in modern browsers; math fonts improve glyph quality:

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

👀 Live Preview

See the Colon Equals symbol in mathematical contexts:

Definition x ≔ 5   n &colone; 10
Named entity Let f &colone; x ↦ x²
Large glyph
vs related operators Colon Equals: ≔ (U+2254)   Equals Colon: ≕ (U+2255)   Assign: := (two chars)
Monospace refs &#x2254; &#8788; &colone; \2254

🧠 How It Works

1

Hexadecimal Code

&#x2254; references code point U+2254 using hex digits 2254.

HTML markup
2

Decimal HTML Code

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

HTML markup
3

Named HTML Entity

&colone; is the standard named entity for U+2254—short for “colon equals.”

HTML markup
4

CSS Entity

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

CSS stylesheet
=

Same visual result

All four methods produce the Colon Equals glyph: . Unicode U+2254 sits in Mathematical Operators (U+2200–U+22FF).

Use Cases

The Colon Equals symbol (≔) commonly appears in:

📐 Mathematics

Definitions and assignment-by-definition in equations and proofs (e.g. x ≔ 5).

💻 Pseudocode

Programming documentation and language specs using Pascal-style definition notation.

🔢 Logic

Formal specification and logic texts where ≔ means “is defined as.”

📚 Education

Math and computer science tutorials, courses, and reference pages.

📄 Technical docs

API documentation, specification wikis, and notation guides.

🔤 Symbol references

Unicode tables and Mathematical Operators glossaries.

♿ Accessibility

Pair with MathML or alt text (e.g. “is defined as”) for screen readers.

💡 Best Practices

Do

  • Prefer &colone; for readable HTML when writing definitions by hand
  • Use math-oriented fonts (Cambria Math, STIX, Noto Sans Math) for clearer glyphs
  • Keep entity style consistent within a document
  • Use \2254 only inside CSS content, not in HTML text nodes
  • Consider MathML or KaTeX/MathJax for complex multi-line equations

Don’t

  • Confuse U+2254 (≔) with U+2255 equals colon (≕) or plain colon (:)
  • Use U+02254 notation—the correct code point is U+2254
  • Substitute the two-character := when a single definition glyph is intended
  • Assume every assignment operator is interchangeable in formal notation
  • Mix entity styles randomly in one file

Key Takeaways

1

Named entity is the easiest option

&colone;
2

Numeric references also render ≔

&#x2254; &#8788;
3

For CSS stylesheets, use the escape in the content property

\2254
4

U+2254 COLON EQUALS

5

Four methods, one glyph — widely supported in modern browsers

❓ Frequently Asked Questions

Use &colone; (named entity), &#x2254; (hex), &#8788; (decimal), or \2254 in CSS content. All produce ≔.
U+2254 (COLON EQUALS). Mathematical Operators (U+2200–U+22FF). Hex 2254, decimal 8788.
In mathematical definitions, programming pseudocode, logic notation, educational content, and any document requiring the single-glyph “is defined as” symbol.
HTML entities (&colone;, &#8788;, or &#x2254;) go directly in markup. The CSS escape \2254 is used in stylesheets, typically in the content property of pseudo-elements.
Yes. &colone; is the named entity for U+2254. Equals Colon is a different character: U+2255 (≕).

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