Colon

:

Shortcodes

Copy and paste codes for Colon symbol : to use in your websites, apps, blogs, and more.

Unicode
U+003A
Alt Code
58
HTML Code
:
HEX Code
:
CSS Code
\03A
JS/JSON
\u003A
Unix/C/PHP/JAVA
0x3A
URL-encode
%3A
copied

Customize Colon Symbol

Customize : symbol as you like and download Colon 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.
:

                        
                    

How to type Colon symbol : ?

Using Colon Alt Code:

You can type the Colon symbol : using your keyboard by using the Alt Code for Colon. 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 58 using the Numpad.
  3. Release the Alt key.

This will make the : appear on your screen.

How to add Colon symbol in HTML, CSS, and JS?

Insert : Colon using HTML

1. Copy-paste Colon directly:
<span>:</span>
2. HTML Decimal Code:
<span>&#58;</span>
3. Hexadecimal Code:
<span>&#x003A;</span>
Preview: :

Add Colon symbol with CSS

.colon::before {
    content: '\\03A';
}
Preview: Colon

Colon JavaScript Code

1. Direct Symbol:
document.querySelector('.colon').textContent = ':';
2. Unicode Escape for ::
document.querySelector('.colon').textContent = '\u003A';
Preview: :