LoginSignup
53
50

More than 5 years have passed since last update.

[HTML] ファビコンの設置について

Last updated at Posted at 2015-08-14

ファビコン画像ジェネレーター

Favicon Generator for all platforms: iOS, Android, PC/Mac...

HTMLコード

昔ながらのファビコン指定コード。主にIE。

html
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">

高解像度ディスプレイや異なるデバイスに合わせてPNG形式でサイズいろいろ

html
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">

iOSのホームスクリーン用

html
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">

AndroidのChrome用

html
<link rel="icon" type="image/png" href="/android-chrome-192x192.png" sizes="192x192">

Windows 8のタイル用

html
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffcc22">
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">

参考記事

クリエイティブなファビコンを設置しよう | Webクリエイターボックス

53
50
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
53
50