Langsung ke konten
Skillpedia
Website & UI (frontend)75k · #2893

input-image-alt

Fungsinya

Skill ini memeriksa tombol gambar di halaman untuk deskripsi teks yang bermakna. Skill ini cocok untuk developer yang membangun formulir dan kontrol berbasis gambar.

Kapan dipakai

  • ✓Saat tombol pencarian atau kirim adalah gambar tanpa teks alternatif.
  • ✓Saat pembaca layar membacakan nama file alih-alih tujuan tombol.
  • ✓Saat Anda meninjau markup formulir untuk aksesibilitas.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/input-image-alt/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Bisakah Anda memeriksa apakah tombol gambar saya memiliki teks alternatif yang layak?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent menemukan elemen input gambar dan memeriksa apakah masing-masing memiliki atribut alt yang tidak kosong. Agent menyarankan teks yang menggambarkan tindakannya, seperti Search.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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

Pertanyaan umum

Mengapa menjelaskan tindakan, bukan gambarnya?

Skill menyatakan teks alternatif sebaiknya memberi tahu pengguna apa yang dilakukan tombol saat diklik.

Apa yang terjadi tanpa teks alternatif?

Pembaca layar mungkin membacakan nama file gambar, yang tidak menjelaskan fungsi tombol.

Bagaimana perbaikannya bisa dikonfirmasi?

Skill menyarankan alat aksesibilitas browser atau teknologi bantu.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
75k
Peringkat
#2893
Lisensi
MIT
Diperbarui
31/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa