User:Timeshifter/Sandbox114
Appearance
- HTML th scope Attribute.
- H63: Using the scope attribute to associate header cells and data cells in data tables | Techniques for WCAG 2.0.
List of U.S. states and territories by incarceration and correctional supervision rate#Correctional supervision rates by state. Row number column has been removed in table excerpts below.
Table excerpt from Wikipedia article
[edit]Jurisdiction |
Total | Community supervision | Incarcerated | |||
---|---|---|---|---|---|---|
Total, 12/31/2016 |
Rate per 100,000 adults |
Probation or Parole, 12/31/2016 |
Rate per 100,000 adults |
In prison or jail, 12/31/2016 |
Rate per 100,000 adults | |
Alabama | 99,800 | 2,640 | 60,700 | 1,610 | 40,900 | 1,080 |
Alaska | 12,900 | 2,320 | 8,400 | 1,520 | 4,400 | 800 |
Arizona | 137,500 | 2,570 | 84,800 | 1,590 | 55,000 | 1,030 |
Added scope=row, scope=rowgroup, scope=col, scope=colgroup, plainrowheaders
[edit]Jurisdiction |
Total | Community supervision | Incarcerated | |||
---|---|---|---|---|---|---|
Total, 12/31/2016 |
Rate per 100,000 adults |
Probation or Parole, 12/31/2016 |
Rate per 100,000 adults |
In prison or jail, 12/31/2016 |
Rate per 100,000 adults | |
Alabama | 99,800 | 2,640 | 60,700 | 1,610 | 40,900 | 1,080 |
Alaska | 12,900 | 2,320 | 8,400 | 1,520 | 4,400 | 800 |
Arizona | 137,500 | 2,570 | 84,800 | 1,590 | 55,000 | 1,030 |
Same table. Changed background color of headers
[edit]Highlighter felt-tip markers usually come in some shade of yellow. That is because this background color behind black text is one of the most legible color combinations. Especially for people with visual problems.
style=background-color:lightyellow; followed by style=background-color:yellow;
Jurisdiction |
Total | Community supervision | Incarcerated | |||
---|---|---|---|---|---|---|
Total, 12/31/2016 |
Rate per 100,000 adults |
Probation or Parole, 12/31/2016 |
Rate per 100,000 adults |
In prison or jail, 12/31/2016 |
Rate per 100,000 adults | |
Alabama | 99,800 | 2,640 | 60,700 | 1,610 | 40,900 | 1,080 |
Alaska | 12,900 | 2,320 | 8,400 | 1,520 | 4,400 | 800 |
Arizona | 137,500 | 2,570 | 84,800 | 1,590 | 55,000 | 1,030 |
Jurisdiction |
Total | Community supervision | Incarcerated | |||
---|---|---|---|---|---|---|
Total, 12/31/2016 |
Rate per 100,000 adults |
Probation or Parole, 12/31/2016 |
Rate per 100,000 adults |
In prison or jail, 12/31/2016 |
Rate per 100,000 adults | |
Alabama | 99,800 | 2,640 | 60,700 | 1,610 | 40,900 | 1,080 |
Alaska | 12,900 | 2,320 | 8,400 | 1,520 | 4,400 | 800 |
Arizona | 137,500 | 2,570 | 84,800 | 1,590 | 55,000 | 1,030 |
Wikitext for above table
[edit]{|class="wikitable sortable mw-datatable plainrowheaders" style=text-align:right; |+ Correctional supervision rates by state, 2016. |- ! scope=rowgroup rowspan=2 style=background-color:yellow; |<br><br><br><br>Jurisdiction ! scope=colgroup colspan=2 style=background-color:yellow; |Total ! scope=colgroup colspan=2 style=background-color:yellow; |Community supervision ! scope=colgroup colspan=2 style=background-color:yellow; |Incarcerated |- ! scope=col style=background-color:yellow; |Total,<br>12/31/2016 ! scope=col style=background-color:yellow; |Rate per<br>100,000<br>adults ! scope=col style=background-color:yellow; |Probation<br>or Parole,<br>12/31/2016 ! scope=col style=background-color:yellow; |Rate per<br>100,000<br>adults ! scope=col style=background-color:yellow; |In prison<br>or jail,<br>12/31/2016 ! scope=col style=background-color:yellow; |Rate per<br>100,000<br>adults |- ! scope=row style=background-color:yellow; |{{flaglist|Alabama}} || 99,800 || 2,640 || 60,700 || 1,610 || 40,900 || 1,080 |- ! scope=row style=background-color:yellow; |{{flaglist|Alaska}} || 12,900 || 2,320 || 8,400 || 1,520 || 4,400 || 800 |- ! scope=row style=background-color:yellow; |{{flaglist|Arizona}} || 137,500 || 2,570 || 84,800 || 1,590 || 55,000 || 1,030 |}
Wikitext for above table if class=wikitable did scopes, color, plainrowheaders
[edit]It's much simpler to edit by the average editor. Compressed format is more intuitive without all the scopes and color styling.
{|class="wikitable sortable mw-datatable" style=text-align:right; |+ Correctional supervision rates by state, 2016. |- ! rowspan=2 |<br><br><br><br>Jurisdiction ! colspan=2 |Total ! colspan=2 |Community supervision ! colspan=2 |Incarcerated |- ! Total,<br>12/31/2016 ! Rate per<br>100,000<br>adults ! Probation<br>or Parole,<br>12/31/2016 ! Rate per<br>100,000<br>adults ! In prison<br>or jail,<br>12/31/2016 ! Rate per<br>100,000<br>adults |- ! {{flaglist|Alabama}} || 99,800 || 2,640 || 60,700 || 1,610 || 40,900 || 1,080 |- ! {{flaglist|Alaska}} || 12,900 || 2,320 || 8,400 || 1,520 || 4,400 || 800 |- ! {{flaglist|Arizona}} || 137,500 || 2,570 || 84,800 || 1,590 || 55,000 || 1,030 |}