我正在用 HTML 制作一个应用程序,我需要制作一个应用程序图标。我怎样才能实现图标?

I'm making an app with HTML and I need to make an app icon. How can I implement the icon?

我想知道它是网站图标还是元数据,请帮忙。

提前致谢。

您需要使用一系列元标记,具体取决于您是尝试在网络浏览器上查看您的应用程序还是在操作系统中作为应用程序图标查看。以下是我通常包含在 Web 项目中的版本。它们通常可以满足我的大部分需求,但您可以根据目标平台提供大量图标。

<link
      rel="apple-touch-icon"
      sizes="180x180"
      href="https://yourwebiste.com/images/apple-touch-icon.png"
    />
    <link
      rel="icon"
      type="image/png"
      sizes="32x32"
      href="https://yourwebiste.com/images/favicon-32x32.png"
    />
    <link
      rel="icon"
      type="image/png"
      sizes="16x16"
      href="https://yourwebiste.com/images/favicon-16x16.png"
    />