More
More
Script Capital M HTML entity ℳ
ℳ is the HTML entity for Script Capital M ℳ (U+2133). Copy the decimal ℳ and hex ℳ codes plus CSS, JavaScript, Python and URL escapes.
- Entity
ℳ- Also written
ℳℳ- Code point
- U+2133
- Unicode name
- SCRIPT CAPITAL M
- Block
- Letterlike Symbols
- Category
- Uppercase letter (Lu)
- 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: "\2133";In a stylesheet, for ::before and ::after. | |
| JavaScript | "\u2133"Also valid in JSON. | |
| Python | "\u2133"Python 3 string literal. | |
| Python by name | "\N{SCRIPT CAPITAL M}"Readable alternative using the Unicode name. | |
| URL | %E2%84%B3Percent-encoded UTF-8 bytes, for a path or query value. | |
| UTF-8 bytes | E2 84 B33 bytes. | |
| UTF-16 | 21331 code unit, which is what JavaScript length counts. |
When to use it
ℳ writes U+2133 (Script Capital M), a capital letter from the Unicode Letterlike Symbols 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
ℵAlef SymbolℰScript Capital EℶBet SymbolℭBlack-Letter Capital CℷGimel SymbolℬScript Capital BℸDalet Symbol℩Turned Greek Small Letter Iota
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).