Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
871c4a8
Added guide for task in comment
leigh-ross Sep 11, 2026
cff3ee9
Added my name.
leigh-ross Sep 11, 2026
0cf8116
Added customer name field
leigh-ross Sep 11, 2026
89141e5
added customer email field
leigh-ross Sep 11, 2026
45271aa
added dropdown list of t-shirt colors
leigh-ross Sep 11, 2026
fcb1d2f
added dropdown list of t-shirt sizes
leigh-ross Sep 11, 2026
c299ec4
fixed id and name tags of t-shirt sizes
leigh-ross Sep 11, 2026
31bf03d
Added closing tag for select
leigh-ross Sep 11, 2026
66e3228
Added closing tag for select, for both sizes and colors
leigh-ross Sep 11, 2026
4a2104b
Added regex pattern for customer name
leigh-ross Sep 12, 2026
30b3dcf
Made email field required
leigh-ross Sep 12, 2026
fd27fef
Fixed broken regex for customer name
leigh-ross Sep 12, 2026
1ccf174
Removed extra T-shirt color
leigh-ross Sep 12, 2026
2fc0f60
Made T-shirt color and size required
leigh-ross Sep 12, 2026
568fdea
Removed comment: Write html here
leigh-ross Sep 12, 2026
a13f196
Added submit button
leigh-ross Sep 12, 2026
211da9e
Fixed submit button
leigh-ross Sep 12, 2026
4909255
Made customer name required
leigh-ross Sep 12, 2026
ab6d7fc
Clarified requirement for t-shirt color
leigh-ross Sep 12, 2026
ed63ada
Made button display: Place order
leigh-ross Sep 12, 2026
0ff6a21
Button displays: Place order
leigh-ross Sep 12, 2026
ea9f29f
Remove instruction comment
leigh-ross Sep 12, 2026
7561399
Removed trailing slashes on void elements
leigh-ross Sep 12, 2026
89bbbcc
Cleaned up unnecesarry comments, improved and consistend formatting a…
leigh-ross Sep 12, 2026
9b8297f
created and linked css file
leigh-ross Sep 12, 2026
27c4654
Format h1: size, font, alignment
leigh-ross Sep 13, 2026
9b97c0c
Fixed style.css link
leigh-ross Sep 13, 2026
7358357
fix: h1 size is reponsive, add label format
leigh-ross Sep 13, 2026
9b3e550
Removed font-family from h1 and applied it to body, added formatting …
leigh-ross Sep 13, 2026
1e12c53
Added field class to form inputs and btn class to submit button
leigh-ross Sep 13, 2026
13ab105
Moved center align to body, formating field class
leigh-ross Sep 13, 2026
83cc760
Changed padding and made border 1px in field class
leigh-ross Sep 13, 2026
5f6672b
btn class format: made width slightly bigger, added padding, border r…
leigh-ross Sep 13, 2026
0b84ed4
Cleaned up code format, final touches
leigh-ross Sep 13, 2026
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
42 changes: 32 additions & 10 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,49 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="utf-8">
<title>My form exercise</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
</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-->

<label for="cname">Customer name</label>
<input class="field" type="text" id="cname" name="cname" title="Please enter at least 2 non-space characters." pattern=".*\S.*\S.*" required>

<label for="cemail">Customer email</label>
<input class="field" type="email" id="cemail" name="cemail" required>

<label for="tcolor">T-shirt color</label>
<select class="field" id="tcolor" name="tcolor" required>
<option value="">Choose a color</option>
<option value="White">White</option>
<option value="Black">Black</option>
<option value="Blue">Blue</option>
</select>

<label for="tsize">T-shirt size</label>
<select class="field" id="tsize" name="tsize" 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>

<input class="btn" type="submit" value="Place order">

</form>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
<p>By Tyler-leigh Ross</p>
</footer>
</body>
</html>
35 changes: 35 additions & 0 deletions Form-Controls/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
body {
font-family: Arial, sans-serif;
text-align: center;
}

h1 {
font-size: clamp(1.875rem, 4vw, 3.125rem);
}

label {
font-size: 1rem;
display: block;
margin-bottom: 0.3rem;
}

.field {
font-size: 1.125rem;
font-family: inherit;
width: 50%;
margin-bottom: 1.5rem;
padding: 0.2rem;
border: 1px solid #acaaa6;
border-radius: 4px;
background-color: #f0faf4
}

.btn {
font-size:1.125rem;
width: 40%;
display: block;
margin: 0 auto;
padding: 0.2rem;
border-radius: 4px;
background-color: #a8ecc4;
}
Loading