-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo9.html
51 lines (50 loc) · 1.27 KB
/
demo9.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
<html>
<head>
<title>
Add HTML elements
</title>
</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:10px;
background-color: #4CAF50;
}
li{
background-color: beige;
margin-top: 10px;
padding:10px;
margin-right: 20%;
margin-left:20%
}
#b{
padding:10px;
}
</style>
<body>
<header>
<section>
<input type="text" id="b" placeholder="Enter items here" onkeypress="return event.charCode != 32">
<input type="submit" id="add-item" value="add item" >
<ul id="todo-list">
<li>ListItem1</li>
<li>ListItem2</li>
<li>ListItem3</li>
</ul>
</section>
</header>
</body>
<script type="text/javascript" src="demo9.js"></script>
</html>