«
»


EMDASH HTML Code

Posted by Marty Dickinson on Apr 20, 2009

The EMDASH is one of the most mis-used, neglected, mysterious marks in the written language. Toss the Internet in there requiring HTML to make the emdash and a whole can of worms opens up for the novice coder. Using a CMS or blog software like WordPress can empower even the most tech UNsavvy administrator to create their own words on an html page, but what happens when they want to emphasize something in a sentence?

Instead of using a proper emdash, which looks like — the writer comes up with convenient alternatives like italic text (hard to read), improperly used quote marks (just wrong gramatically), underlining (making people think there is a link to click), over use of bolding (a real turn off), improper use of two hyphens — (my favorite!), or just plain USING CAPITAL LETTERS, which we all know and love :) .

So, what do we do about this emdash for the web? It’s simple. The code to use for wherever you want to place emdash html code is — (or — but I usually use the — so I’m assured it will work right in older browser versions too).

Here’s how it works.

1) Open your editor so that you are in HTML view
2) Write your sentence for where you want emdash html code to go
3) Add html code between the two words for where you want your emdash to appear

Here’s a correct example:

[Showing HTML] Then I fell in the water—really cold water!
[Result] Then I fell in the water—really cold water!

Not this:

[Showing HTML] Then I fell in the water — really cold water!
[Result] Then I fell in the water — really cold water!

See how I have a space on either side of the html code? That’s not right. A proper emdash needs to butt up to each word.

Add to Del.cio.us RSS Feed Add to Technorati Favorites Stumble It! Digg It!
    www.sajithmr.com

| Permalink | Trackback

Click a Star to Rate This Post:
HoHumHmm, Kinda InterestingPretty GoodThat\\\'s REALLY GoodOMG That\\\'s Amazing! (No Ratings Yet)
Loading ... Loading ...

Tell Others About This Post:

Fatal error: Call to undefined function email_link() in /home/websitew/public_html/wp-content/themes/Cold_Blue_649/single.php on line 62