Chuyển đến nội dung
Skillpedia
Thương hiệu75k · #2840

favicon

Skill này làm gì

Skill này kiểm tra website có hiển thị biểu tượng nhỏ đúng cách cho các trang hay không. Skill dành cho chủ site muốn có thương hiệu dễ nhận ra trên tab và kết quả tìm kiếm.

Khi nào nên dùng

  • ✓Khi site của bạn hiển thị biểu tượng trống hoặc mặc định trên tab trình duyệt.
  • ✓Khi bạn thiết lập một website mới hoặc một template trang mới.
  • ✓Khi kết quả tìm kiếm của site bạn không hiển thị biểu tượng nào.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/favicon/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/favicon/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể kiểm tra website của tôi có favicon đúng trên mọi trang không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent kiểm tra các thẻ liên kết icon trong phần head của trang và xác nhận file biểu tượng truy cập được qua HTTPS. Agent gợi ý các định dạng file và kích thước nên thêm.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Add a favicon to every page

Google displays favicons next to search results on mobile devices, making your brand immediately recognisable in the SERP. A missing or inaccessible favicon prevents Google from showing it, reducing visual brand presence in search.

Quick Reference

  • Provide a <link rel="icon"> pointing to a favicon file; Google uses it to identify your site in search results
  • Serve the favicon via HTTPS, ensure it is publicly accessible (not blocked by robots.txt), and at least 48×48px for Google's use
  • Include both an ICO fallback and SVG/PNG versions for broad browser and device compatibility

Check

In the page <head>, look for <link rel="icon"> or <link rel="shortcut icon"> elements. Verify: (1) The href points to an accessible URL (returns 200, not blocked by robots.txt). (2) The file is at least 48×48px (for Google Search use). (3) A PNG or SVG version is provided alongside the ICO fallback. (4) The favicon is accessible over HTTPS.

Fix

  1. Create favicon files:
    • favicon.ico (16×16 and 32×32, ICO format) — legacy browser fallback
    • favicon.svg (scalable, modern browsers)
    • apple-touch-icon.png (180×180 PNG) — iOS home screen
  2. Place them in the root or /public directory.
  3. Add to <head>:
    <link rel="icon" href="/favicon.ico" sizes="any">
    <link rel="icon" href="/favicon.svg" type="image/svg+xml">
    <link rel="apple-touch-icon" href="/apple-touch-icon.png">
    
  4. Verify the favicon URL returns a 200 response (not 404).
  5. Check that /robots.txt does not block the favicon path.
  6. Test Google's display using the URL Inspection tool in Search Console.

Explain

Favicons appear next to your site's name in browser tabs, bookmarks, and Google Search mobile results. Google explicitly states it uses the favicon from <link rel='icon'> for display in search results. A missing, blocked, or too-small favicon means Google cannot show your brand icon, reducing search result click-through rate.

Code Review

Check the <head> for <link rel='icon'> and <link rel='apple-touch-icon'>. Verify the href values are valid relative or absolute paths. Confirm the favicon files exist and return HTTP 200. Flag if only favicon.ico at site root is used without an explicit <link> element (relying on browser default discovery is less reliable).


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/seo/favicon

Câu hỏi thường gặp

Kích thước nào được khuyến nghị?

Skill nói biểu tượng nên có kích thước ít nhất 48 x 48 pixel để Google hiển thị trong tìm kiếm.

Skill gợi ý những file nào?

Skill gợi ý một file ICO dự phòng, một icon SVG và một PNG 180 x 180 pixel cho màn hình chính iPhone.

Vì sao biểu tượng phải truy cập được?

Google không thể hiển thị biểu tượng bị robots.txt chặn hoặc không công khai truy cập được.

Chi tiết

Mô tả gốc của tác giả

Use when checking whether a site has a correctly configured favicon, auditing `<link rel='icon'>` tags in the `<head>`, or setting up favicon infrastructure for a new project.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2840
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự