-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4_console.html
44 lines (43 loc) · 1.17 KB
/
4_console.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
<!DOCTYPE html>
<html>
<head>
<title>Practice 4 buttons</title>
<style>
.cart{
padding:5px;
padding-left:8px;
padding-right:8px;
background-color: yellow;
border-style: solid;
border-color: black;
border-width: 2px;
font-size: 18px;
}
.buy{
padding:5px;
background-color: rgba(241, 185, 32, 0.897);
border-style: solid;
border-color: black;
border-width: 2px;
font-size: 18px;
padding-left:8px;
padding-right:8px;
}
</style>
</head>
<body>
<button>click</button>
<button>roshan</button><button>All non-veg</button>
<p>Hello world!</p>
<p>Today I Started Javascript and the session is ongoing<p>
<button title="Add to cart" class="cart">Add to cart</button>
<button class="Buy now">Buy now</button>
<p>Adults Plain Cotton T-shirt</p>
<p>Price: $7.99</p>
<button class="cart" onclick="alert(' Item Added ');">Add to cart</button>
<button class="buy" onclick="alert('Loading...')">Buy now</button>
<script>
console.log('Welcome');
</script>
</body>
</html>