Post by: Ian
Penggunaan Tag Html checkbox, tag label, tag fieldset, tag legend
Contoh:
<!DOCTYPE html>
<html>
<head>
<title>Belajar Tag Input Type=checkbox HTML</title>
</head>
<body>
<h4>Belajar tag Input type="checkbox" di Zona Info.Blogspot.co.id:</h4>
<form>
Checkbox dasar :
<input type="checkbox" name="hobi1" value="HTML"/>belajar HTML
<br />
Checkbox + checked :
<input type="checkbox" name="hobi2" value="HTML" checked="checked"/>
belajar HTML
<br />
Checkbox + disabled :
<input type="checkbox" name="hobi3" value="HTML" disabled="disabled"/>
belajar HTML
<br />
<br />
Checkbox + Tag Label + Tag fieldset + Taglegend :
<fieldset>
<legend>Hobi</legend>
<label>
<input type="checkbox" name="hobi4" value="HTML"/>belajar HTML
</label>
<label>
<input type="checkbox" name="hobi4" value="CSS"/>belajar CSS
</label>
<label>
<input type="checkbox" name="hobi4" value="PHP"/>belajar PHP
</label>
</fieldset>
</form>
</body>
</html>
Preview:
No comments:
Post a Comment