More
More
Vulgar Fraction One Eighth HTML entity ⅛
⅛ is the HTML entity for Vulgar Fraction One Eighth ⅛ (U+215B). Copy ⅛, ⅛ and the CSS, JavaScript, Python and URL escapes.
- Entity
⅛- Code point
- U+215B
- Unicode name
- VULGAR FRACTION ONE EIGHTH
- Block
- Number Forms
- Category
- Other number (No)
- Since
- Unicode 1.1
- Defined in
- 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: "\215B";In a stylesheet, for ::before and ::after. | |
| JavaScript | "\u215B"Also valid in JSON. | |
| Python | "\u215b"Python 3 string literal. | |
| Python by name | "\N{VULGAR FRACTION ONE EIGHTH}"Readable alternative using the Unicode name. | |
| URL | %E2%85%9BPercent-encoded UTF-8 bytes, for a path or query value. | |
| UTF-8 bytes | E2 85 9B3 bytes. | |
| UTF-16 | 215B1 code unit, which is what JavaScript length counts. |
When to use it
⅛ writes U+215B (Vulgar Fraction One Eighth), a number form from the Unicode Number Forms block, encoded since Unicode 1.1. These characters exist mostly for compatibility with older character sets; for anything beyond simple cases, <sup>, <sub> or MathML give more control.
The name comes from the HTML5 list (much of it shared with MathML), so it works in every current browser but not in XML or XHTML served as XML, where the numeric reference is the safe choice.
More letterlike symbols, numbers and fractions
⅝Vulgar Fraction Five Eighths⅙Vulgar Fraction One Sixth⅞Vulgar Fraction Seven Eighths⅘Vulgar Fraction Four Fifths⅗Vulgar Fraction Three Fifths⅖Vulgar Fraction Two Fifths⅕Vulgar Fraction One Fifth⅔Vulgar Fraction Two Thirds
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).