【準備課題51】

DTDの入力練習
Strict が目指す方向ではありましたが、現在それにこだわる必然性はありません


HTML 4.01 Strict

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd"> 
<html lang="ja">
<head>
  <meta http-equiv="content-type" content="text/html; charset=Shift_JIS">
  <title>ページタイトル</title>
  <meta name="description" content="ページ概要">
  <meta name="keywords" content="キーワード1,キーワード2">
  <meta http-equiv="content-style-type" content="text/css">
  <link rel="stylesheet" type="text/css" href="style.css">
  <meta http-equiv="content-script-type" content="text/javascript">
</head>
<body>

<h1>Title</h1>
<p>Text1</p>

<h2>Sub Title</h2>
<p>Text2</p>
<p>Text2</p>

</body>
</html>

HTML 4.01 Transitional

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="ja">
<head>
  <meta http-equiv="content-type" content="text/html; charset=Shift_JIS">
  <title>ページタイトル</title>
  <meta http-equiv="content-style-type" content="text/css">
  <meta name="description" content="ページ概要">
  <meta name="keywords" content="キーワード1,キーワード2">
  <link rel="stylesheet" type="text/css" href="style.css">
  <meta http-equiv="content-script-type" content="text/javascript">
</head>
<body>

<h1>Title</h1>
<p>Text1</p>

<h2>Sub Title</h2>
<p>Text2</p>
<p>Text2</p>

</body>
</html>

XHTML 1.0 Transitional

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">