jimfog Posted July 11, 2011 Share Posted July 11, 2011 On the top of some css files i see the following code:@charset "utf-8";Obviously this has to do with the character set of the file.Is the above necessary in a css file? Link to comment Share on other sites More sharing options...
Ingolme Posted July 11, 2011 Share Posted July 11, 2011 I never use it. If you saved the CSS file properly in your editor I don't think there's a problem. Maybe it's necessary if your CSS file is in UTF-8 and your HTML document is using another encoding. Link to comment Share on other sites More sharing options...
jeffman Posted July 11, 2011 Share Posted July 11, 2011 More info from W3C. Link to comment Share on other sites More sharing options...
jimfog Posted July 12, 2011 Author Share Posted July 12, 2011 More info from W3C.I read the tutorials in w3 and understood what this declaration is all aboutCharacter encoding was a subject i did not know.UTF encompasses characters beyond English.Thanks for the help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.