追加情報に使う aria-describedby
名前の後に読み上げるヒントやヘルプを関連付けます。
「追加情報に使う aria-describedby」はCoddyKit上の無料Web Accessibility Academyレッスンです。 これはレッスン3/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはWeb Accessibility Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Web Accessibility Academyコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
Beyond the Name
Sometimes a control needs more than a name. aria-describedby attaches extra context that a screen reader reads after the name.
It References IDs
Like labelledby, aria-describedby holds the id of another element. The browser pulls that element text in as the description.
<input aria-describedby="hint">
<p id="hint">Use 8+ characters</p>Name First, Then Description
A screen reader speaks the name first, then a short pause, then the description. The order helps users grasp the control quickly.
Perfect for Hints
Field hints like format rules belong in aria-describedby, so the guidance reads automatically when the field receives focus.
<input aria-describedby="fmt">
<p id="fmt">Format: DD/MM/YYYY</p>It Does Not Replace the Name
A description is supplementary. If an element has only aria-describedby and no name, it is still effectively unlabeled.
Combine Multiple IDs
Give aria-describedby several space-separated ids, and the browser joins their text, which is handy for a hint plus an error.
<input aria-describedby="hint err">Errors Are Descriptions Too
Point aria-describedby at a validation message so the error reads aloud with the field, not stranded somewhere else on the page.
<input aria-describedby="err">
<p id="err">Email is required</p>Keep Descriptions Brief
A description should be a short sentence. Long aria-describedby text gets read in full every time, which quickly turns tiresome.
It Stays Visible
Unlike a hidden label, the referenced hint usually stays visible on screen, helping sighted users at the same time as it helps others.
Support Can Vary
Most screen readers honor aria-describedby, but some announce it only in certain modes, so test the hint with a real reader.
describedby vs labelledby
Use aria-labelledby for what a control is called and aria-describedby for extra detail about it. They serve different jobs.
Quick Check
You want a password rule read after the field name. Which attribute fits?
Recap: Adding Context
You learned that aria-describedby references ids to read hints and errors after the name, supplementing it without ever replacing it. 💬
よくある質問
「追加情報に使う aria-describedby」レッスンは無料ですか?
はい。「追加情報に使う aria-describedby」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Web Accessibility Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Web Accessibility Academyコースには全4レッスンが含まれています。
「追加情報に使う aria-describedby」で何を学びますか?
名前の後に読み上げるヒントやヘルプを関連付けます。 ブラウザで直接実行するハンズオンコードでWeb Accessibility Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
Web Accessibility Academyを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのWeb Accessibility Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン3/4です。
「追加情報に使う aria-describedby」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このWeb Accessibility Academyレッスンでコードを書いて実行できますか?
はい。すべてのWeb Accessibility Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。
このコースのすべてのレッスン
- アクセシブルネームの計算をわかりやすく解説
- aria-label と aria-labelledby
- 追加情報に使う aria-describedby
- コントロールを無名にするよくある命名ミス