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
51 changes: 43 additions & 8 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,51 @@
<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>
<form><libel for="name">Customer name:</libel><br>
<input
type="text"
id="name"
title="Name must contain only letters and spaces"><br><br>

Choose a reason for hiding this comment

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

can you come up with a better way to check if customer name is a valid name?

<label for="email">Email Address</label>
<br>
<input
type="email"
id="email"
name="email"
required>
<br><br>

Choose a reason for hiding this comment

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

also come up with a better way to check if Email address is a valid email address.

<label for="colour">T-Shirt Colour:</label>
<br>
<select id="colour" name="colour"required>
<option value="select a colour">Select a colour</option>

Choose a reason for hiding this comment

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

select a colour is not supposed to be part of the option value

<option value="Pink">Pink</option>
<option value="Aqua">Aqua</option>
<option value="White">White</option>
</select>
<br><br>
<fieldset>
<legend>T-Shirt Size</legend>
<input type="radio" id="xs" name="size" value="xs">
<label for="xs">xs</label>
<input type="radio" id="s" name="size" value="s">
<label for="s">s</label>
<input type="radio" id="m" name="size" value="m">
<label for="m">m</label>
<input type="radio" id="l" name="size" value="l">
<label for="l">l</label>
<input type="radio" id="xl" name="size" value="xl">
<label for="xl">xl</label>
<input type="radio" id="xxl" name="size" value="xxl">
<label for="xxl">xxl</label>

</fieldset>

</form>
</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<!-- Fattouma Ouannassi-->
<h2>Fattouma Ouannassi</h2>
</footer>
</body>
</html>