「head」 と 「meta」 の記述をテンプレート化

[G] GoGoトラック 物流マッチングサイト

[bA] Business Architects Inc.

WEB制作会社でSEOと騒ぐわりには見逃されている「head」と「meta」の書き方、サンプルは上記2サイト。企業サイトなどに特に効果的と思える有用で親切なコードだ、自分用にテンプレート化してみる。



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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-style-type" content="text/css" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-language" content="ja" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="imagetoolbar" content="no" />

<meta name="robots" content="INDEX,FOLLOW" />
<meta name="robots" content="NOODP" />
<meta name="robots" content="NOYDIR" />

<meta name="copyright" content="Copyright (c) ■会社名" />
<meta name="tel" scheme="■電話番号" />
<meta name="rating" content="general" />
<meta name="classification" content="general" />
<meta name="coverage" content="worldwide" />
<meta name="targeted geographic area" content="japan" />
<meta name="build" content="01 September 2007" />
<meta name="keywords" content="■キーワード,■キーワード" />


<title>■タイトル</title>

<link rel="index contents" href="■URI" title="ホーム" />
<link rel="chapter" href="■URI" title="■章1" />
<link rel="chapter" href="■URI" title="■章2" />
<link rel="chapter" href="■URI" title="■章3" />
<link rel="chapter help" href="■URI" title="■ヘルプインデックス" />
<link rel="help" href="■URI" title="利用規約" />
<link rel="help" href="■URI" title="プライバシーポリシー" />
<link rel="help" href="■URI" title="FAQ" />
<link rel="help" href="■URI" title="推奨動作環境" />
<link rel="help" href="■URI" title="お問い合わせ" />
<link rel="shortcut icon" type="image/x-icon" href="■URI" />

<link rel="stylesheet" type="text/css" href="■style.css" />
<script type="text/javascript" src="■javascript.js"></script>
</head>

気になるその1「meta build」
フィードでlastmodがあればいいじゃないかという感じ。
ただHTMLでページ数が少なくて、というケースでちゃんと更新していけばそれなりにいいのかもしれない。

気になるその2「favicon」の記述
「shortcut icon」はマイクロソフトが独自に作ったタイプとかなんとかだった気がする。次回はFaviconについてまとめよ。

No comments yet


Copyright © Luvsic. Some rights reserved.