— or —
Is there a difference between these? Is one better-supported than the other?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
SGML parsers (or XML parsers in the case of XHTML) can handle
—without having to process the DTD (which doesn’t matter to browsers as they just slurp tag soup), while—is easier for humans to read and write in the source code.Personally, I would stick to a literal em-dash and ensure that my character encoding settings were consistent.