Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 61 additions & 7 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,69 @@ <h1>Product Pick</h1>
</header>
<main>
<form>
<!-- write your html here-->
<!--
try writing out the requirements first as comments
this will also help you fill in your PR message later-->
</form>
</main>
<label for="name">Customer Name</label>
<input
type="text"
id="name"
name="name"
required
pattern=".*\S.*\S.*"
/>
<br><br>
<label for="email">Email</label>
<input
type="email"
id="email"
name="email"
required
/>
<br><br>
<fieldset style="width:fit-content;">
<legend>T-shirt Colour</legend>

<input
type="radio"
id="red"
name="colour"
value="red"
required
/>
<label for="red">Red</label>

<input
type="radio"
id="blue"
name="colour"
value="blue"
/>
<label for="blue">Blue</label>

<input
type="radio"
id="black"
name="colour"
value="black"
/>
<label for="black">Black</label>
</fieldset>
<br>
<label for="size">T-shirt Size</label>
<select id="size" name="size" required>
<option value="">Choose a size</option>
<option value="xs">XS</option>
<option value="s">S</option>
<option value="m">M</option>
<option value="l">L</option>
<option value="xl">XL</option>
<option value="xxl">XXL</option>
</select>
<br><br>
<button type="submit">Submit Order</button>
</form>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
<p>By Yodit kasu</p>
</footer>
</body>
</html>
Loading