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
76 changes: 69 additions & 7 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,77 @@ <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>

<!--Customer Name-->
<label for="name">Full Name:</label>
<input type="text" placeholder="Enter your name" id="name" minlength="2" pattern="[A-Za-z ]+"
title="Name should contain only letters and spaces" required><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?

Copy link
Author

Choose a reason for hiding this comment

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

Done✅

<!--Customer Email-->
<label for="email">Email Address:</label>
<input
type="email"
placeholder="Enter your 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.

Copy link
Author

Choose a reason for hiding this comment

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

Done✅

<!--Product Pick-->
<fieldset>
<legend>Choose T-shirt Colour</legend>
<label>
<input
type="radio"
name="colour"
value="white"
required>
White
</label>

<label>
<input
type="radio"
name="colour"
value="aqua"
required>
Aqua
</label>

<label>
<input
type="radio"
name="colour"
value="pink"
required>
Pink
</label>
</fieldset>


<br>
<fieldset>
<legend>Choose 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><br><br>
<button type="submit">Submit</button>

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