Skip to content

Commit 34480d5

Browse files
Created .css file for styling
1 parent 92359a0 commit 34480d5

2 files changed

Lines changed: 19 additions & 17 deletions

File tree

Form-Controls/index.html

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<title>My form exercise</title>
77
<meta name="description" content="" />
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
9+
10+
911
</head>
1012
<body>
1113
<header>
@@ -18,12 +20,12 @@ <h1>Product T-shirts</h1>
1820
<!-- 1. What is the customer's name? I must collect this data and ensure it contains at least two non-space characters. -->
1921

2022
<label for="username">Name</label>
21-
<input type="text" id="username" minlength="2" required/>
23+
<input type="text" id="username" minlength="2" required autocomplete="name">
2224

2325
<!-- 2. What is the customer's email? I must make sure the email is valid. Email addresses follow a consistent pattern. -->
2426

2527
<label for="email">Email</label>
26-
<input type="email" id="email" required>
28+
<input type="email" id="email" required autocomplete="email">
2729

2830
<!-- 3. What colour should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours? -->
2931

@@ -34,10 +36,10 @@ <h1>Product T-shirts</h1>
3436
<input type="radio" id="red" name="colour" value="red" required>
3537

3638
<label for="green">Green</label>
37-
<input type="radio" id="green" name="colour" value="green" required>
39+
<input type="radio" id="green" name="colour" value="green">
3840

3941
<label for="white">White</label>
40-
<input type="radio" id="white" name="colour" value="white" required>
42+
<input type="radio" id="white" name="colour" value="white">
4143

4244

4345
</fieldset>
@@ -47,28 +49,28 @@ <h1>Product T-shirts</h1>
4749
<fieldset>
4850
<legend>Choose a size</legend>
4951

50-
<label for="xsmall">XS</label>
51-
<input type="radio" id="xsmall" name="size" value="xsmall" required>
52+
<label for="xs">XS</label>
53+
<input type="radio" id="xs" name="size" value="xs" required>
5254

53-
<label for="small">S</label>
54-
<input type="radio" id="small" name="size" value="small" required>
55+
<label for="s">S</label>
56+
<input type="radio" id="s" name="size" value="s" required>
5557

56-
<label for="medium">M</label>
57-
<input type="radio" id="medium" name="size" value="medium" required>
58+
<label for="m">M</label>
59+
<input type="radio" id="m" name="size" value="m" required>
5860

59-
<label for="large">L</label>
60-
<input type="radio" id="large" name="size" value="large" required>
61+
<label for="l">L</label>
62+
<input type="radio" id="l" name="size" value="l" required>
6163

62-
<label for="xlarge">XL</label>
63-
<input type="radio" id="xlarge" name="size" value="xlarge" required>
64+
<label for="xl">XL</label>
65+
<input type="radio" id="xl" name="size" value="xl" required>
6466

65-
<label for="xxlarge">XXL</label>
66-
<input type="radio" id="xxlarge" name="size" value="xxlarge" required>
67+
<label for="xxl">XXL</label>
68+
<input type="radio" id="xxl" name="size" value="xxl" required>
6769

6870

6971
</fieldset>
7072

71-
<button type="button">Submit</button>
73+
<button type="submit">Submit</button>
7274

7375

7476

Form-Controls/style.css

Whitespace-only changes.

0 commit comments

Comments
 (0)