Skip to content
34 changes: 33 additions & 1 deletion Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,43 @@ <h1>Product Pick</h1>
<!--
try writing out the requirements first as comments
this will also help you fill in your PR message later-->

<!--Create an input for NAME-->
<div>
<label for="name">Name</label>
<input name="name" id="name" type="text" placeholder="full name" pattern=".*\S.*\S.*" required>
</div>
<!--Add an imput for Email-->
<div>
<label for="email">Email</label>
<input type="email" name="email" id="email" required>
</div
<!--create a select for colour-->
<div>
<label for="colour">Colour</label>
<select name="colour" id="colour" required>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="blue">Blue</option>
</select>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a way to configure a <select> element so that no option is selected by default, allowing the user to make an explicit choice.

</div>

<!--create a select for the shirt size-->
<div>
<label for="size">Size</label>
<select name="size"id="size" required>Size</select>
<option value="extraSmall">XS</option>
<option value="small">S</option>
<option value="medium">M</option>
<option value="large">L</option>
<option value="extraLarge">XL</option>
<option value="extraExtraLarge">XXL</option>
</div>
</form>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
<p>By Liridona Shehu</p>
</footer>
</body>
</html>
Loading