-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDOMINJS.html
More file actions
50 lines (50 loc) · 1.4 KB
/
DOMINJS.html
File metadata and controls
50 lines (50 loc) · 1.4 KB
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
<!DOCTYPE html>
<html lang="en">
<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>DOM in Javascript</title>
<style>
body{
background-color: blueviolet;
color: white;
justify-content: center;
align-items: center;
align-content: center;
text-align: center;
}
/* p{
padding: 50px 0px;
} */
button{
text-align: center;
padding: 30px;
box-shadow: 5px 5px 5px black;
cursor: pointer;
background-color: burlywood;
}
</style>
</head>
<body>
<h1>DOM in Javascript</h1>
<!-- <div class="main-div">
<div class="child1"><p>chlid 1</p></div>
<div class="child2"><p>child 2</p> </div>
<div class="child3"><p>chlid 3</p></div>
</div> -->
<div class="para">I am Usman</div>
<div class="para">Whoes is Usman</div>
<div class="para">WhatEver</div>
<form action="">
<label for="">male</label>
<input type="radio" name="gender" id="">
<label for="">Female</label>
<input type="radio" name="gender" id="">
<label for="">Nothing</label>
<input type="radio" name="gender" id="">
</form>
<button onclick="change()">Click me</button>
<script src="./script/DOM.js"></script>
</body>
</html>