htmlfan Posted February 2, 2015 Share Posted February 2, 2015 Hi, I was wondering: Is it okay to use ascii numbers to create characters when I make an html5 document. For example, is it okay to make an em dash by typing alt+151? — or should I be using the html number method such as typing in — Link to comment Share on other sites More sharing options...
Ingolme Posted February 2, 2015 Share Posted February 2, 2015 If the encoding is UTF-8 any character will work and it makes no difference whether you use an entity or the actual character. If you're using other encodings such as windows-1252 or ISO-8859-X then you will need entities for characters that aren't included in those character sets. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now