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 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>시멘틱 태그</title>
</head>
<body>
<!-- 시맨틱 태그 : 의미있는 태그 (분석을 쉽게 하기 위해서 각 영역을 구분하는 태그) -->
<!--해당 페이지의 전체 머리글-->
<header>
<h1>여기는 헤더</h1>
<!--메뉴 삽입 가능-->
<ul>
<li><a href="#">메뉴1</a></li>
<li><a href="#">메뉴2</a></li>
<li><a href="#">메뉴3</a></li>
<li><a href="#">메뉴4</a></li>
</ul>
</header>
<!-- 별도로 메뉴 만들기 가능 -->
<!-- <nav>
</nav> -->
<!--본문-->
<section>
<article>
<!--해당 컨텐츠에 대한 제목-->
<h1>프로그래밍 준비하기</h1>
<ul>
<li>java</li>
<li>html</li>
<li>css</li>
<li>python</li>
</ul>
</article>
<article>
<header>
<h1>프로그래밍 준비하기</h1>
</header>
<p>c,c++,c#</p>
</article>
</section>
<footer>
<p>Copyright 2017 fors</p>
</footer>
</body>
</html> |
cs |
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>시멘틱 태그</title>
<style type="text/css">
/*요소 선택자*/
header{
height:280px;
margin-top:0px;
background-image:url('img/bg.png');
background-position:left top;
background-repeat:no-repeat;
}
/* 클래스 선택자 (.) */
/*id 선택자 (#) */
.navi{
background-color:rgba(100,100,100,0.3);
margin-top:-15px;
width:970px;
height:60px;
}
/* 자식 선택자(공백) */
.navi ul{
list-style:none;
height:40px;
padding-top:10px;
padding-bottom:5px;
}
.navi ul li{
display:inline;
float:left;
font-size:30px;
}
.navi ul li a{
padding:0px 5px 5px 35px;
display:block;
width:150px;
color:#FFFFFF;
text-decoration:none;
}
.navi a:hover,a:focus{
text-shadow:0px 5px 5px #ff0000;
color:#ffcc00;
}
</style>
</head>
<body>
<header>
<h1>여기는 헤더</h1>
<!--메뉴 삽입 가능-->
<nav class="navi">
<ul>
<li><a href="#">메뉴1</a></li>
<li><a href="#">메뉴2</a></li>
<li><a href="#">메뉴3</a></li>
<li><a href="#">메뉴4</a></li>
</ul>
</nav>
</header>
</body>
</html><!DOCTYPE html><html>
<head>
<meta charset="UTF-8">
<title>시멘틱 태그</title>
<style type="text/css">
/*요소 선택자*/
header{
height:280px;
margin-top:0px;
background-image:url('img/bg.png');
background-position:left top;
background-repeat:no-repeat;
}
/* 클래스 선택자 (.) */
/*id 선택자 (#) */
.navi{
background-color:rgba(100,100,100,0.3);
margin-top:-15px;
width:970px;
height:60px;
}
/* 자식 선택자(공백) */
.navi ul{
list-style:none;
height:40px;
padding-top:10px;
padding-bottom:5px;
}
.navi ul li{
display:inline;
float:left;
font-size:30px;
}
.navi ul li a{
padding:0px 5px 5px 35px;
display:block;
width:150px;
color:#FFFFFF;
text-decoration:none;
}
.navi a:hover,a:focus{
text-shadow:0px 5px 5px #ff0000;
color:#ffcc00;
}
</style>
</head>
<body>
<header>
<h1>여기는 헤더</h1>
<!--메뉴 삽입 가능-->
<nav class="navi">
<ul>
<li><a href="#">메뉴1</a></li>
<li><a href="#">메뉴2</a></li>
<li><a href="#">메뉴3</a></li>
<li><a href="#">메뉴4</a></li>
</ul>
</nav>
</header>
</body>
</html> |
cs |
댓글