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
65 changes: 58 additions & 7 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,67 @@
<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>
<section>

<div>
<label for="name"> Name*: </label>
<input type="text" id="name" name="name" required minlength="2">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Min length is a good idea but also allows 2 space characters to be entered and passing the validaiton. How can you ensure the characaters are not spaces?

</div>

<div>
<label for="email">Email*:</label>
<input type="email" id="email" name="email" required>
</div>


<fieldset>
<legend >T-shirt Color</legend>
<div>
<label for="black">
Comment on lines +31 to +32

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The standard for child elements is to make them more visible in the code by using indentation. How can you ensure your code is formatted according to standards?

<input type="radio" id="black" name="t-shirt-color" value="black" required>
Black

</label>

</div>
<div>
<label for="red">
<input type="radio" id="red" name="t-shirt-color" value="red">
Red
</label>

</div>
<div>
<label for="green">
<input type="radio" id="green" name="t-shirt-color" value="green">
Green
</label>

</div>
</fieldset>


<div>
<label for="t-shirt-size"> T-Shirt Size</label>
<select name="T-shirtSize" id="t-shirt-size" required>
<option value="XS">XS</option>
<option label="S" value="S">S</option>
<option label="M" value="M">M</option>
<option label="L" value="L">L</option>
<option label="XL" value="XL">XL</option>
<option label="XXL" value="XXL">XXL</option>
</select>
</div>
<div>
<button type="submit">Place your order</button>
</div>
</section>
</form>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>

<p>By Ebraim Moqbel</p>
</footer>
</body>
</html>
Loading