www.webdeveloper.com
Results 1 to 7 of 7

Thread: — versus —

  1. #1
    Join Date
    Jan 2005
    Posts
    74

    Question — versus —

    There are 2 codes for the em dash, which one is more backwards compatible for older web browsers?

    — versus —


    Thanks

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    The first is listed as the standard em dash and will display correctly in version4+ browsers
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Jan 2005
    Posts
    74

    yes, but...

    wont the & # 1 5 1 ; code be the most backward compatible, as it will display in 4+ browsers and any versions before?


    thanks

  4. #4
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    Use [ — ] (— / — ) the other is a control character NOT the em dash or —

  5. #5
    Join Date
    Jan 2005
    Posts
    74

    Question what is a control character?

    what is a control character?

  6. #6
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760

  7. #7
    Join Date
    Feb 2005
    Location
    IL
    Posts
    4

    emdash

    We use & # 151 ;
    Our reasoning is that if the page is encoded to low ascii
    <code>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    </code>
    or worse yet: 7-bit US-ASCII

    the browser may throw up with the hi-ascii equivalents. This is even more so with sending HTML email--who knows what YAHOO.com is going to strip out of your HTML!

    em dash & # 151 ; (as long as the M character)
    en dash & # 150 ; (as long as the N character)

    & amp ; is pretty consistently interpreted in browsers, but
    & ndash ; is not supported in all browsers
    Some of my best mistakes I made by accident

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles