@charsetに対応しているなら、このページは明朝体で表示されるはずです。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja">
<head>
<META http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<META http-equiv="Content-Style-Type" content="text/css">
<title>文字コードを指定する</title>
<link rel="stylesheet" type="text/css" href="eucjp.css">
</head>
<body>
<h1>@charsetルール</h1>
<p>@charsetに対応しているなら、このページは明朝体で表示されるはずです。</p>
</body>
</html>
eucjp.cssの表示
@charset "euc-jp"; body { background-color: #FFC; color black;
margin-left: 2em; margin-right: 2em; font-family: "」ヘ」モ 」ミフタトォ",
ハソタョフタトォ, serif; } h1 { background-color: purple; color: white; font-size:
1.5em; } p { line-height: 1.5; }