<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Basic controls: Task 2</title>
<style>
body {
background-color: #fff;
color: #333;
font: 1em / 1.4 Helvetica Neue, Helvetica, Arial, sans-serif;
padding: 1em;
margin: 0;
}
* {
box-sizing: border-box;
}
</style>
</head>
<body>
<form>
<fieldset>
<legend>Who is your favorite pony?</legend>
<ul>
<li>
<label for="pinkie">Pinkie Pie</label>
<input type="radio" id="pinkie" name="pony" value="Pinkie Pie" />
</li>
<li>
<label for="rainbow">Rainbow Dash</label>
<input type="radio" id="rainbow" name="pony" value="Rainbow Dash" />
</li>
<li>
<label for="twilight">Twilight Sparkle</label>
<input type="radio" id="twilight" name="pony" value="Twilight Sparkle"
</li>
</ul>
</fieldset>
<fieldset>
<legend>Hotdog preferences</legend>
<ul>
<li>
<label for="vegan">Vegan</label>
<input type="checkbox" id="vegan" name="hotdog" value="Vegan" />
</li>
<li>
<label for="onions">Onions</label>
<input type="checkbox" id="onions" name="hotdog" value="Onions" />
</li>
<li>
<label for="polish">Polish Sausage</label>
<input type="checkbox" id="polish" name="hotdog" value="Polish Sausage" />
</li>
<li>
<label for="tijuana">Tijuana hot dog</label>
<input type="checkbox" id="tijuana" name="hotdog" value="Tijuana hot dog" />
</li>
</ul>
</fieldset>
<button type="submit">Submit</button>
</form>
</body>
</html>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.