mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-20 12:52:19 +01:00
Expand advice about adding labels
Harmonizing this with same advice given for CSS inline forms
This commit is contained in:
parent
8af8f7d540
commit
353d8395ae
@ -208,7 +208,7 @@
|
||||
|
||||
<div class="bs-callout bs-callout-warning" id="callout-navbar-form-labels">
|
||||
<h4>Always add labels</h4>
|
||||
<p>Screen readers will have trouble with your forms if you don't include a label for every input. For these inline navbar forms, you can hide the labels using the <code>.sr-only</code> class.</p>
|
||||
<p>Screen readers will have trouble with your forms if you don't include a label for every input. For these inline forms, you can hide the labels using the <code>.sr-only</code> class. There are further alternative methods of providing a label for assistive technologies, such as the <code>aria-label</code>, <code>aria-labelledby</code> or <code>title</code> attribute. If none of these is present, screen readers may resort to using the <code>placeholder</code> attribute, if present, but note that use of <code>placeholder</code> as a replacement for other labelling methods is not advised.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user