Continue
Specify Character Set
You can use <meta> tag to specify character set used within the webpage.
Example
By default, Web servers and Web browsers use ISO-8859-1 (Latin) encoding to process Web pages. Following is an example to set UTF-8 encoding:
<!DOCTYPE html>
<html>
<head>
<title>Meta Tags Example</title>
<meta name="keywords" content="HTML, Meta Tags, Metadata" /> <meta name="description" content="Learning about Meta Tags." />
<meta ame="author" content="Mahnaz Mohtashin" />
<meta http-equiv"Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<p>Hello HTMLS!</p>
</body>
</html>
To serve the static page with traditional Chinese characters, the webpage must contain a <meta> tag to set Big5 enco hiding:
<!DOCTYPE html>
<html>
<head>
<title>Meta Tags Example</title>
<meta name="keywords" content="HTML, Meta Tags, Metadata" />
<meta name="description" content="Learning about Meta Tags." />
<meta ame="author" content="Rahnaz Mohtashin" />
</head>
<meta http-equiv="Content-Type" content="text/html; charset-Bigs" />
<body>
<p>Hello HTML51</p>
</body>
</html>
Comments
Post a Comment