$
Technical information
Symbol | $ | |
Name | Dollar sign | |
Unicode number | U+0024 | |
Category | Presently Currency SymbolsASCII Table2. ASCII punctuation and symbols |
Description | The Unicode character $, or U+0024, is known as the "Dollar Sign". It is part of the "Basic Latin" block and falls under the "Currency Symbol" category in the Unicode standard. The dollar sign is used primarily to denote the currency of several countries, most notably the United States, but also others such as Canada, Australia, and Singapore among others. The symbol is placed before the amount, e.g., $10 means ten dollars. The precise origins of the symbol are uncertain, but it is commonly thought to derive from the Spanish peso symbol of the 18th century. Despite being primarily a symbol for currency, it also has uses in other fields such as programming where it often denotes variables or string identifiers. |
Encoding
HTML Entity | $ | |
HTML Entity (hex) | $ | |
HTML Entity (named) | $ | |
URL Escape Code | %24 | |
UTF-8 (hex) | 0x24 | |
UTF-8 (binary) | 00100100 | |
UTF-16 | 0x0024 | |
UTF-32 | 0x00000024 |
Source Code
C, C++, and Java | "\u0024" | |
CSS Code | \0024 | |
JavaScript | "\u0024" | |
Perl | \x{0024} | |
Python 2 | u"\u0024" | |
Python 3 | \u0024 | |
Ruby | \u{0024} |
Preview
This Unicode character looks like this $ in sentence and in bold like this $ and in italic like this $.
input-group
Font size:
$
12px
$
16px
$
20px
$
28px
$
36px
$
48px
$
72px
CSS Property: font-weight
$
100
$
200
$
300
$
400
$
500
$
600
$
700
$
800
$
900
HTML Forms and Input
input
disabled input
$
select
button
button
Code examples in HTML and CSS
The symbol in different fonts
$
-apple-system
$
Apple Color Emoji
$
Arial
$
BlinkMacSystemFont
$
Courier New
$
Georgia
$
Droid Sans
$
Helvetica
$
Noto Sans
$
Oxygen
$
Roboto
$
"Segoe UI"
$
sans-serif
$
Segoe UI Emoji
$
Segoe UI Symbol
$
system-ui
$
Times New Roman
$
Ubuntu
$
Verdana