Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)75k · #2832

empty-links

Skill này làm gì

Skill này kiểm tra các liên kết trên trang web tìm văn bản bị thiếu hoặc không rõ ràng. Skill dành cho lập trình viên muốn các liên kết mà ai cũng hiểu được.

Khi nào nên dùng

  • ✓Khi trình đọc màn hình chỉ thông báo là link mà không có ngữ cảnh.
  • ✓Khi trang của bạn có liên kết chỉ là icon mà không có mô tả văn bản.
  • ✓Khi bạn rà soát các liên kết có đích bị hỏng trước khi ra mắt.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/empty-links/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/empty-links/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 trang của tôi xem có liên kết nào không có văn bản đọc được không?”

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

Cách hoạt động

Agent tìm các liên kết không có văn bản hiển thị và không có nhãn trợ năng. Agent gợi ý thêm văn bản hoặc aria-label, đồng thời sửa hoặc xóa các liên kết bị hỏng.

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.

Fix empty and broken links

Screen readers announce empty links as just 'link' with no context—users have no idea where they lead or what they do, making navigation impossible.

Quick Reference

  • Every link must have accessible text (visible or via aria-label)
  • Icon-only links need aria-label describing the destination
  • Empty anchor tags are completely inaccessible—always add content
  • Use visually-hidden text when visual labels aren't desired

Check

Scan for links with no text content (empty anchor tags, icon-only links without labels). Verify all links have accessible names via text content, aria-label, or aria-labelledby. Check for broken link destinations.

Fix

Add descriptive text to empty links. For icon-only links, add aria-label describing the destination. Use visually-hidden text if visible labels are not desired. Remove or fix broken links.

Explain

Explain how screen readers announce empty links as just 'link' with no context, leaving users unable to understand where the link leads or what action it performs.

Code Review

Review the rendered markup and interactive states that affect Fix empty and broken links. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.


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

Rule page: https://frontendchecklist.io/rules/accessibility/empty-links

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

Vì sao liên kết trống lại là vấn đề?

Trình đọc màn hình chỉ thông báo là link, nên người dùng không biết nó dẫn đến đâu.

Cách sửa cho liên kết chỉ có icon là gì?

Skill gợi ý thêm một aria-label mô tả đích đến.

Skill có kiểm tra liên kết có hoạt động không?

Có. Skill nói rằng cũng cần tìm các đích liên kết bị hỏng, không chỉ tên bị thiếu.

Chi tiết

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

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Fix empty and broken links. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2832
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ự