METAタグの記述方法

ロボット型検索エンジンへの登録


<meta name="robots" content="index,follow">
<meta name="robots" content="index,nofollow">
<meta name="robots" content="noindex,follow">
<meta name="robots" content="noindex,nofollow">
 

indexでこのページを登録。followはこのページのリンク先も登録。
noindex、nofollowは登録しない。

ロボット型検索エンジンキーワード


<meta name="keywords" content="キーワード,キーワード,・・・・">
 

ロボット型検索エンジンの検索結果に表示されるコメント


<meta name="description" content="説明">
 

自動的にページジャンプ


<meta http-equiv="Refresh" content="5;URL=http://www.alles.or.jp/~netcom/">
<meta http-equiv="refresh" content="5">
 

contentの値が何秒後に飛ばすかの秒。
上の例だと、このページにアクセスしてきた5秒後にhttp://www.alles.or.jp/~netcom/へジャンプ
同じページへリロードする場合にはURL入らない。

キャッシュ制御


<meta http-equiv="Pragma" content="no-cache">
 

上の例ではブラウザ側にキャッシュされず。常に、最新のページを読み込ませています。

著作者名登録


<meta name="author" content="名前">
 

文字コードの指定


<meta http-equiv="Content-Type" content="text/html; charset=SHIFT_JIS">
<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-2022-JP">
 

作成プログラム名の登録


<meta name="generator" content="ソフト名、プログラム名">