0Pricing
Web Accessibility Academy · Ders

Hataları aria-describedby ile Alanlara Bağlama

Mesajın girdisiyle birlikte okunmasını sağlayın.

Hataları aria-describedby ile Alanlara Bağlama, CoddyKit'te ücretsiz bir Web Accessibility Academy dersidir. Bu, 4 dersinin 1. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Web Accessibility Academy öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Web Accessibility Academy kursu toplamda 4 dersten oluşur.

Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.

A Floating Error

An error message sitting near a field looks connected to you. But to a screen reader it is just loose text the user may never hear. ⚠️

The Fix Is a Link

You need to formally tie the message to its input. The attribute that does this is aria-describedby, and it lives on the field.

Point to an id

Give the error element an id, then set the input's aria-describedby to that same id. Now the two are officially linked.

<input id="email" aria-describedby="email-err">
<p id="email-err">Enter a valid email.</p>

What the User Hears

When focus lands on the input, the screen reader reads the label, the type, and then the description. The error is no longer orphaned.

Name Then Description

aria-describedby does not replace the label. The label gives the name; describedby adds extra info that is read after it.

Multiple Descriptions

You can list several ids, space-separated. The browser reads them in order, so you can join a hint and an error together.

<input aria-describedby="hint err">

Only When It Applies

Add the error id to aria-describedby only while the error is showing. Pointing at an empty or hidden node can read nothing or confuse users.

Keep the Text Real

The described element must hold real, visible text. aria-describedby reads its content, so an empty span describes nothing useful.

Hidden Targets Stay Silent

If the target has display none, most screen readers skip it. Keep error text rendered and visible so the description is actually announced.

Works With aria-invalid

Pair describedby with aria-invalid on the same field. One says this failed; the other says here is why. Together they tell the full story.

Not Just for Errors

The same attribute carries format hints too, like password rules. Errors are one common use, not the only one.

<input aria-describedby="pw-rule">
<p id="pw-rule">At least 8 characters.</p>

Quick Check

How do you make a screen reader read an error with its field?

Recap

Tie errors to fields with aria-describedby pointing at a real, visible id. The screen reader then reads the field and its error together. ✅

Sıkça Sorulan Sorular

“Hataları aria-describedby ile Alanlara Bağlama” dersi ücretsiz mi?

Evet — “Hataları aria-describedby ile Alanlara Bağlama” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Web Accessibility Academy kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Web Accessibility Academy kursu toplamda 4 dersten oluşur.

“Hataları aria-describedby ile Alanlara Bağlama” dersinde ne öğreneceğim?

Mesajın girdisiyle birlikte okunmasını sağlayın. Web Accessibility Academy ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.

Web Accessibility Academy öğrenmeye başlamak için deneyim gerekli mi?

Önceden deneyim gerekmez. CoddyKit'te Web Accessibility Academy, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 1. dersidir.

“Hataları aria-describedby ile Alanlara Bağlama” dersi ne kadar sürer?

Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.

Bu Web Accessibility Academy dersinde kod yazıp çalıştırabilir miyim?

Evet. Her Web Accessibility Academy dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.

Bu kursun tüm dersleri

  1. Hataları aria-describedby ile Alanlara Bağlama
  2. Geçersiz Durumu aria-invalid ile İşaretleme
  3. Odağı İlk Hataya Taşıma
  4. Satır İçi, Odak Kaybında veya Gönderimde: Zamanlama Önemlidir
← Web Accessibility Academy Sayfasına Dön