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

input-image-alt

Skill này làm gì

Skill này kiểm tra các nút dạng ảnh trên trang có mô tả văn bản có ý nghĩa hay không. Skill dành cho lập trình viên xây biểu mẫu và điều khiển dựa trên ảnh.

Khi nào nên dùng

  • ✓Khi nút tìm kiếm hoặc nút gửi là một ảnh nhưng không có alt text.
  • ✓Khi trình đọc màn hình đọc tên tệp thay vì mục đích của nút.
  • ✓Khi bạn rà soát markup biểu mẫu về trợ năng.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/input-image-alt/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/input-image-alt/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 các nút dạng ảnh của tôi có alt text phù hợp 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 phần tử input dạng ảnh và kiểm tra mỗi phần tử có thuộc tính alt không rỗng. Agent gợi ý văn bản mô tả hành động, chẳng hạn Tìm kiế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.

Provide alt text for image buttons

Without alt text, screen readers may read the file name of the image, leaving users unable to determine the function of the button.

Quick Reference

  • Add an alt attribute to <input type='image'>
  • Describe the action of the button, not just the image
  • Ensures the button's purpose is clear to assistive technology

Check

Verify that all <input type='image'> elements have a non-empty 'alt' attribute.

Fix

Add an 'alt' attribute to the <input type='image'> that describes the action performed when the button is clicked (e.g., 'Search', 'Submit').

Explain

Explain why image buttons require alternative text to communicate their function to users who cannot see the image.

Code Review

Review the rendered markup and interactive states that affect Provide alt text for image buttons. 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/input-image-alt

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

Vì sao nên mô tả hành động thay vì hình ảnh?

Skill nói alt text nên cho người dùng biết nút làm gì khi được nhấp.

Điều gì xảy ra khi không có alt text?

Trình đọc màn hình có thể đọc tên tệp ảnh, mà tên đó không giải thích chức năng của nút.

Làm sao xác nhận đã sửa?

Skill gợi ý dùng công cụ trợ năng của trình duyệt hoặc công nghệ hỗ trợ.

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 alt text for image buttons. 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
#2893
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ự