HTML Entity for Prime (′)

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

What You'll Learn

How to display the prime symbol (′) in HTML using various entity methods. This punctuation mark denotes feet, arcminutes, minutes of time, or a first derivative—for example 5′10″ (five feet ten inches) or 45′ (forty-five arcminutes).

This character is part of the General Punctuation Unicode block and can be rendered with a hexadecimal reference, a decimal reference, the named entity ′, or a CSS escape in the content property. Do not confuse ′ with prime numbers in mathematics or with the apostrophe U+0027 (‘).

⚡ Quick Reference — Prime

Unicode U+2032

General Punctuation block

Hex Code ′

Hexadecimal reference

HTML Code ′

Decimal reference

Named Entity ′

Most readable option

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2032
Hex code       ′
HTML code      ′
Named entity   ′
CSS code       \2032
Meaning        Prime (feet, arcminutes, derivative)
Related        U+2033 = Double prime (″)
               U+0027 = Apostrophe (')
Block          General Punctuation (U+2000–U+206F)
1

Complete HTML Example

A simple example showing ′ using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point::after{
   content: "\2032";
  }
 </style>
</head>
<body>
<p>Height (hex): 5&#x2032; 10&#x2033;</p>
<p>Height (decimal): 5&#8242; 10&#8243;</p>
<p>Derivative (named): f&prime;(x)</p>
<p>Arcminute (CSS): 45<span id="point"></span></p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The prime 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 ′ rendered live in different contexts:

Feet & inches 5′ 10″
Large glyph
Derivative f′(x) = 2x
Arcminutes 30′ 15″ (angle notation)
Entity refs &#x2032; &#8242; &prime; \2032

🧠 How It Works

1

Hexadecimal Code

&#x2032; uses the Unicode hexadecimal value 2032 to display the prime symbol. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

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

HTML markup
3

CSS Entity

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

CSS stylesheet
4

Named Entity

&prime; is the semantic named entity — the easiest to read in source HTML for the prime mark.

HTML markup
=

Same visual result

All four methods produce: . Unicode U+2032 in the General Punctuation block (U+2000–U+206F).

Use Cases

The prime symbol (′) commonly appears in:

📏 Imperial Units

Feet notation: 5′ 10″ for height and dimensional measurements.

🌐 Geography

Latitude and longitude with arcminutes and arcseconds.

📐 Mathematics

First derivatives: f′(x), and angular measurement in degrees.

⏱️ Time Notation

Minutes in time expressions (e.g. 5′ 30″ for five minutes thirty seconds).

📄 Scientific Papers

Physics, astronomy, and engineering documents with precise units.

🎓 Education

Math and science textbooks teaching unit and derivative notation.

♿ Accessibility

Pair ′ with spoken equivalents like “feet” or “prime” where helpful.

💡 Best Practices

Do

  • Use &prime; for readable prime markup
  • Pair ′ with ″ (&Prime;) for feet/inches or arcminute/arcsecond
  • Distinguish ′ from the apostrophe (U+0027)
  • Pick one style (hex / decimal / named) per project
  • Use MathML or LaTeX for complex formulas when appropriate

Don’t

  • Use ′ to mean prime numbers (2, 3, 5, 7…)
  • Substitute a straight apostrophe ' when ′ (&prime;) is intended
  • Confuse ′ with ″ (double prime for inches/arcseconds)
  • Use CSS escape \2032 inside HTML text nodes
  • Use HTML entities in JS (use \u2032 instead)

Key Takeaways

1

Three HTML references all render ′

&#x2032; &#8242; &prime;
2

For CSS stylesheets, use the escape in the content property

\2032
3

Unicode U+2032 belongs to the General Punctuation block (U+2000–U+206F)

4

Prime marks feet/arcminutes—not prime numbers in mathematics

❓ Frequently Asked Questions

Use &#x2032; (hex), &#8242; (decimal), &prime; (named), or \2032 in CSS content. All produce ′.
U+2032 (PRIME). General Punctuation block. Hex 2032, decimal 8242.
No. ′ is a punctuation prime mark for feet, arcminutes, minutes of time, and derivatives—not for denoting prime numbers like 2, 3, or 5.
′ (U+2032, &prime;) is a single prime for feet or arcminutes. ″ (U+2033, &Prime;) is a double prime for inches or arcseconds.
Yes. &prime;, &#8242;, and &#x2032; are equivalent in modern browsers and all render ′.

Explore More HTML Entities!

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