إعلان نص المساعدة والحقول المطلوبة
اعرض التلميحات والمتطلبات للتقنيات المساعدة.
إعلان نص المساعدة والحقول المطلوبة درس مجاني في Web Accessibility Academy على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Web Accessibility Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Web Accessibility Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Labels Are Just the Start
A field often needs more than a name. Hints and requirements must reach assistive tech, not just sighted eyes. 📝
Tie Hints With aria-describedby
Put help text in an element, then point the input's aria-describedby at its id. Now the hint reads after the label.
<input id="pw" aria-describedby="pwhelp">
<p id="pwhelp">At least 8 characters</p>Name Then Description
Screen readers speak the label first, then the described-by text. The user hears the name and the hint in a natural order.
Reference Multiple IDs
aria-describedby can list several ids separated by spaces. Combine a hint and an error message on the same field.
<input aria-describedby="hint err">Marking Required
Add the required attribute so the browser enforces it and tells assistive tech the field must be filled.
<input id="name" required>Announced Automatically
With required, a screen reader says required when focus lands. You get that for free, no extra ARIA needed.
The Asterisk Trap
A red asterisk alone is silent and easy to miss. Pair it with the required attribute or visible required text.
Explain the Asterisk
If you use an asterisk, add a legend near the form saying it marks required fields. Never leave the symbol unexplained.
aria-required as Backup
For custom controls without native validation, aria-required equals true conveys the same state to screen readers.
<div role="textbox" aria-required="true"></div>Mark Optional Instead
When most fields are required, flag the few that are optional instead. Less clutter, and the pattern stays clear.
Keep Help Visible
Show hints on screen, not just to screen readers. Everyone benefits from seeing the rules before they make a mistake.
Quick Check
How do you attach help text to a field for screen readers?
Recap
Wire hints with aria-describedby and mark must-fill fields with required. Now every user hears the name, the help, and the rules. ✅
الأسئلة الشائعة
هل درس «إعلان نص المساعدة والحقول المطلوبة» مجاني؟
نعم — نص درس «إعلان نص المساعدة والحقول المطلوبة» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Web Accessibility Academy، انتقل إلى CoddyKit PRO. تتضمن دورة Web Accessibility Academy 4 دروس في المجموع.
ماذا ستتعلم في «إعلان نص المساعدة والحقول المطلوبة»؟
اعرض التلميحات والمتطلبات للتقنيات المساعدة. تتمرن على Web Accessibility Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Web Accessibility Academy؟
لا تُشترط خبرة سابقة. Web Accessibility Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.
كم من الوقت يستغرق درس «إعلان نص المساعدة والحقول المطلوبة»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Web Accessibility Academy هذا؟
نعم. كل درس في Web Accessibility Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- كل إدخال يحتاج إلى label حقيقي
- Placeholder ليس تسمية
- تجميع الحقول باستخدام fieldset وlegend
- إعلان نص المساعدة والحقول المطلوبة