2011/10/18

デフォでつけとけば心やすらぐhtmlのheadメモ

<?xml version="1.0" encoding="utf-8"?>
<!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">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- ファイルタイプと文字コード宣言 -->
 <meta http-equiv="Content-Script-Type" content="text/javascript" /> <!-- javascript使ってるよ宣言 -->
 <meta name="description" content="模検索結果とかで出る説明" /> <!-- 検索結果とかで出る説明 -->
 <meta name="keywords" content="キーワード1,キーワード2" /> <!-- 検索キーワード -->
 <meta name="author" content="俺様ちゃん" /> <!-- このページの作者名 -->
 <meta name="copyright" content="(C)" /> <!-- コピーライト -->
 <meta name="robots" content="ALL" /> <!-- 検索ボット許可 -->
 <title>みんな大好き無名タイトル</title> <!-- ページタイトル -->
 <link rel="start" href="index.htm" /> <!-- ページナビゲーション -->
 <link rev="made" href="renrakusaki@mail.com" /> <!-- 作った人への連絡先(普通メルアドだがスパム祭りになる) -->
 <link rel="shortcut icon" href="favicon.ico" /> <!-- アドレスバーとかのアイコン -->
 <link rel="alternate" type="application/rss+xml" title="フィード名" href="http://rss.rdf" /> <!-- RSSリンク -->
 <link href="css/base.css" rel="stylesheet" type="text/css" />
 <link href="css/index.css" rel="stylesheet" type="text/css" /> <!-- @importはIEバグあるから全部列挙する -->
 <script type="text/javascript" src="js/import.js" charset="utf-8"></script> <!-- スクリプトの読み込みは最後にする -->
</head>
xhtml1.0のサンプル