Digit Four

4

Shortcodes

Copy and paste codes for Digit Four symbol 4 to use in your websites, apps, blogs, and more.

Unicode
U+0034
Alt Code
52
HTML Code
4
HEX Code
4
CSS Code
\034
JS/JSON
\u0034
Unix/C/PHP/JAVA
0x34
URL-encode
4
copied

Customize Digit Four Symbol

Customize 4 symbol as you like and download Digit Four as SVG or PNG or copy its HTML code to use in your projects.

Preview helps customize symbol. Downloaded image and HTML code may have size/spacing differences.
4

                        
                    

How to type Digit Four symbol 4 ?

Using Digit Four Alt Code:

You can type the Digit Four symbol 4 using your keyboard by using the Alt Code for Digit Four. Before you begin, ensure that your Num Lock is turned on, and use the Numpad to type the code. Then, follow these simple steps:

  1. Hold down the Alt key on your keyboard.
  2. Type the number 52 using the Numpad.
  3. Release the Alt key.

This will make the 4 appear on your screen.

How to add Digit Four symbol in HTML, CSS, and JS?

Insert 4 Digit Four using HTML

1. Copy-paste Digit Four directly:
<span>4</span>
2. HTML Decimal Code:
<span>&#52;</span>
3. Hexadecimal Code:
<span>&#x0034;</span>
Preview: 4

Add Digit Four symbol with CSS

.digit-four::before {
    content: '\\034';
}
Preview: Digit Four

Digit Four JavaScript Code

1. Direct Symbol:
document.querySelector('.digit-four').textContent = '4';
2. Unicode Escape for 4:
document.querySelector('.digit-four').textContent = '\u0034';
Preview: 4