“you should reward [the user's] attention by ensuring that controls and features work as [they] have learned to expect. If you use the same control to perform different actions, you make it impossible for users to apply what they've learned … and predict the outcome”
-iPhone Human Interface Guidelines for Web Applications
“The purpose of a HIG is to provide developers with a set of recommendations on developing user interfaces. It aims to ease user experience by providing consistency across a system and to ease the burden of the developer when building the interface. …it provides a set of recommended best practices for exposing functionality to the end user. Developers should realize that these are not hard rules and that, from time to time, it may be necessary to break these guidelines.”
<p>Rate our coffee</p>
<input type="radio" name="ratec" id="ratec1" value="1" /> <label for="ratec1">Poor</label>
<input type="radio" name="ratec" id="ratec2" value="2" /> <label for="ratec2">Average</label>
...
<fieldset>
<legend>Rate our coffee:</legend>
<input type="radio" name="ratec" id="ratec1" value="1" /> <label for="ratec1">Poor</label>
...
</fieldset>
location.hash
<?php require('ContactForm.php'); ?>
<script src="http://static.umn.edu/jquery.js" type="text/javascript"></script>