HTML Entity for Fraction 1 By 2 (½)

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

What Is Fraction 1 By 2?

Fraction 1 by 2 (½) is the Unicode character at U+00BD in Latin-1 Supplement. Official name: VULGAR FRACTION ONE HALF. It is one precomposed fraction glyph — not the three characters 1/2.

Remember
Character     ½
Unicode       U+00BD
Named entity  ½  (also ½)
Hex entity    ½
Decimal       ½
CSS escape    \00BD
Meaning       vulgar fraction one half (1/2)
Not the same  1/2 (three chars) · ⅟2 · ⅓ (1/3)

Prefer ½ in HTML for readable markup (or ½, same character). You can also use ½, ½, or type ½ in a UTF-8 document.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity½ / ½HTML markup (preferred)
Hex entity½HTML markup
Decimal entity½HTML markup
Direct character½HTML text (UTF-8)
CSS escape\00BDStylesheet content

When to Use Which

SituationUse
Precomposed one half½ or type ½
Plain ASCII / maximum compatibilityType 1/2 as three characters
One thirdFraction 1 by 3 (⅓)
One quarterFraction 1 by 4 — ¼ (¼)
Generated text via ::before / ::aftercontent: "\00BD"

Live Preview

Fraction alone, in a sample phrase, and next to related fractions.

Glyph ½
Large glyph ½
Sample ½ cup flour
Compared ½   1/2   ⅓   ¼
With entities Named: ½ | Hex: ½ | Decimal: ½

Complete HTML Example

One page that shows one half 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 display ½ in HTML and CSS.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Fraction 1 By 2 (U+00BD) in HTML</title>
  <style>
    #point::after {
      content: "\00BD";
    }
  </style>
</head>
<body>
  <p>Built with Named: &frac12;</p>
  <p>Built with Hex: &#x00BD;</p>
  <p>Built with Decimal: &#189;</p>
  <p id="point">Built with CSS: </p>
  <p>Typed: ½</p>
  <p>Recipe: &frac12; cup flour</p>
  <p>Math: 2 &frac12; = 1</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &frac12; (or &half;) is the HTML5 name for U+00BD → ½.

2. Hex: &#x00BD; inserts the same code point by hexadecimal value.

3. Decimal: same code point as 189 → &#189;. Same visual as named/hex.

4. CSS: use \00BD in content (not an HTML entity). #point::after appends ½.

5. Typed: paste ½ in a UTF-8 document when you need the half glyph as one character.

Pitfalls & Tips

Common mistakes when working with fraction 1 by 2.

Name

Prefer &frac12;

Both &frac12; and &half; are valid. Prefer &frac12; for consistency with other vulgar-fraction names.

1/2

Not three characters

Typing 1/2 creates three code points. ½ is one Latin-1 character.

⅟

Not numerator + 2

⅟2 is a composed lookalike. Prefer &frac12; for the dedicated one-half glyph.

CSS vs HTML

Do not mix escapes

\00BD belongs in CSS strings. &frac12; / &#x00BD; / &#189; belong in HTML.

a11y

Add accessible text

Screen readers usually handle ½ well, but nearby prose (for example “one half”) still helps in dense recipes or math.

Semicolon

End references

Always finish entities with ; — write &frac12;, not &frac12.

Font

Wide support

U+00BD is in Latin-1 and is available in virtually all common fonts.

Browser Support

Fraction 1 by 2 (U+00BD) and its entity forms (&frac12;, &half;, &#x00BD;, &#189;, CSS \\00BD) are supported in all mainstream browsers.

✓ Universal support

Fraction 1 By 2 (½)

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+00BD Full support

Bottom line: Prefer &frac12; in HTML. Use &#x00BD; / &#189; when numeric form is required, and \\00BD only inside CSS content.

Key Takeaways

  • Unicode: fraction 1 by 2 is U+00BD (decimal 189) — glyph ½.
  • HTML: prefer &frac12; — also &half; / &#x00BD; / &#189;.
  • CSS: use \00BD inside content for generated text.
  • Meaning: ½ ≠ 1/2 (three chars) ≠ ⅟2.

One line: U+00BD → &frac12; / &#x00BD; / &#189; / CSS \00BD.

Frequently Asked Questions

Use &frac12; or &half; (named), &#x00BD; (hex), &#189; (decimal), type ½ directly in UTF-8, or the CSS escape \00BD in content.
U+00BD (VULGAR FRACTION ONE HALF). Hex 00BD, decimal 189. It belongs to the Latin-1 Supplement block (U+0080–U+00FF).
Yes. HTML5 defines both &frac12; and &half; for U+00BD. Prefer &frac12; for readable markup.
Use it in recipes, math, and everyday text when you want the single one-half glyph. Prefer typing 1/2 as three characters when plain ASCII is required.
HTML entities (&frac12;, &half;, &#189;, or &#x00BD;) go in markup. The CSS escape \00BD goes in stylesheet strings (usually content on ::before/::after).
No. U+00BD is one character (½). Typing 1/2 creates three characters. Fraction numerator one (U+215F) plus 2 is a composed lookalike, not the dedicated half glyph.

Did you know?

Fraction 1 by 2 is Unicode U+00BD (decimal 189) — glyph ½ (VULGAR FRACTION ONE HALF) in Latin-1 Supplement. HTML5 named entities: &frac12; and &half;. Prefer &frac12; for readable markup. It is one precomposed character, not 1/2 as three characters. Related fractions include one third (⅓) and one quarter (¼).

Next: Fraction 1 By 3

Learn the HTML entity for fraction 1 by 3 (U+2153).

Fraction 1 by 3 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