Skip to content

Commit c285463

Browse files
author
JorvanW
committed
Added <required> attribute to form inputs in index.html
Added <meta name="description" content="T-Shirts form" /> to index.html
1 parent ea8f171 commit c285463

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Form-Controls/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<title>My form exercise</title>
7-
<meta name="description" content="" />
7+
<meta name="description" content="T-Shirts form" />
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
99
<link rel="stylesheet" href="style.css" />
1010
</head>
@@ -15,11 +15,11 @@ <h1>T-Shirts</h1>
1515
<main>
1616
<form>
1717
<label for="name">Name</label>
18-
<input id="name" type="text"/>
18+
<input id="name" type="text" required/>
1919
<label for="email">Email</label>
20-
<input id="email" type="email"/>
20+
<input id="email" type="email" required/>
2121
<label for="size">Size
22-
<select id="size">
22+
<select id="size" required>
2323
<option value="xsmall">XS</option>
2424
<option value="small">S</option>
2525
<option value="medium">M</option>
@@ -29,7 +29,7 @@ <h1>T-Shirts</h1>
2929
</select>
3030
</label>
3131
<label for="colour">Colour
32-
<select id="colour">
32+
<select id="colour" required>
3333
<option value="yellow">Yellow</option>
3434
<option value="black">Black</option>
3535
<option value="pink">Pink</option>

0 commit comments

Comments
 (0)