HTML Entity - Em Dash

Last Updated:

Em Dash

unicodeU+02014
hex code—
html code—
html entity—
css code\02014

Example

The following example will demonstrate how to use 'Em Dash' HTML entity using HTML and CSS. For a complete reference, go to our HTML Entities.

HTML Online Compiler
<!DOCTYPE html> <html> <head> <style> #point:after{ content: "\02014"; } </style> </head> <body> <p>EM Dash using Hexa Decimal: &#x2014;</p> <p>EM Dash using HTML Code: &#8212;</p> <p>EM Dash using HTML Entity: &mdash;</p> <p id="point">EM Dash using CSS Entity: </p> </body> </html>

Browser Support

Devicedesktopmobile
Browsergoogle chromesafarifirefoxinternet Exploreredgeoperagoogle chromesafarifirefoxedgeoperaandroid webviewsamsung internet
YesYesYesYesYesYesYes?YesYesYesYes?

Share this Page

Meet the Author