background preloader

Validation

Facebook Twitter

HTML5test - How well does your browser support HTML5? Handling character encodings in HTML and CSS. Intended audience: HTML/XHTML and CSS content authors. This material is applicable whether you create documents in an editor, or via scripting. This tutorial gathers together and organizes pointers to articles that, taken together, help you understand how to handle the essential aspects of authoring (X)HTML and CSS related to characters and character encodings. In a nutshell This section is for people in a hurry who just want to know the key recommendations from the tutorial.

If you don't understand something, or if you want more detail, read the rest of the tutorial. Save your pages as UTF-8, whenever you can. Always declare the encoding of your document. Use the @charset rule for external style sheets (but not CSS in your HTML page) if you have non-ASCII content, such as font names, ids or class names, etc. Try to avoid using the byte-order mark in UTF-8, and ensure that your HTML code is saved in Unicode normalization form C (NFC). Essential background information The byte-order mark (BOM) Outil d'analyse de site web et de référencement. Validateur HTML / XHTML / XML / WML. The W3C Markup Validation Service.