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
96 changes: 72 additions & 24 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,75 @@
<!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-->
<p>By HOMEWORK SOLUTION</p>
</footer>
</body>
<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" />
<style>
body{
align-items: center;
padding:10px;
}
label{
display: block;
margin-bottom: 10px;
}
input{
width: fit-content;
padding: 15px;
margin-bottom: 10px;
}
</style>
</head>
<body>
<header>
<h1>Product Pick</h1>
</header>
<main>
<form>
<div class="name">
<label for="name">Name</label>
<input
type="text"
name="name"
id="name"
pattern=".*\S.*\S.*"
placeholder="Enter Your Name"
/>
</div>
<div class="email">
<label for="email">Email</label>
<input
type="email"
name="email"
id="email"
required
placeholder="Enter your email address"
/>
</div>
<div class="colour">
<label for="red">Red</label>
<input type="radio" name="colour" id="red" value="Red">
<label for="blue">Blue</label>
<input type="radio" name="colour" id="blue" value="Blue">
<label for="green">Green</label>
<input type="radio" name="colour" id="green" value="Green">
</div>
<div class="size">
<label for="size">T-shirt Size</label>
<select name="size" id="size">
<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>
</div>
</form>
</main>
<footer>
<p>Created by Szidonia Bodo</p>
</footer>
</body>
</html>
Loading