File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 13
13
</ head >
14
14
15
15
< body >
16
- < main > </ main >
16
+ < main >
17
+ < form id ="emailForm " onsubmit ="return alert('Email sent'); ">
18
+ < label for ="name "> Name:</ label >
19
+ < input id ="name " type ="text " name ="name " />
20
+ < label for ="email "> Email:</ label >
21
+ < input id ="email " type ="text " name ="email " />
22
+ < label for ="message "> Your message:</ label >
23
+ < textarea id ="message " name ="message " rows ="10 "> </ textarea >
24
+ < button type ="submit "> Submit</ button >
25
+ </ form >
26
+ </ main >
17
27
</ body >
18
28
</ html >
Original file line number Diff line number Diff line change 1
1
body {
2
2
padding : 10px ;
3
+ width : 800px ;
4
+ margin : auto;
3
5
}
4
6
5
7
input {
6
- margin : 5 px ;
8
+ margin-bottom : 30 px ;
7
9
}
10
+
11
+ form {
12
+ display : flex;
13
+ flex-direction : column;
14
+ }
15
+
16
+ .button-wrapper {
17
+ display : flex;
18
+ flex-direction : row;
19
+ }
20
+
21
+ form button {
22
+ margin-top : 30px ;
23
+ background-color : white;
24
+ border-radius : 5px ;
25
+ width : 80px ;
26
+ }
You can’t perform that action at this time.
0 commit comments