-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo10.html
81 lines (74 loc) · 2.08 KB
/
demo10.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
<html>
<head>
<title>
Update and Delete HTML Elements
</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
</head>
<style>
section{
text-align: center;
}
ul{
list-style: none;
font-size: 24px;
border: none;
}
body{
background-color: aquamarine;
}
button{
border: none;
font-size: 16px;
padding:20px;
background-color: #4CAF50;
}
li{
background-color: beige;
margin-top: 10px;
padding:10px;
margin-right: 20%;
margin-left:20%;
border: none;
}
#b{
padding:10px;
}
td,th{
padding:20px;
}
input{
padding:20px;
border: none;
}
#todo-list{
background-color: aliceblue;
}
</style>
<body>
<header>
<section>
<div id="count">
Items:<h>0</h>
</div>
<input type="text" id="b" placeholder="Enter items here" onkeypress="return event.charCode != 32"><br>
<table align="center">
<th>
<td>
<input type="submit" id="add-item" value="Add ListItem" >
</td>
<td>
<input type="submit" id="up-item" value="Update FirstItem" >
</td>
<td>
<input type="submit" id="del-item" value="Delete FirstItem" >
</td>
</th>
</table>
<div id="todo-list">
</div>
</section>
</header>
</body>
<script type="text/javascript" src="demo10.js"></script>
</html>