HTML Entity for Equal To (=)

What You'll Learn
How to display the Equal To (=) in HTML using hexadecimal, decimal, named entity, and CSS escape methods. This character is U+003D (EQUALS SIGN) in the Basic Latin block (U+0000–U+007F)—the standard equals sign used in math, programming, and comparisons.
Render it with =, =, the named entity =, or CSS escape \3D. You can also type = directly on the keyboard; entities help with escaping, semantics, and consistent encoding. Do not confuse = with identical to (≡, ≡) or equal to by definition (≝).
⚡ Quick Reference — Equal To
U+003DBasic Latin (ASCII)
=Hexadecimal reference
=Decimal reference
=Equals sign
Name Value
──────────── ──────────
Unicode U+003D
Hex code =
HTML code =
Named entity =
CSS code \3D
Keyboard = (direct input)
Related U+2261 = Identical to (≡ ≡); U+225D = Equal to by definition (≝)Complete HTML Example
This example demonstrates the Equal To (=) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\3D";
}
</style>
</head>
<body>
<p>Equal To using Hexadecimal: =</p>
<p>Equal To using HTML Code: =</p>
<p>Equal To using HTML Entity: =</p>
<p id="point">Equal To using CSS Entity: </p>
</body>
</html>🌐 Browser Support
The Equal To entity is universally supported in modern browsers:
👀 Live Preview
See the equals sign (=) in equations and compared with identical to (≡):
= equality vs ≡ ≡ identity= =🧠 How It Works
Hexadecimal Code
= uses the Unicode hexadecimal value 3D to display the equals sign. The x prefix indicates hexadecimal format.
Decimal HTML Code
= uses the decimal Unicode value 61 to display the same character.
Named Entity
= is the standard named entity for U+003D. It is readable in equations and comparison markup.
CSS Entity
\3D is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.
Same visual result
All four entity methods produce the equals sign: =. Unicode U+003D in the Basic Latin block. You may also type = directly.
Use Cases
The Equal To (=) commonly appears in:
Equations, formulas, and arithmetic expressions on the web.
Lessons, quizzes, and homework with explicit equals notation.
Docs and tutorials showing assignment and comparison syntax.
Product specs, pricing tables, and feature comparisons.
Labels and hints where = must be escaped in attributes.
Consistent UTF-8 pages with explicit character references.
💡 Best Practices
Do
- Type
=directly for most plain text - Use
=in equations and structured math markup - Escape with entities when
=appears inside attribute values - Serve pages with UTF-8 (
<meta charset="utf-8">) - Use MathML or dedicated math tools for complex formulas
Don’t
- Confuse
=(equals) with≡(≡, identical to) - Use entities everywhere when a literal
=is simpler - Put CSS escape
\3Din HTML text nodes - Mix assignment
=and comparison==in code examples without context - Forget to escape
=in URL query strings when required
Key Takeaways
Three HTML references plus CSS all render =
= = =For CSS stylesheets, use the escape in the content property
\3DUnicode U+003D — Basic Latin EQUALS SIGN
Typing = on the keyboard is valid for most content
Identical to is ≡ (≡, U+2261), not the same as =
❓ Frequently Asked Questions
= (hex), = (decimal), = (named), or \3D in CSS content. You can also type = directly. All produce the equals sign.U+003D (EQUALS SIGN). Basic Latin block (U+0000–U+007F). Hex 3D, decimal 61.= is usually enough.= (U+003D, =) means equality in value or assignment context. ≡ renders ≡ (U+2261, identical to), used when two expressions are definitionally the same.=, =, or =) go directly in markup. The CSS escape \3D is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.Explore More HTML Entities!
Discover 1500+ HTML character references — math, punctuation, and Basic Latin symbols.
8 people found this page helpful
