Skip to content

Commit 458e5f5

Browse files
fix : format html indentation consistently
1 parent 639a844 commit 458e5f5

1 file changed

Lines changed: 69 additions & 56 deletions

File tree

Form-Controls/index.html

Lines changed: 69 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,73 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<title>T-Shirt Order Form</title>
7+
<meta
8+
name="description"
9+
content="T-shirt order form where customers choose their size and colour."
10+
/>
11+
<meta name="viewport" content="width=device-width, initial-scale=1" />
12+
<link rel="stylesheet" href="/Form-Controls/style.css" />
13+
</head>
314

4-
<head>
5-
<meta charset="utf-8" />
6-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
7-
<title>T-Shirt Order Form</title>
8-
<meta name="description" content="T-shirt order form where customers choose their size and colour." />
9-
<meta name="viewport" content="width=device-width, initial-scale=1" />
10-
<link rel="stylesheet" href="/Form-Controls/style.css">
11-
</head>
15+
<body>
16+
<header>
17+
<h1>Product Pick</h1>
18+
</header>
19+
<main class="container">
20+
<form>
21+
<div class="form-group">
22+
<label for="name">Name</label>
23+
<input
24+
type="text"
25+
name="name"
26+
id="name"
27+
required
28+
minlength="2"
29+
pattern=".*\S.*\S.*"
30+
placeholder="Enter your full name"
31+
/>
32+
</div>
1233

13-
<body>
14-
<header>
15-
<h1>Product Pick</h1>
16-
</header>
17-
<main class="container">
18-
<form>
34+
<div class="form-group">
35+
<label for="email">Email</label>
36+
<input
37+
type="email"
38+
name="email"
39+
id="email"
40+
required
41+
placeholder="Enter your email"
42+
/>
43+
</div>
44+
<div class="form-group">
45+
<label for="colour">T-Shirt Colour</label>
46+
<select id="colour" name="colour" required>
47+
<option value="">Select a colour</option>
48+
<option value="black">Black</option>
49+
<option value="white">White</option>
50+
<option value="red">Red</option>
51+
</select>
52+
</div>
53+
<div class="form-group">
54+
<label for="size">T-Shirt Size</label>
55+
<select id="size" name="size" required>
56+
<option value="">Select a size</option>
57+
<option value="xs">XS</option>
58+
<option value="s">S</option>
59+
<option value="m">M</option>
60+
<option value="l">L</option>
61+
<option value="xl">XL</option>
62+
<option value="xxl">XXL</option>
63+
</select>
64+
</div>
1965

20-
<div class="form-group">
21-
<label for="name">Name</label>
22-
<input type="text" name="name" id="name" required minlength="2" pattern=".*\S.*\S.*"
23-
placeholder="Enter your full name">
24-
</div>
25-
26-
<div class="form-group">
27-
<label for="email">Email</label>
28-
<input type="email" name="email" id="email" required placeholder="Enter your email">
29-
</div>
30-
<div class="form-group">
31-
<label for="colour">T-Shirt Colour</label>
32-
<select id="colour" name="colour" required>
33-
<option value="">Select a colour</option>
34-
<option value="black">Black</option>
35-
<option value="white">White</option>
36-
<option value="red">Red</option>
37-
</select>
38-
</div>
39-
<div class="form-group">
40-
<label for="size">T-Shirt Size</label>
41-
<select id="size" name="size" required>
42-
<option value="">Select a size</option>
43-
<option value="xs">XS</option>
44-
<option value="s">S</option>
45-
<option value="m">M</option>
46-
<option value="l">L</option>
47-
<option value="xl">XL</option>
48-
<option value="xxl">XXL</option>
49-
</select>
50-
</div>
51-
52-
<button type="submit">Place Order</button>
53-
</form>
54-
</main>
55-
<footer>
56-
<p>By Liyema Mfengwana</p>
57-
</footer>
58-
</body>
59-
60-
</html>
66+
<button type="submit">Place Order</button>
67+
</form>
68+
</main>
69+
<footer>
70+
<p>By Liyema Mfengwana</p>
71+
</footer>
72+
</body>
73+
</html>

0 commit comments

Comments
 (0)