Exclamation mark appears above the number key 1 on a standard keyboard layout. You can press “Shift + 1” keys to type the exclamation mark. On a mobile keyboard, you may need to press numbers or symbols key and select exclamation mark. However, do you know that you can type more than 10 different types of exclamation mark symbols? For example, you can type upside down exclamation or exclamation with question mark which are generally used as punctuation symbols.
Shortcuts Summary for Exclamation Mark
Before we explain how to type different exclamation mark symbols, here is a summary of shortcuts for the standard exclamation symbol.
Symbol Name | Exclamation Mark |
Alt Code Shortcut | Alt 33 |
Alt + X (Word Document) | 0021 Alt X |
Mac Shortcut | Option 0021 |
HTML Entity Decimal | ! |
HTML Entity Hexadecimal | ! |
HTML Entity Name | & excl ; |
HTML Example | <p>!</p> <p></p> |
CSS Value | \0021 |
CSS Code Example | li:before { content:\0021; } |
JS Unicode Escape Sequence | \u0021 |
JS Example | var str = ‘\u0021’; console.log(str); |
Decimal | 33 |
Hexadecimal | 0021 |
Unicode | U+0021 |
Unicode Block | Basic Latin |
Category | Punctuation & Symbols |
Typing Exclamation Mark in Windows
There are multiple ways to insert the symbol in Windows documents and applications.
- Decimal alt code – On Windows, you can press one of the alt keys and type 33 or 0033 using numeric keyboard.
- Hexadecimal code for Word – Specially on Microsoft Word, type 0021 and press alt and x keys.
- Using Character Map – Press “Win + R” keys to open Run command. Type charmap and press enter to open Character Map utility. Position the cursor where you want to insert the symbol and insert the exclamation mark from Character Map.
Note: There is also five exclamation symbols as part of Unicode emoji. You can insert these emoji symbols using in-built emoji keyboard in Windows 10/11 with “Win + Dot” keys.
Typing Exclamation Mark in Mac
Similar to Windows, you have also multiple options in Mac.
- Using hexadecimal code – On Mac, first change the keyboard layout to Unicode Hex Input. Then hold the option key and type 0021 to create exclamation mark.
- With Character Viewer – Press “Control + Shift + Command” to open Character Viewer utility. You can open this utility by going to the menu “Edit > Emoji & Symbols” in most of the applications like Pages and Keynote. Go to “Punctuation” group and find all exclamation symbols.
Typing Exclamation Mark in HTML, CSS and Scripts
You can simply type the exclamation in HTML web documents. If it does not work, you can either use the entity name or the code value. Also, you need to use the code values in CSS as given below.
- Exclamation mark has both entity name and entity string values. You can use any of these on your HTML documents. Type & e x c l; as entity name or use decimal code (& # 3 3;) or hexadecimal code (& # 0 0 2 1;). The browser will interpret these codes to exclamation symbol when you view the HTML page.
- On CSS and JavaScript, you can simply use the hexadecimal code like \0021; and \u0021 respectively to produce the symbol.
Other Names for Exclamation Mark Symbol
Below are some of the alternate names for the exclamation mark.
- Factorial symbol in mathematics
- Not equal to in coding languages
- Bang is a slang for exclamation mark
- Screamer
- Gasper
- Slammer
- Startler
- Shriek
- Pling
Example of Usage
People use exclamation mark for various purposes. It includes using as a punctuation mark and using as an operator in programming / scripting languages.
- Can you stop it!
- Wow!!!
- In PHP scripting language, A != B indicates A is not equal to B.
Similar Exclamation Mark Symbols
There are different exclamation symbols available in Unicode standard. For example, Alt 8 2 5 2 to type double exclamation mark emoji.
Symbol Description | Symbol | Alt Code |
Inverted Exclamation Mark | ¡ | Alt 161 |
Latin Letter Retroflex Click | ǃ | Alt 451 |
Double Exclamation Mark | ‼ | Alt 8252 |
Question Exclamation Mark | ⁈ | Alt 8264 |
Exclamation Question Mark | ⁉ | Alt 8265 |
White Exclamation Mark Ornament | ❕ | Alt 10069 |
Heavy Exclamation Mark Symbol | ❗ | Alt 10071 |
Modifier Letter Raised Exclamation Mark | ꜝ | Alt 42781 |
Modifier Letter Raised Inverted Exclamation Mark | ꜞ | Alt 42782 |
Modifier Letter Low Inverted Exclamation Mark | ꜟ | Alt 42783 |
Presentation Form For Vertical Exclamation Mark | ︕ | Alt 65045 |
Small Exclamation Mark | ﹗ | Alt 65111 |
Fullwidth Exclamation Mark | ! | Alt 65281 |
If three digit codes are not working then try to use four digits with a leading zero. For example, instead of Alt 1 6 1, use Alt 0 1 6 1. Also, use the HTML shortcuts without any spaces and with ; at the end.
Leave a Reply
Your email is safe with us.