Aims:
everyone?
In 1997, the W3C launched the WAI to
help make the Web accessible to people with disabilities
Logos from the WAI
Question: Who or what benefits?
<h1>-<h6>
(correctly!) for a header
<p> in HTML
and make it big and bold in CSS for
a header
tables for tables of datatables for layoutol, ul, li for listsol, ul, li just because (by default) they
indent the text
table, caption, tr,
th & td) and attributes (colspan
& rowspan)
th tag has one more attribute to improve accessibility:
the scope attribute (with values
col and row) Question: Who does
this help?
| Team | Played | Won | Lost | Drawn |
|---|---|---|---|---|
| Rovers | 10 | 5 | 2 | 3 |
| Wanderers | 7 | 1 | 0 | 6 |
<table>
<caption>
Results for October
</caption>
<tr>
<th scope="col">Team</th>
<th scope="col">Played</th>
<th scope="col">Won</th>
<th scope="col">Lost</th>
<th scope="col">Drawn</th>
</tr>
<tr>
<th scope="row">Rovers</th>
<td>10</td>
<td>5</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<th scope="row">Wanderers</th>
<td>7</td>
<td>1</td>
<td>0</td>
<td>6</td>
</tr>
</table>
<a href="http://www.wombat.com/">Click here!</a> <a href="http://www.wombat.com/">More information about wombats</a>
Extra things you can do:
alt attribute for img elements,
and make sure the alt-text is descriptive, not just a title
header
containing a nav. Question: Why might this
be irritating to a user who is blind?
header, include an in-page link that allows
users to skip over the
header
<body>
<a id="skiplink" href="#main">Skip to main content</a>
<header>
...a lot of stuff, maybe including a <nav>
</header>
<div id="main>
...the real content of this page
</div>
</body>
#skiplink
{
position: absolute;
left: -999em;
}
role="main"
<link rel="stylesheet" media="screen" href="styles.css" />
<link rel="stylesheet" media="print" href="printstyles.css" />