Jump to content

character set


jimfog
 Share

Recommended Posts

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

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 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...