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
64 changes: 54 additions & 10 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,71 @@
<!DOCTYPE html>
<!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="description" content=" Creating a structural form element" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<header>
<h1>Product Pick</h1>
<h2>By HOMEWORK SOLUTION</h2>
</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-->
<section>
<p>
<label for="name"> Name</label>
<input
type="text"
id="name"
placeholder="Please enter your name"
required
pattern="^[A-Za-z]{2,20}$"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain what this pattern mean?

/>
</p>
<p>
<label for="email"> Email</label>
<input type="email" placeholder="Enter you email here" required />
</p>

<label for="">Color</label>
<ul>
<li>
<br />
<label for="red"> Red</label>
<input type="radio" id="red" value="Red" name="color" required/>
</li>

<li>
<br />
<label for="blue"> Blue</label>
<input type="radio" id="blue" value="Blue" name="color" required/>
</li>

<li>
<br />
<label for="green"> Green</label>
<input type="radio" id="green" value="Green" name="color" required/>
</li>
</ul>

<label for="size">Size</label>
<select name="size" id="size" required>
<option value="" disabled selected hidden>Select an option</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>
</section>
<button type="submit">Submit</button>
</form>
</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
</footer>

<footer>Form by Edak</footer>
</body>
</html>