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.
CSScontent: "\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 bytesE2 85 9B3 bytes.
UTF-16215B1 code unit, which is what JavaScript length counts.

When to use it

&frac18; 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

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).