This page explains when to use em dashes. For information about hyphens, see the following:
Em dashes
To indicate a break in the flow of a sentence—or an interruption—use an emdash, also known as a long dash. Don't put a space before or after it.
You can type the em dash character in various ways:
- HTML
- —
- macOS
- Press Option+Shift+hyphen.
- Linux desktop environment
- Enable the Compose key (instructions for doing that vary depending onyour flavor of Linux—for examples, see Linux Keyboard Shortcuts ForText Symbols). After the Compose key is enabled, you can create an em dashby typing the Compose key followed by three hyphens.
- Alternatively, press Control+Shift+U. Let go of those keys, and then type 2014. Then press Return.
- Windows
- Turn num lock on, and then hold down the left Alt key and type 0151 on the numeric keypad.
Don't use an en dash (the shorter dash) or a hyphen in place of an em dash.The use of an en dash with spaces around it in place ofan em dash is gradually becoming more common, but it's still not very widespreadin the US in professional publishing; so far (as of early 2016), it's mostlyused in Canada and a few other places. For now, only use the em dash.
En dashes
Don't use. Instead, use a hyphen or the word to. For more information, see the following:
Colons instead of dashes in description lists
Another common but nonstandard construction is to use an em dash, an en dash, or a hyphen surrounded by spaces to separate an item and its description. Instead, use a colon or a period. For a series of items, use an HTML description list (<dl>
).
Recommended: Example: This is an example.
Not recommended: Example - This is an example.
Recommended: Appendix A: My first appendix
Not recommended: Appendix A—My first appendix
Recommended:
<dl> <dt>Example</dt> <dd>This is an example.</dd> <dt>Another example</dt> <dd>This is another example.</dd> </dl>
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-05-09 UTC.
[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"Missing the information I need" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"Too complicated / too many steps" },{ "type": "thumb-down", "id": "outOfDate", "label":"Out of date" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"Samples / code issue" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }] [{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]