Jump to content

character set


jimfog

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...