Mathematical Script Capital D HTML entity 𝒟

𝒟 is the HTML entity for Mathematical Script Capital D ๐’Ÿ (U+1D49F). Copy 𝒟, 𝒟 and the CSS, JavaScript, Python and URL escapes.

Entity
𝒟
Code point
U+1D49F
Unicode name
MATHEMATICAL SCRIPT CAPITAL D
Block
Mathematical Alphanumeric Symbols
Category
Uppercase letter (Lu)
Since
Unicode 3.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: "\1D49F";In a stylesheet, for ::before and ::after.
JavaScript"\uD835\uDC9F"Also valid in JSON. Characters above U+FFFF are written as a surrogate pair.
JavaScript (ES6)"\u{1D49F}"Code point escape; not valid in JSON.
Python"\U0001d49f"Python 3 string literal.
Python by name"\N{MATHEMATICAL SCRIPT CAPITAL D}"Readable alternative using the Unicode name.
URL%F0%9D%92%9FPercent-encoded UTF-8 bytes, for a path or query value.
UTF-8 bytesF0 9D 92 9F4 bytes.
UTF-16D835 DC9F2 code units, which is what JavaScript length counts.

When to use it

𝒟 writes U+1D49F (Mathematical Script Capital D), a capital letter from the Unicode Mathematical Alphanumeric Symbols block, encoded since Unicode 3.1. These letters are distinct symbols in mathematics. Using them to style ordinary text breaks search, copy and screen readers.

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 maths letters: script, fraktur and double-struck

All maths letters: script, fraktur and double-struck ยท 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).