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

aria-labels

Skill này làm gì

Skill này kiểm tra xem mọi phần tử tương tác trên trang có tên rõ ràng, mô tả hay không. Nó dành cho lập trình viên web muốn không có nút nào mơ hồ.

Khi nào nên dùng

  • ✓Khi bạn thêm nút biểu tượng, liên kết hoặc widget vào trang.
  • ✓Khi điều khiển dùng từ mơ hồ như more hoặc click here.
  • ✓Khi bạn kiểm toán trang để tìm tên khả năng tiếp cận cơ bản.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-labels/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/aria-labels/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

“Kiểm toán bảng điều khiển của tôi và cho tôi biết nút và liên kết nào cần nhãn tốt hơn.”

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

Cách hoạt động

Agent kiểm tra mỗi điều khiển có tên bằng văn bản, aria-label hoặc aria-labelledby không, rồi đề xuất tên ngắn gọn, rõ ràng cho những cái thiếu hoặc mơ hồ.

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.

Provide accessible names for all interactive elements

Interactive elements are the core of web navigation; without names, they become 'mystery meat' that users cannot confidently interact with.

Quick Reference

  • Buttons, links, and other controls must have a discernable name
  • Names should be concise and describe the action or destination
  • Avoid generic names like 'Click Here' or 'More'

Check

Audit all interactive elements (buttons, links, widgets) for missing or unhelpful accessible names.

Fix

Add descriptive text content or aria-label attributes to all interactive elements.

Explain

Explain how clear labels on interactive elements improve accessibility and general usability.

Code Review

Review the rendered markup and interactive states that affect Provide accessible names for all interactive elements. 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/aria-labels

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

Tên tốt cho một điều khiển là gì?

Skill khuyến nghị tên ngắn gọn mô tả hành động hoặc đích đến, không dùng từ chung như More.

Văn bản hiển thị có thể là tên không?

Có. Nội dung văn bản mô tả có thể đóng vai trò là tên khả năng tiếp cận.

Vì sao skill cảnh báo về điều khiển không rõ?

Không có tên, người dùng không biết điều khiển làm gì nếu không đoán.

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 Provide accessible names for all interactive elements. 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
#2730
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ự