Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Numinix MediaWiki Demo
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Help/Tables
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Accessibility of table header cells=== <!--T:277--> </translate> <translate><!--T:278--> Table header cells do not explicitly specify which table data cells they apply to (those on their right on the same row, or those below them on the same column).</translate> <translate><!--T:279--> When the table is rendered in a visual 2D environment, this is usually easy to infer.</translate> <translate><!--T:280--> However when tables are rendered on non-visual media, you can help the browser to determine which table header cell applies to the description of any selected cell (in order to repeat its content in some accessibility helper) using a scope="row" or scope="col" attribute on table header cells.</translate> <translate><!--T:281--> In most cases with simple tables, you'll use scope="col" on all header cells of the first row, and scope="row" on the first cell of the following rows:</translate> {| style="width:100%" ! style="width: 50%;"|<translate><!--T:282--> You type</translate> ! style="width: 50%;"|<translate><!--T:283--> You get</translate> |- | style="padding: 5px;"| <pre> {| class="wikitable" |- ! scope="col"| <translate nowrap><!--T:284--> Item</translate> ! scope="col"| <translate nowrap><!--T:285--> Quantity</translate> ! scope="col"| <translate nowrap><!--T:286--> Price</translate> |- ! scope="row"| <translate nowrap><!--T:287--> Bread</translate> | 0.3 kg | $0.65 |- ! scope="row"| <translate nowrap><!--T:288--> Butter</translate> | 0.125 kg | $1.25 |- ! scope="row" colspan="2"| <translate nowrap><!--T:289--> Total</translate> | $1.90 |} </pre> | style="padding: 5px;"| {| class="wikitable" |- ! scope="col"| <translate><!--T:290--> Item</translate> ! scope="col"| <translate><!--T:291--> Quantity</translate> ! scope="col"| <translate><!--T:292--> Price</translate> |- ! scope="row"| <translate><!--T:293--> Bread</translate> | 0.3 kg | $0.65 |- ! scope="row"| <translate><!--T:294--> Butter</translate> | 0.125 kg | $1.25 |- ! scope="row" colspan="2"| <translate><!--T:295--> Total</translate> | $1.90 |} |} <translate>
Summary:
Please note that all contributions to Numinix MediaWiki Demo may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)