Location: PHPKode > projects > OpenWolf Guidelines Validator > openWolf 0.9.9/wai/tests/WAI_3_5_5.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-nz">
<!--<html xmlns="http://www.w3.org/1999/xhtml">-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!--<META HTTP-EQUIV="Content-Language" content="EN-nz">-->
<title>WAI_3_5_5</title>
</head>

<body>
	
	<!-- the following elements should raise errors -->
	<table id="bad1">
		<tbody>
			<tr>
				<td>cell1</td>
				<td>cell2</td>
			</tr>
		</tbody>
	</table>
	
	<table id="bad2" summary="This is a summary">
		<tbody>
			<tr>
				<td>cell1</td>
				<td>cell2</td>
			</tr>
		</tbody>
	</table>
	
	<table id="bad3">
		<caption>This is a caption</caption>
		<tbody>
			<tr>
				<td>cell1</td>
				<td>cell2</td>
			</tr>
		</tbody>
	</table>
	<!-- the following elements should be fine -->
	<table id="good1" summary="This is a summary">
		<caption>This is a caption</caption>
		<tbody>
			<tr>
				<td>cell1</td>
				<td>cell2</td>
			</tr>
		</tbody>
	</table>
	
	<table id="good2" border="0">
		<caption>This is a caption</caption>
		<tbody>
			<tr>
				<td>cell1</td>
				<td>cell2</td>
			</tr>
		</tbody>
	</table>

</body>
</html>
Return current item: OpenWolf Guidelines Validator