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="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
label{
display : block; /*새라인에서 시작*/
padding : 5px;
}
label span {
display: inline-block;
width: 90px;
text-align: right;
padding: 10px;
}
input[type=text]{ /*html태그[속성=값]*/
color: red;
}
input:hover, textarea:hover{
background-color: aliceblue;
}
input[type=text]:focus, input[type=email]:focus{
font-size: 120%;
}
</style>
</head>
<body>
<h3>CONTACT US</h3><hr>
<form>
<label>
<span>Name</span>
<input type="text" placeholder="Elvis">
</label>
<label>
<span>Email</span>
</label>
<label>
<span>Comment</span>
<textarea placeholder="메세지를 남겨주세요"></textarea>
</label>
<label>
<span><input type="submit" value="submit"></span>
</label>
</form>
</body>
</html>
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4ftext-decoration:none">Colored by Color Scripter
|
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none;color:white">cs |
'HTML&CSS' 카테고리의 다른 글
배치 position 속성 static, relative, absolute, fixed (0) | 2020.06.22 |
---|---|
CSS로 <table>꾸미기 (0) | 2020.03.06 |
CSS를 <li>에 적용해 메뉴 만들기 // To create menu (0) | 2020.03.06 |
CSS 마우스 커서 // cursor (0) | 2020.03.06 |
CSS 텍스트 그림자 만들기 // To create text shadow (0) | 2020.03.06 |