More
More
Left Single Quote HTML entity ‘
‘ is the HTML entity for Left Single Quote ‘ (U+2018). Copy the decimal ‘ and hex ‘ codes plus CSS, JavaScript, Python and URL escapes.
- Entity
‘- Also written
‘- Code point
- U+2018
- Unicode name
- LEFT SINGLE QUOTATION MARK
- Block
- General Punctuation
- Category
- Initial quote (Pi)
- 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: "\2018";In a stylesheet, for ::before and ::after. | |
| JavaScript | "\u2018"Also valid in JSON. | |
| Python | "\u2018"Python 3 string literal. | |
| Python by name | "\N{LEFT SINGLE QUOTATION MARK}"Readable alternative using the Unicode name. | |
| URL | %E2%80%98Percent-encoded UTF-8 bytes, for a path or query value. | |
| UTF-8 bytes | E2 80 983 bytes. | |
| UTF-16 | 20181 code unit, which is what JavaScript length counts. |
When to use it
The opening single quote. British style uses single quotes first; US style uses them for a quote within a quote. Pair it with ’.
The name dates from HTML 4, so it works in every browser and in old email clients.
More punctuation and typography
‚Single Low Quote―Horizontal Bar“Left Double Quote—Em Dash”Right Double Quote–En Dash„Double Low Quote‐Hyphen
All punctuation and typography · 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).