HTML Entity for Fraction 1 By 2 (½)

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

What You'll Learn

How to display the Fraction 1 By 2 symbol (½) in HTML using named, hexadecimal, decimal, and CSS escape methods. This character is U+00BD (VULGAR FRACTION ONE HALF) in the Latin-1 Supplement block (U+0080–U+00FF)—a vulgar fraction representing 1⁄2 (one half).

Render it with the named entity ½, ½, ½, or CSS escape \00BD. Do not confuse ½ with fraction one over anything (⅟, U+215F), one third (⅓, U+2153), or plain text 1/2.

⚡ Quick Reference — Fraction 1 By 2

Unicode U+00BD

Latin-1 Supplement

Hex Code ½

Hexadecimal reference

HTML Code ½

Decimal reference

Named Entity ½

One half (most readable)

Reference Table
Name           Value
────────────   ──────────
Unicode        U+00BD
Hex code       ½
HTML code      ½
Named entity   ½
CSS code       \00BD
Meaning        Vulgar fraction one half (1/2)
Related        U+215F = Fraction one (⅟); U+2153 = One third (⅓)
1

Complete HTML Example

This example demonstrates the Fraction 1 By 2 symbol (½) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\00BD";
  }
 </style>
</head>
<body>
<p>Fraction 1 By 2 using Hexadecimal: &#x00BD;</p>
<p>Fraction 1 By 2 using HTML Code: &#189;</p>
<p>Fraction 1 By 2 using HTML Entity: &frac12;</p>
<p id="point">Fraction 1 By 2 using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Fraction 1 By 2 (½) is widely supported in modern browsers with any standard font:

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

👀 Live Preview

See the Fraction 1 By 2 symbol (½) in recipes, math, and measurements:

Recipe ½ cup sugar   ½ tsp salt
Math 2 ½ = 1   ½ + ½ = 1
Large glyph ½
vs other fractions ⅟ one   ½ half   ⅓ third
Entity refs &frac12; &#x00BD; &#189; \00BD

🧠 How It Works

1

Named Entity

&frac12; is the HTML named entity for one half—often preferred in readable recipe and math markup.

HTML markup
2

Hexadecimal Code

&#x00BD; uses the Unicode hexadecimal value 00BD. The x prefix indicates hexadecimal format.

HTML markup
3

Decimal HTML Code

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

HTML markup
4

CSS Entity

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

CSS stylesheet
=

Same visual result

All four methods produce: ½. Unicode U+00BD in Latin-1 Supplement. For Number Forms fractions, see one third (⅓).

Use Cases

The Fraction 1 By 2 symbol (½) is commonly used in:

🍳 Recipes

Cooking sites and measurements (e.g. ½ cup, ½ teaspoon).

∑ Math

Equations, fractions, and math content using one half.

📚 Education

Textbooks, tutorials, and lessons on fractions and ratios.

📊 Data

Statistics, scores, and displays showing half or 50%.

📄 Documents

Legal, academic, or technical documents with vulgar fractions.

🌐 Symbol guides

HTML entity lists, Unicode charts, and character references.

💡 Best Practices

Do

  • Use &frac12; for readable HTML in recipes and math
  • Pair with units (e.g. ½ cup) for clear measurements
  • Latin-1 Supplement (U+00BD) is widely supported in standard fonts
  • Add aria-label (e.g. “one half”) for accessibility
  • Serve pages with UTF-8 (<meta charset="utf-8">)

Don’t

  • Confuse ½ (one half) with ⅟ (fraction one, U+215F)
  • Confuse ½ (1⁄2) with ⅓ (one third, U+2153)
  • Put CSS escape \00BD in HTML text nodes
  • Mix entity styles randomly in one file
  • Use 1/2 when typographic ½ is required for consistency

Key Takeaways

1

Three HTML references plus CSS all render ½

&#x00BD; &#189; &frac12;
2

For CSS stylesheets, use the escape in the content property

\00BD
3

Unicode U+00BD — vulgar fraction one half

4

&frac12; is the standard named entity

5

Next: Fraction 1 By 3 (⅓, U+2153)

❓ Frequently Asked Questions

Use &frac12; (named), &#x00BD; (hex), &#189; (decimal), or \00BD in CSS content. All produce ½.
U+00BD (VULGAR FRACTION ONE HALF). Latin-1 Supplement block (U+0080–U+00FF). Hex 00BD, decimal 189. Represents the vulgar fraction one half (½).
In recipes and measurements, mathematical notation and fractions, educational content, data display, and any content that requires the one-half (½) symbol in typographic form.
Yes. &frac12; is the named HTML entity for U+00BD (½). You can also use &#189; (decimal) or &#x00BD; (hexadecimal). All render the same symbol.
HTML entities (&#189;, &#x00BD;, or &frac12;) go directly in markup. The CSS escape \00BD 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 — fractions, symbols, 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