HTML Entity for Equal To (=)

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

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

Unicode U+003D

Basic Latin (ASCII)

Hex Code =

Hexadecimal reference

HTML Code =

Decimal reference

Named Entity =

Equals sign

Reference Table
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 (≝)
1

Complete HTML Example

This example demonstrates the Equal To (=) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\3D";
  }
 </style>
</head>
<body>
<p>Equal To using Hexadecimal: &#x3D;</p>
<p>Equal To using HTML Code: &#61;</p>
<p>Equal To using HTML Entity: &equals;</p>
<p id="point">Equal To using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Equal To entity is universally supported in modern browsers:

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

👀 Live Preview

See the equals sign (=) in equations and compared with identical to (≡):

Equation 2 × 3 = 6
Large glyph =
vs identical = equality   vs   &equiv; ≡ identity
Entities &equals; =
Numeric refs &#x3D; &#61; &equals;

🧠 How It Works

1

Hexadecimal Code

&#x3D; uses the Unicode hexadecimal value 3D to display the equals sign. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

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

HTML markup
3

Named Entity

&equals; is the standard named entity for U+003D. It is readable in equations and comparison markup.

HTML markup
4

CSS Entity

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

CSS stylesheet
=

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:

📐 Math

Equations, formulas, and arithmetic expressions on the web.

🎓 Education

Lessons, quizzes, and homework with explicit equals notation.

💻 Programming

Docs and tutorials showing assignment and comparison syntax.

📊 Comparisons

Product specs, pricing tables, and feature comparisons.

📝 Forms

Labels and hints where = must be escaped in attributes.

🌐 Encoding

Consistent UTF-8 pages with explicit character references.

💡 Best Practices

Do

  • Type = directly for most plain text
  • Use &equals; 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 &equiv; (≡, identical to)
  • Use entities everywhere when a literal = is simpler
  • Put CSS escape \3D in HTML text nodes
  • Mix assignment = and comparison == in code examples without context
  • Forget to escape = in URL query strings when required

Key Takeaways

1

Three HTML references plus CSS all render =

&#x3D; &#61; &equals;
2

For CSS stylesheets, use the escape in the content property

\3D
3

Unicode U+003D — Basic Latin EQUALS SIGN

4

Typing = on the keyboard is valid for most content

5

Identical to is ≡ (&equiv;, U+2261), not the same as =

❓ Frequently Asked Questions

Use &#x3D; (hex), &#61; (decimal), &equals; (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.
When you need semantic or explicit encoding, escaping in attributes, or readable equation markup. For ordinary prose, typing = is usually enough.
= (U+003D, &equals;) means equality in value or assignment context. &equiv; renders ≡ (U+2261, identical to), used when two expressions are definitionally the same.
HTML entities (&#61;, &#x3D;, or &equals;) 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.

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