<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Html Annotation Using Attributes</title>
<link rel="stylesheet" type="text/css" href="PopulationGraph.css"/>
<script type="text/javascript" src="DrawPopulationGraphBars.js"></script>

</head>

<body onload="drawPopulationBars(getPopulationFromAttribute);">
<h1>Populations of Western English-Speaking Countries</h1>

<p><b>Implementation:</b> Specify population of each country
as an attribute of each element containing the country's name.</p>

<table id="populationTable">
<tr><td id="australia" population="20000000">Australia</td></tr>
<tr><td id="canada" population="33000000">Canada</td></tr>
<tr><td id="ireland" population="4000000">Ireland</td></tr>
<tr><td id="nz" population="4000000">New Zealand</td></tr>
<tr><td id="uk" population="61000000">United Kingdom</td></tr>
<tr><td id="usa" population="298000000">United States of America</td></tr>
</table>

<p><input type="button" value="W3C Validate this page" onclick="w3cValidate();"/> (fails validation because
of the <b>"population"</b> attributes)</p>

</body>
</html>