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
44 changes: 38 additions & 6 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,48 @@
<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>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required
minlength="2" pattern="^[A-Za-z ]{2,}$"
title="Name must be at least 2 letters and contain only letters"
/>
<br /><br />
<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="name@example.com" required />
<br /><br />
<fieldset>
<legend>Please select a color:</legend>
<input type="radio" id="black" name="color" value="black" required />
<label for="black">black</label>
<br />
<br />
<input type="radio" id="blue" name="color" value="blue" required />
<label for="blue">blue</label>
<br />
<br />
<input type="radio" id="red" name="color" value="red" required />
<label for="red">red</label>
<br />
<br />
</fieldset>
<br /> <br />
<label for="size">Please select a size:</label>
<select id="size" name="size" required>
<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</button>
</form>
</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<p>Oussama Mouggal</p>
</footer>
</body>
</html>