-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathex05-11.html
49 lines (48 loc) · 1.24 KB
/
ex05-11.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>폼 스타일 주기</title>
<style>
input[type=text]{
color : red;
}
input:hover,textarea:hover {
background : aliceblue;
}
input[type=text]:focus,input[type=email]:focus{
font-size : 120%;
}
label {
display : block;
padding : 5px;
}
label span {
display : inline-block;
width: 90px;
text-align : right;
padding : 10px;
}
</style>
</head>
<body>
<h3>CONTACT US</h3>
<hr>
<form>
<label>
<span>Name</span><input type="text" placeholder="Elvis">
</label>
<label>
<span>Email</span><input type="email" placeholder="elvis@graceland.com">
</label>
<label>
<span>Comment</span><textarea placeholder="메세지를 남겨주세요"></textarea>
</label>
<label>
<span></span><input type="submit" value="submit">
</label>
</form>
</body>
</html>