<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" checked />
</li>
<li>
<label for="rainbow">Rainbow Dash</label>
<input type="radio" id="rainbow" name="pony" value="rainbow" />
</li>
<li>
<label for="twilight">Twilight Sparkle</label>
<input type="radio" id="twilight" name="pony" value="twilight" />
</li>
</ul>
</fieldset>
<fieldset>
<legend>Hotdog preferences</legend>
<ul>
<li>
<label for="vegan">Vegan</label>
<input type="checkbox" id="vegan" name="preferences" value="vegan" />
</li>
<li>
<label for="onions">Onions</label>
<input type="checkbox" id="onions" name="preferences" value="onions" />
</li>
<li>
<label for="fries">Side of Fries</label>
<input type="checkbox" id="fries" name="preferences" value="fries" />
</li>
<li>
<label for="chips">Side of Chips</label>
<input type="checkbox" id="chips" name="preferences" value="chips" />
</li>
</ul>
</fieldset>
<button>Submit</button>
</form>
</body>
</html>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.