Wikipedia:WikiProject Accessibility/Manual of Style draft: Difference between revisions

Content deleted Content added
Dodoïste (talk | contribs)
m Breadcrumb refinement
Dodoïste (talk | contribs)
Data tables: Removing section as it is part of the MoS page now
Line 7:
 
Criteria on this page are prioritized according to impact (W3C's accessibility level of priorities: A, AA or AAA) and degree of feasibility (with MediaWiki's syntax and the burden it places on users).
 
== Data tables ==
 
<div style="color:green;"><strong>Status: Complete. Reviewed by an accessibility expert.</strong></div>
*Priority: high (A accessibility level)
*Difficulty: easy (blend in nicely with editorial habits)
 
<pre>
{|
|+ [caption text]
|-
! scope="col" | [column header 1]
! scope="col" | [column header 2]
! scope="col" | [column header 3]
|-
! scope="row" | [row header 1]
| [normal cell 1,2] || [normal cell 1,3]
|-
! scope="row" | [row header 2]
| [normal cell 2,2] || [normal cell 2,3]
...
|}
</pre>
 
; Caption ( <code>|+</code> ): A caption is a table's title, describing its nature.<ref name="H39" group="WCAG-TECH">[http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H39 H39: Using caption elements to associate data table captions with data tables], A accessibility level.</ref>
; Row & column headers (<code> ! </code>): Like the caption, these help present the information in a logical structure to visitors.<ref group="WCAG-TECH">[http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H51 H51: Using table markup to present tabular information]</ref> The headers help screen readers render header information about data cells. For example, header information is spoken prior to the cell data, or header information is provided on request.<ref>[http://www.w3.org/TR/REC-html40/struct/tables.html#edef-TH Table cells: The TH and TD elements], W3C</ref>
; Scope of headers (<code> ! scope="col" | and ! scope="row" | </code>): This clearly identifies headers as either row headers or column headers. Headers can now be associated to corresponding cells.<ref name="H63" group="WCAG-TECH">[http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H63.html H63: Using the scope attribute to associate header cells and data cells in data tables], A accessibility level.</ref>
 
[[Wikipedia:WikiProject Accessibility/Manual of Style draft/Data tables tutorial]] provides detailed requirements:
# Correct table captions
# Correct headers structure
# Images and color
# Avoiding nested tables
 
== Layout tables ==