Archive for the ‘Templates’ Category

File Under: HTML, Templates

Content-Type

Every web page should declare a content type. This tells the browser what language and character set to expect when rendering the text and ensures that characters are displayed properly on the page.

Content type declarations go in the <head> of your document.

This is a standard content type declaration:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>


File Under: HTML, Templates

CharSet

Every web page should declare a character set. This is one line of code that tells the browser what language and character set to expect when rendering the text. It ensures that characters are displayed properly on the page.

Character set declarations go in the <head> of your document.

Here are some standard character set declarations for common languages:

English:

 <meta http-equiv="content-type" content="text/html; charset=utf-8" />



Japanese:

 <meta http-equiv="content-type" content="text/html; charset=shift_jis" />

Chinese:

 <meta http-equiv="content-type" content="text/html; charset=gb18030">