HTML Entity for Prime (′)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+2032

What Is Prime?

Prime (′) is the Unicode character at U+2032 in the General Punctuation block. Official name: PRIME. It is used for feet, arcminutes / minutes of time, and first-order primes in math — not for prime numbers.

Remember
Character     ′
Unicode       U+2032
Named entity  ′
Hex entity    ′
Decimal       ′
CSS escape    \2032
Not the same  ″ · ' · ‴

Prefer ′ in HTML markup (lowercase p). You can also type ′ in UTF-8, or use numeric forms when needed.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity′HTML markup (preferred)
Direct character′HTML text (UTF-8)
Hex entity′HTML markup
Decimal entity′HTML markup
CSS escape\2032Stylesheet content
Double prime (related)″ (″, U+2033)Inches, arcseconds, second derivative

When to Use Which

SituationUse
Feet / arcminutes / first prime′ or type ′
Inches / arcseconds / second prime″ / ″
Triple prime (third order)‴ / ‴
Apostrophe / contraction' (U+0027)
Generated text via ::before / ::aftercontent: "\2032"

Live Preview

Prime rendered alone and in common measurement / math uses.

Height 5′ 10″
Large glyph ′
Derivative f′(x) = 2x
Compared ′   ″   ‴   '
With entities Named: ′ | Hex: ′ | Decimal: ′

Complete HTML Example

One page that shows Prime with named, hex, decimal, CSS escape, and a typed character. Use View Output or open the live editor.

Named + Hex + Decimal + CSS + Typed

Five ways to produce ′, plus height and math examples.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Prime (′) in HTML</title>
  <style>
    #point::after {
      content: "\2032";
    }
  </style>
</head>
<body>
  <p>Prime using Named Entity: &prime;</p>
  <p>Prime using Hex Code: &#x2032;</p>
  <p>Prime using HTML Code: &#8242;</p>
  <p id="point">Prime using CSS Entity: </p>
  <p>Typed directly: ′</p>
  <p>Height: 5&prime; 10&Prime;</p>
  <p>First derivative: f&prime;(x)</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &prime; is the HTML5 name for U+2032 → ′. Best default in markup (lowercase p).

2. Hex: U+2032 → &#x2032; in HTML. Same glyph as the named form.

3. Decimal: same code point as 8242 → &#8242;. Same result as hex and named.

4. CSS: use \2032 in content (not an HTML entity). #point::after appends that ′ after the paragraph text.

5. Typed / uses: paste ′ in UTF-8, or write 5&prime; 10&Prime; and f&prime;(x) for real-world examples.

Pitfalls & Tips

Common mistakes when working with Prime.

Case

Lowercase p matters

&prime; is single prime (′). &Prime; is double prime (″). The names are case-sensitive.

'

Not an apostrophe

The ASCII apostrophe ' (U+0027) is for quotes and contractions. Use &prime; for units and math primes.

Numbers

Not prime numbers

Do not use ′ to mean prime numbers (2, 3, 5…). Write the word “prime” or use math notation instead.

″

Pair with double prime

For height like 5′ 10″, use &prime; for feet and &Prime; for inches.

CSS vs HTML

Do not mix escapes

\2032 belongs in CSS strings. &prime; / &#x2032; / &#8242; belong in HTML.

Semicolon

End named entities

Always finish with ; — write &prime;, not &prime.

Browser Support

Prime (U+2032) and its entity forms (&prime;, &#x2032;, &#8242;, CSS \\2032) are supported in all mainstream browsers. Visible glyphs depend on punctuation font coverage.

✓ Universal support

Prime (′)

Encode with named, hex, decimal, CSS escape, or type the character — same code point everywhere encoding is supported.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+2032 / entities Full support

Bottom line: Prefer &prime; in HTML. Use &#x2032; / &#8242; when numeric form is required, and \\2032 only inside CSS content.

Key Takeaways

  • Unicode: prime is U+2032 (decimal 8242) — glyph ′.
  • HTML: prefer &prime; — also &#x2032; / &#8242; / type ′.
  • CSS: use \2032 inside content for generated text.
  • Meaning: ′ = feet / minutes / first prime — not &Prime;, not ', not prime numbers.

One line: U+2032 → &prime; / &#x2032; / &#8242; / CSS \2032.

Frequently Asked Questions

Use &prime; (named), &#x2032; (hex), &#8242; (decimal), type ′ directly in UTF-8, or the CSS escape \2032 in content. Prefer &prime; in normal HTML.
U+2032 (PRIME). Hex 2032, decimal 8242. It belongs to the General Punctuation block (U+2000–U+206F).
Yes. Use &prime; (lowercase p). Numeric forms &#8242; and &#x2032; also work. Do not use &Prime; — that is the double prime U+2033.
Use it for feet (e.g. 5′ 10″), arcminutes or minutes of time, and first-order primes in math (f′). Prefer &Prime; for inches / arcseconds / second derivatives.
No. ′ is a punctuation prime mark for units and derivatives — not for denoting prime numbers like 2, 3, or 5.
No. &prime; is ′ (U+2032). The ASCII apostrophe ' is U+0027 — a different character used for quotes and contractions.

Did you know?

Prime is Unicode U+2032 (decimal 8242) — glyph ′ in the General Punctuation block. HTML5 names it &prime; (lowercase p). Common uses: feet, arcminutes / minutes of time, and the first derivative in math (e.g. f&prime;(x)). Double prime is &Prime; (U+2033). It does not mean prime numbers.

Next: Property Line

Learn the HTML entity for property line (U+214A).

Property Line tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

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