<!DOCTYPE html>
<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(getPopulationFromDataAttribute);">
<h1>Populations of Western English-Speaking Countries</h1>

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

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

<p><input type="button" value="W3C Validate this page" onclick="w3cValidate();"/> (Successfully validates as HTML5)</p>

</body>
</html>