Skip to content

Commit 314bce2

Browse files
committed
Glasgow| 26-ITP-Jan|Fattouma Ouannassi| Sprint 2 | Form Controls
<!-- You must title your PR like this: Region | Cohort | FirstName LastName | Sprint | Assignment Title For example, London | 25-ITP-May | Carol Owen | Sprint 1 | Alarm Clock Fill in the template below - remove any sections that don't apply. Complete the self checklist - replace each empty box in the checklist [ ] with a [x]. Add the label "Needs Review" and you will get review. Respond to volunteer reviews until the volunteer marks it as "Complete". --> ## Learners, PR Template Self checklist - [x] I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title - [x] My changes meet the requirements of the task - [x] I have tested my changes - [x] My changes follow the [style guide](https://curriculum.codeyourfuture.io/guides/reviewing/style-guide/) ## Changelist This PR includes modifications to the HTML file to create an order form for customers to order T-Shirts. [✓] My form is semantic html. [✓] All inputs have associated labels. [✓] My Lighthouse Accessibility score is 100. [✓] I require a valid name. I have defined a valid name as a text string of two characters or more. [✓] I require a valid email. [✓] I require one colour from a defined set of 3 colours. [✓] I require one size from a defined set of 6 sizes. ## Questions /
1 parent 72fe02b commit 314bce2

1 file changed

Lines changed: 43 additions & 8 deletions

File tree

Form-Controls/index.html

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,51 @@
1212
<h1>Product Pick</h1>
1313
</header>
1414
<main>
15-
<form>
16-
<!-- write your html here-->
17-
<!--
18-
try writing out the requirements first as comments
19-
this will also help you fill in your PR message later-->
20-
</form>
15+
<form><libel for="name">Customer name:</libel><br>
16+
<input
17+
type="text"
18+
id="name"
19+
title="Name must contain only letters and spaces"><br><br>
20+
21+
<label for="email">Email Address</label>
22+
<br>
23+
<input
24+
type="email"
25+
id="email"
26+
name="email"
27+
required>
28+
<br><br>
29+
<label for="colour">T-Shirt Colour:</label>
30+
<br>
31+
<select id="colour" name="colour"required>
32+
<option value="select a colour">Select a colour</option>
33+
<option value="Pink">Pink</option>
34+
<option value="Aqua">Aqua</option>
35+
<option value="White">White</option>
36+
</select>
37+
<br><br>
38+
<fieldset>
39+
<legend>T-Shirt Size</legend>
40+
<input type="radio" id="xs" name="size" value="xs">
41+
<label for="xs">xs</label>
42+
<input type="radio" id="s" name="size" value="s">
43+
<label for="s">s</label>
44+
<input type="radio" id="m" name="size" value="m">
45+
<label for="m">m</label>
46+
<input type="radio" id="l" name="size" value="l">
47+
<label for="l">l</label>
48+
<input type="radio" id="xl" name="size" value="xl">
49+
<label for="xl">xl</label>
50+
<input type="radio" id="xxl" name="size" value="xxl">
51+
<label for="xxl">xxl</label>
52+
53+
</fieldset>
54+
55+
</form>
2156
</main>
2257
<footer>
23-
<!-- change to your name-->
24-
<h2>By HOMEWORK SOLUTION</h2>
58+
<!-- Fattouma Ouannassi-->
59+
<h2>Fattouma Ouannassi</h2>
2560
</footer>
2661
</body>
2762
</html>

0 commit comments

Comments
 (0)