
headタグ内に記述する主なHTMLタグのまとめ
ウェブサイトに限らず、HTMLファイルはheadタグで囲まれた部分とbodyタグで囲まれた部分に分けることができます。このheadタグ内にはHTMLファイルに関するメタ情報などが入ります。
文字コードの指定
<meta charset="◯◯◯◯◯">ウェブマスターツール所有権の紐付け
<meta name="google-site-verification" content="◯◯◯◯◯">検索エンジンのクロールロボット制御指定
<meta name="robots" content="index,follow"> <meta name="robots" content="noindex,nofollow">ウェブサイトの著者及びコピーライト表示
<meta name="author" content="◯◯◯◯◯"> <meta name="copyright" content="◯◯◯◯◯">ウェブサイトのキーワードを指定
<meta name="keywords" itemprop="keywords" content="◯◯◯◯◯">ウェブサイトの説明文を指定
<meta name="description" itemprop="description" content="◯◯◯◯◯">ウェブサイトの表示領域を指定
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, maximum-scale=1.0, user-scalable=yes">電話番号自動リンクの制御
<meta content='telephone=no' name='format-detection'>SNSヘのサイト情報送信
<meta property="og:site_name" content="◯◯◯◯◯"> <meta property="og:type" content="website"> <meta property="og:url" content="◯◯◯◯◯"> <meta property="og:title" content="◯◯◯◯◯"> <meta property="og:description" content="◯◯◯◯◯">Internet Explorerでのブラウザ表示モードを最新バージョンで指定
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">DNSプリフェッチでウェブページの表示高速化
<meta http-equiv="x-dns-prefetch-control" content="on"> <link rel="dns-prefetch" href="◯◯◯◯◯">外部スタイルシートファイルの読み込み
<link rel="stylesheet" href="◯◯◯◯◯" type="text/css">サイトURLの正規化
<link rel="canonical" href="◯◯◯◯◯">短縮URLの指定
<link rel="shortlink" href="◯◯◯◯◯">ファビコンの指定
<link rel="shortcut icon" href="◯◯◯◯◯" type="image/vnd.microsoft.icon"> <link rel="icon" href="◯◯◯◯◯" type="image/vnd.microsoft.icon">サイトタイトルの指定
<title>◯◯◯◯◯</title>
categories
- WordPress(61)
- JavaScript(49)
- Vue.js(48)
- CSS(46)
- jQuery(34)
- Nuxt.js(22)
- Sass(21)
- Gulp(17)
- webpack(16)
- PHP(14)
- HTML(14)
- GSAP(11)
- React(10)
- Vite(9)
- Pug(9)
- Laravel(8)
- Cordova(8)
- Linux(7)
- Next.js(6)
- Apache(5)
- Shopify(4)
- REST API(4)
- Node.js(4)
- Smarty(3)
- Git(3)
- JSON(3)
- その他プログラミング(3)
- Google Apps API(3)
- Bootstrap(3)
- 環境構築・システム(3)
- TypeScript(2)
- EJS(2)
- RMS(2)
- Docker(2)
- Instagram API(2)
- Excel VBA(2)
- SVG(1)
- Dart(1)
- ECカートASP(1)
- Markdown(1)
- AMP(1)
- Nginx(1)
- XML(1)
- shellscript(1)
- Ruby(1)
- MySQL(1)