Standards HTML

なんかいつも、これでいいのかなと思いながらHTML書いているので
とりあえずいま、現時点で正しいと思われるHTMLのテンプレートを
作りました。つーか結構ややこしいです。
決してW3Cにしたがわないやつは、ほげほげしてしまえとか
これっぽちも思わないし、別に表示できればいいじゃんてのも
場合によってはありだと思いますが、正しいと思われることを
知るのは悪いことじゃないので。
(W3C validatorは通した)

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml11.dtd">
<!-- don't use content type text/html --> 
<?xml-stylesheet href="basic.css" type="text/css" title="priority01" media="screen" charset="UTF-8"?>
<!-- end --> 
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
  <head profile="http://purl.org/net/ne/metaprof">
    <title>sample</title>
    <!-- don't use content type application/xml or application/xhtml+xml --> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta http-equiv="Content-Script-Type" content="text/javscript" />
    <link rel="stylesheet" href="basic.css" type="text/css" media="screen" charset="UTF-8"/>
    <!-- end --> 
  </head>
  <body>
    <h1>first</h1>
    <div class="section">
      <h2>second</h2>
      <div class="section">
        <h3>third</h3>
      </div>
    </div>
  </body>
</html>

参考は、最近復刊された実践Web Standards Design。

実践 Web Standards Design ~Web標準の基本とCSSレイアウト&Tips~

実践 Web Standards Design ~Web標準の基本とCSSレイアウト&Tips~

他の本を読んだわけではないので、わからないが
いい本だと思います。

memo: Higher-Order-Perl p.30まで読んだ。
偽lisperのおれにはたぶんおもしろい。