-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (30 loc) · 1.24 KB
/
index.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
<!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>Document</title>
</head>
<body>
<div id="menu">
<button id="show-products"></button>
<!--Create Show Products button here, give id as "show_products". avoid making spelling mistakes in HTML id's-->
</div>
<div>
<h2>Add Products</h2>
<!--Create a form here to accept product data from user, give form HTML id as "product_form"-->
<form id="product_form" onsubmit="submit()">
<input type="text" id="product_brand" />
<input type="text" id="product_name" />
<input type="text" id="product_price" />
<input type="text" id="product_image" />
<input type="submit" />
</form>
<!--Create four inputs to accept brand, name, price, image and brand-->
<!--give the inputs following respective id's, "product_brand", "product_name", "product_price","product_image"-->
<!--create a submit option to submit form, give it html id as "submit"-->
</div>
</body>
</html>
<script src="./scripts/index.js"></script>