If you want to add em dash in the content of your website, blog or article then you can use html code to do this. Basically em dash is used to improve readability. If you are one of them who really don’t know about em dash then you are at right place to get answer of your question. Em dash is actually a punctuation mark that is used in place of comma, colon, semi colon, or parentheses.
For a beginners it is difficult to differentiate em dash, en dash, and hyphens. Because they almost look alike, the only difference is of width. The width of em dash is equal to the width of alphabet M, the width of n dash is equal to the alphabet N, and hyphen is narrower than both of these dashes.
How to Add Em Dash by Using Html Code
It is quite simple to add em dash by using html code. You just need to use accurate html entity. Em dash can be add by using html entity number or html entity name. By writing html entity number or html entity name em dash appears on required place.
- Html Entity Number is —
- Html Entity Name is —
Here is an example that will elaborate complete html code of a paragraph that contain an em dash.
<p> I was not feeling well and I meet to my personal doctor — to ask about my health — he completely change my diet plan. He told me to eat healthy foods — eggs, fresh fruits, boiled vegetables — to stay healthy. I told this diet plan to my friends — Richard, John, Jerry, and Emma — and they encourage me to follow this healthy diet plan for getting better results and good health.</p>
I was not feeling well and I meet to my personal doctor—to ask about my health—he completely change my diet plan. He told me to eat healthy foods—eggs, fresh fruits, boiled vegetables—to stay healthy. I told this diet plan to my friends—Richard, John, Jerry, and Emma— and they encourage me to follow this healthy diet plan for getting better results and good health.