dashes

✍️ google-blog-style

Source: https://developers.google.com/style/dashes\n\n# Dashes

Stay organized with collections

Save and categorize content based on your preferences.\n\n- Home\n- Products\n- Style\n\n\n## Page Summary\n\n- Em dashes indicate a break or interruption in a sentence and should not have spaces before or after.\n- To create an em dash, use the HTML entity — or platform-specific keyboard shortcuts (provided in the content).\n- Avoid using en dashes or hyphens in place of em dashes; instead, use hyphens or the word "to" where appropriate.\n- Use colons or periods (or HTML description lists for multiple items) to separate items and their descriptions instead of dashes.\n\nEm dashes indicate a break or interruption in a sentence and should not have spaces before or after.\n\nTo create an em dash, use the HTML entity — or platform-specific keyboard shortcuts (provided in the content).\n\nAvoid using en dashes or hyphens in place of em dashes; instead, use hyphens or the word "to" where appropriate.\n\nUse colons or periods (or HTML description lists for multiple items) to separate items and their descriptions instead of dashes.\n\nThis page explains when to use em dashes. For information about hyphens, see the following:\n\n- Hyphens\n- Ranges of numbers\n- Ranges of numbers with units\n\n\n## Em dashes\n\nTo indicate a break in the flow of a sentence—or an interruption—use an em

dash, also known as a long dash. Don't put a space before or after it.\n\nYou can type the em dash character in various ways:\n\nDon'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 of

an em dash is gradually becoming more common, but it's still not very widespread

in the US in professional publishing; so far (as of early 2016), it's mostly

used in Canada and a few other places. For now, only use the em dash.\n\n\n## En dashes\n\nDon't use. Instead, use a hyphen or the word to. For more information, see

the following:\n\n- Ranges of numbers with units\n- Range of numbers\n\n\n## Colons instead of dashes in description lists\n\nAnother 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>).\n\nRecommended: Example: This is an

example.\n\nNot recommended: Example - This is

an example.\n\nRecommended: Appendix A: My first

appendix\n\nNot recommended: Appendix A—My first

appendix\n\nRecommended:\n\n```\n<dl>

<dt>Example</dt>

<dd>This is an example.</dd>

<dt>Another example</dt>

<dd>This is another example.</dd>

</dl>\n```\n