Control | Accessibility considerations |
|---|
AdRotator | The Target property renders as a target attribute. The target attribute on anchor elements is not allowed in XHTML 1.1 or HTML 4.0. If the controlRenderingCompatibilityVersion attribute of the pages element in the Web.config file is set to 3.5, the control renders a disabled attribute when the control's IsEnabled property is set to false. In HTML 4.0 and XHTML 1.1, the disabled attribute is allowed only for elements that are designed for user input. For more information, see WebControl..::.SupportsDisabledAttribute. |
BulletedList | The Target property renders as a target attribute. The target attribute on anchor elements is not allowed in XHTML 1.1 or HTML 4.0. |
Calendar | The control layout is rendered using an HTML table, which might not conform to some accessibility guidelines. For more information, see Accessibility in Visual Studio and ASP.NET. The table that is generated does not include thead or tbody elements. To render a caption for the table, set the control's Caption and CaptionAlign properties. If the controlRenderingCompatibilityVersion attribute of the pages element in the Web.config file is set to 3.5, the control renders a disabled attribute when the control's IsEnabled property is set to false. In HTML 4.0 and XHTML 1.1, the disabled attribute is allowed only for elements that are designed for user input. For more information, see WebControl..::.SupportsDisabledAttribute. |
CheckBoxList | Setting the RepeatLayout property to Table (the default value) causes the control layout to be rendered by using an HTML table, which might not conform to some accessibility guidelines. For more information, see Accessibility in Visual Studio and ASP.NET. |
DropDownList | The control does not support the optgroup element, which enables the list to be subdivided into sections. If the controlRenderingCompatibilityVersion attribute of the pages element in the Web.config file is set to 3.5, the control renders a disabled attribute when the control's IsEnabled property is set to false. In HTML 4.0 and XHTML 1.1, the disabled attribute is allowed only for elements that are designed for user input. For more information, see WebControl..::.SupportsDisabledAttribute. |
HyperLink | If you set the ImageUrl property to the URL of a graphic file, set the Text property to specify the alternate text for the resulting graphic. The Target property renders as a target attribute. The target attribute on anchor elements is not allowed in XHTML 1.1 or HTML 4.0. If the controlRenderingCompatibilityVersion attribute of the pages element in the Web.config file is set to 3.5, the control renders a disabled attribute when the control's IsEnabled property is set to false. In HTML 4.0 and XHTML 1.1, the disabled attribute is allowed only for elements that are designed for user input. For more information, see WebControl..::.SupportsDisabledAttribute. |
Image, ImageButton, ImageMap | If the image conveys information, set the AlternateText property to an appropriate value. If the image is only decorative, set the GenerateEmptyAlternateText property to true to render an alt attribute that is set to an empty string (""), which causes screen readers to skip the graphic. If the controlRenderingCompatibilityVersion attribute of the pages element in the Web.config file is set to 3.5, the control renders a disabled attribute when the control's IsEnabled property is set to false. In HTML 4.0 and XHTML 1.1, the disabled attribute is allowed only for elements that are designed for user input. For more information, see WebControl..::.SupportsDisabledAttribute. |
Label | To use the control to render a label element for a text box or other control that is designed for user input, set the AssociatedControlID property to the ID of the control to associate with the label. If the controlRenderingCompatibilityVersion attribute of the pages element in the Web.config file is set to 3.5, the control renders a disabled attribute when the control's IsEnabled property is set to false. In HTML 4.0 and XHTML 1.1, the disabled attribute is allowed only for elements that are designed for user input. For more information, see WebControl..::.SupportsDisabledAttribute. |
LinkButton, Panel | If the controlRenderingCompatibilityVersion attribute of the pages element in the Web.config file is set to 3.5, the control renders a disabled attribute when the control's IsEnabled property is set to false. In HTML 4.0 and XHTML 1.1, the disabled attribute is allowed only for elements that are designed for user input. For more information, see WebControl..::.SupportsDisabledAttribute. |
RadioButtonList | Setting the RepeatLayout property to Table (the default value) causes the control layout to be rendered by using an HTML table, which might not conform to some accessibility guidelines. For more information, see Accessibility in Visual Studio and ASP.NET. |
Table, TableRow, TableCell, TableHeaderCell, TableHeaderRow, and TableFooterRow | To render a caption for the table, set the control's Caption and CaptionAlign properties. When you create a Table object, include the TableHeaderRow and TableHeaderCell controls. The default values of the TableHeaderRow and TableFooterRow controls cause the control to render thead, tbody, and tfoot elements. In TableCell controls, set the AssociatedHeaderCellID property to have the control render a header that associates the cell with its heading. Set the control's Scope property to associate the header with the corresponding data column. If the controlRenderingCompatibilityVersion attribute of the pages element in the Web.config file is set to 3.5, the control renders a disabled attribute when the control's IsEnabled property is set to false. In HTML 4.0 and XHTML 1.1, the disabled attribute is allowed only for elements that are designed for user input. For more information, see WebControl..::.SupportsDisabledAttribute. |
Wizard | The control layout is rendered using an HTML table, which might not conform to some accessibility guidelines. For more information, see Accessibility in Visual Studio and ASP.NET. To create markup that uses cascading style sheets (CSS) for layout instead of a table, use the control's template properties. If the controlRenderingCompatibilityVersion attribute of the pages element in the Web.config file is set to 3.5, the control renders a disabled attribute when the control's IsEnabled property is set to false. In HTML 4.0 and XHTML 1.1, the disabled attribute is allowed only for elements that are designed for user input. For more information, see WebControl..::.SupportsDisabledAttribute. |