radio - 单选框
element/form/input/radio.html
<!doctype html>
<html>
<head>
<title>radio</title>
</head>
<body>
<!--
radio - 单选框
checked - 是否是选中状态
name - 相同的是同一组
-->
<input id="rad" type="radio" checked name="rad" />
<label for="rad">radio button title</label>
<input id="rad2" type="radio" name="rad" />
<label for="rad2">radio button title</label>
<script type="text/javascript">
alert(document.getElementsByTagName("input")[0].value);
</script>
</body>
</html>
checkbox - 复选框
element/form/input/checkbox.html
<!doctype html>
<html>
<head>
<title>checkbox</title>
</head>
<body>
<!--
checkbox - 复选框
checked - 是否是选中状态
-->
<input id="chk" type="checkbox" checked />
<label for="chk">checkbox title</label>
<script type="text/javascript">
alert(document.getElementsByTagName("input")[0].checked);
</script>
</body>
</html>