-
Notifications
You must be signed in to change notification settings - Fork 0
/
internal.html
100 lines (86 loc) · 2.13 KB
/
internal.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Belajar Inline CSS</title>
<style>
/* Membuat Style "Elemen Selector" */
header{
background-color: yellow;
}
header,nav, section, footer{
padding: 30px;
border-style: solid;
}
/* Membuat style menggunakan "id selector" */
#navigation{
background-color: aqua;
}
#navigation ul{
border-style: dotted;
border-width: 5px;
padding: 0;
height: 60px;
}
#navigation ul li{
list-style: none;
padding: 20px;
float: left;
}
/* Membuat style menggunakan "class selector" */
.mainFooter{
background-color: black;
color: white;
}
.text-yellow{
color: yellow;
}
.text-blue{
color:blue
}
.text-red{
color: red;
}
</style>
</head>
<body>
<!-- header start -->
<header id="header">
<h1>SaCode</h1>
<p>Belajar Dasar Coding HTML & CSS</p>
</header>
<!-- header end -->
<!-- nav start -->
<nav id="navigation">
<ul>
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="inline.html">Inline</a>
</li>
<li>
<a href="internal.html">Internar</a>
</li>
<li>
<a href="external.html">External</a>
</li>
</ul>
</nav>
<!-- nav end -->
<!-- section start -->
<section class="text-red">
<h1>Internal CSS</h1>
<p>Belajar menerapkan CSS dengan cara internal</p>
</section>
<!-- section end -->
<!-- footer start -->
<footer class="mainFooter">
<p>
Copyright © 2023 - Design by <b class="text-yellow">Adriano Affar</b>
</p>
</footer>
<!-- footer end -->
</body>
</html>