Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.
Open
Show file tree
Hide file tree
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
78 changes: 78 additions & 0 deletions <!DOCTYPE html>.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>T-Shirt Order Form</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
<h2>T-Shirt Order Form</h2>

<form>
<!-- Customer's Name -->
<label for="name">Customer Name <span class="required">*</span></label>
<input
type="text"
id="name"
name="name"
required
pattern="[A-Za-z\s]{2,50}"
title="Name should only contain letters and spaces, and be 2-50 characters long."
placeholder="Enter your full name"
/>

<!-- Customer's Email -->
<label for="email">Email <span class="required">*</span></label>
<input
type="email"
id="email"
name="email"
required
placeholder="Enter your email address"
/>

<!-- T-shirt Colour -->
<label for="color"
>Choose T-shirt Colour <span class="required">*</span></label
>
<select id="color" name="color" required>
<option value="">Select a color</option>
<option value="red">Red</option>
<option value="blue">Blue</option>
<option value="black">Black</option>
</select>

<!-- T-shirt Size -->
<label for="size"
>Choose T-shirt Size <span class="required">*</span></label
>
<select id="size" name="size" required>
<option value="">Select 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>

<!-- Delivery Date -->
<label for="delivery"
>Preferred Delivery Date <span class="required">*</span></label
>
<input
type="date"
id="delivery"
name="delivery"
required
min=""
max=""
placeholder="Select a delivery date within the next 4 weeks"
/>

<!-- Submit Button -->
<button type="submit">Submit Order</button>
</form>
</body>
</html>
26 changes: 26 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
body {
font-family: Arial, sans-serif;
}
form {
max-width: 400px;
margin: 0 auto;
}
label,
select,
input {
display: block;
margin-bottom: 10px;
}
input[type="text"],
input[type="email"],
input[type="date"] {
width: 100%;
padding: 8px;
}
select {
width: 100%;
padding: 8px;
}
.required {
color: red;
}