0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

サイトアイコンfavicon.icoの作成と設定

Posted at

まずは、favicon.icoファイルの作成。
簡単な画像を作成。

この画像をfavicon generatorサイトへアップロード&ダウンロードで、各種サイトアイコンが生成されるので、favicon.icoをサイト直下へアップロードしたら下記のようにheader部分に記述すればブラウザのサイトアイコンとして表示される。

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" 
    rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
    下記部分
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <title>Document</title>
</head>
<body>
    <div class="container">
    Line AnimalNote We site!!
    </div>

</body>
</html>

ちょっと見にくけれどサイト名の左にアイコンが表示される。
スクリーンショット 2025-02-09 13.28.01.png

favicon generatorサイトは下記にて。
https://ao-system.net/favicongenerator/

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?