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
109 changes: 84 additions & 25 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,86 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>My form exercise</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<header>
<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>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
</footer>
</body>
</html>

<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>My form exercise</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>

<body>
<header>
<h1>Product Pick</h1>
</header>

<main>
<form>
<fieldset>
<legend>Customer Information</legend>

<div>
<label for="username">User name</label><br>
<input id="username" name="username" type="text" placeholder="Your name" minlength="2" autocomplete="username"
required size="30">
</div><br>

<div>
<label for="password">Password</label><br>
<input id="password" name="password" type="password" placeholder="At least 8 characters" minlength="8"
autocomplete="current-password" required size="30">
</div><br>

Comment on lines +28 to +33
Copy link
Contributor

Choose a reason for hiding this comment

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

It is good that you are trying different input elements. It is just unusual to have a password field in a T-shirt ordering form.

<div>
<label for="email">Email</label><br>
<input id="email" name="email" type="email" placeholder="example@email.com" autocomplete="email" required
size="30">
</div>
</fieldset>

<fieldset>
<legend>Product Information</legend>

<div>
<label for="colour">Select colour</label><br>
<select id="colour" name="colour" autocomplete="off" required>
<option>--Choose a colour--</option>
<option value="red">red</option>
<option value="blue">blue</option>
<option value="grey">grey</option>
</select>
</div><br>

<div>
<label for="size">Select size</label><br>
<select name="size" id="size" autocomplete="off" 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>
</div><br>

<div>
<label for="quantity">Select quantity</label><br>
<input type="number" id="quantity" name="quantity" min="1" max="100" autocomplete="off" required>
</div>

<hr>

<div>
<input type="submit" value="Send">
</div>
</fieldset>
</form>
</main>

<footer>
<h2>By Mona_Eltantawy</h2>
</footer>
</body>

</html>
Loading