Skip to content

Commit 0728ba1

Browse files
committed
Added basic style sheet with text formatting
1 parent 53f0989 commit 0728ba1

2 files changed

Lines changed: 19 additions & 9 deletions

File tree

Form-Controls/index.html

Lines changed: 6 additions & 9 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+
<link rel="Stylesheet" href="Mystyle.css" />
911
</head>
1012
<body>
1113
<header>
@@ -14,21 +16,17 @@ <h1>Product Pick</h1>
1416
<main>
1517
<h2> Verify your order and details below:</h2>
1618
<form>
17-
18-
19-
<!-- write your html here-->
20-
<!--
21-
try writing out the requirements first as comments
22-
this will also help you fill in your PR message later-->
2319

24-
<!-- REQUIREMENTS: -->
20+
<!-- REQUIREMENTS:
21+
Each requirement is listed as a comment with the corresponding code below it-->
2522
<!-- 1.Customer's name - ensure it contains at least two non-space characters. -->
2623
<div>
2724
<p>
2825
<label>Full Name:</label>
2926
<input type = "text" id = "name" name = "name">
3027
</p>
3128
</div>
29+
3230
<!-- 2.Customer's email - Email must be valid and follow consistent pattern. -->
3331
<div>
3432
<p>
@@ -42,8 +40,7 @@ <h2> Verify your order and details below:</h2>
4240
<p>
4341
<label for="T-Shirt Colour"> T-Shirt Colour: </label>
4442
<select name="T-Shirt Colour" id="T-Shirt Colour">
45-
<option selected disabled> Choose colour:</option>
46-
43+
<option selected disabled > Select a colour </option>
4744
<option label="Red" value="Red"> Red </option>
4845

4946
<option label="Blue" value="Blue"> Blue </option>

Form-Controls/mystyle.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* Form Styling */
2+
3+
4+
/* Text Formatting */
5+
/* Headers */
6+
h1, h2 {font-family: Tahoma;}
7+
8+
h2 {font-weight: lighter;}
9+
10+
/* Paragraph */
11+
12+
p {font-family: verdana;
13+
font-size: 90%;}

0 commit comments

Comments
 (0)