More
More
One Quarter Fraction HTML entity ¼
¼ is the HTML entity for One Quarter Fraction ¼ (U+00BC). Copy the decimal ¼ and hex ¼ codes plus CSS, JavaScript, Python and URL escapes.
- Entity
¼- Legacy form
¼(no semicolon)- Code point
- U+00BC
- Unicode name
- VULGAR FRACTION ONE QUARTER
- Block
- Latin-1 Supplement
- Category
- Other number (No)
- Since
- Unicode 1.1
- Defined in
- HTML 4.01 and HTML5
Codes to copy
| HTML named | ¼Works in HTML; in XML only & < > " ' are predefined. | |
|---|---|---|
| HTML decimal | ¼Works in HTML and XML. | |
| HTML hex | ¼Works in HTML and XML. | |
| CSS | content: "\BC";In a stylesheet, for ::before and ::after. | |
| JavaScript | "\u00BC"Also valid in JSON. | |
| Python | "\u00bc"Python 3 string literal. | |
| Python by name | "\N{VULGAR FRACTION ONE QUARTER}"Readable alternative using the Unicode name. | |
| URL | %C2%BCPercent-encoded UTF-8 bytes, for a path or query value. | |
| UTF-8 bytes | C2 BC2 bytes. | |
| UTF-16 | 00BC1 code unit, which is what JavaScript length counts. |
When to use it
A single character for one quarter, from Latin-1 and HTML 4. Fractions without a character of their own can be set with <sup>1</sup>⁄<sub>8</sub> or written as 0.125.
The name dates from HTML 4, so it works in every browser and in old email clients.
Browsers also accept the legacy form ¼ without a semicolon, for compatibility with old pages; new HTML should always end the reference with a semicolon.
More letterlike symbols, numbers and fractions
¹Superscript One¾Three Quarters Fraction³Superscript ThreeℂDouble-Struck Capital C²Superscript Two℅Care ofℋScript Capital HℌBlack-Letter Capital H
All letterlike symbols, numbers and fractions · Every HTML entity · Encode or decode text
Source: the WHATWG HTML Standard list of named character references and the Unicode Character Database (Unicode 18.0).