Skip to content

Commit 7bb16dd

Browse files
committed
Penambahan File HTML & JavaScript
0 parents  commit 7bb16dd

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

JavaScript DOM/index.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Dom Selection</title>
6+
<style>
7+
* {
8+
border: 2px solid #dedede;
9+
padding: 15px;
10+
margin: 15px;
11+
}
12+
html {
13+
margin: 0;
14+
padding: 0;
15+
}
16+
body {
17+
max-width: 600px;
18+
margin: 30px auto;
19+
font-family: sans-serif;
20+
color: #333;
21+
}
22+
</style>
23+
</head>
24+
<body>
25+
26+
<h1 id="judul">Hello World</h1>
27+
<div id="container">
28+
<section id="a">
29+
<p class="p1">paragraf 1</p>
30+
<a href="http://instagram.com/rulvyy">Instagram Rafael Pandu</a>
31+
<p class="p2">paragraf 2</p>
32+
<p class="p3">paragraf 3</p>
33+
</section>
34+
<section id="b">
35+
<p>paragraf 4</p>
36+
<ul>
37+
<li>item 1</li>
38+
<li>item 2</li>
39+
<li>item 3</li>
40+
</ul>
41+
</section>
42+
</div>
43+
44+
<script src="script.js"></script>
45+
</body>
46+
</html>

JavaScript DOM/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// DOM SELECTION

0 commit comments

Comments
 (0)