-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (34 loc) · 1.54 KB
/
Copy pathindex.html
File metadata and controls
35 lines (34 loc) · 1.54 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel="stylesheet" href="">
</head>
<body>
<div class="container">
<h1 class="display-4 mb-4 mt-4">Fetch API</h1>
<div>
<button class="btn btn-primary" id="button1" style="margin-right: 8px">Get Text</button>
<button class="btn btn-success" id="button2" style="margin-right: 8px">Get Users</button>
<button class="btn btn-warning" id="button3" style="margin-right: 8px">Get API Data</button>
</div>
<br>
<div id="output"></div>
<form id="addPost">
<div class="form-group mb-2">
<input type="text" id="title" placeholder="Title" class="form-control">
</div>
<div class="form-group mb-2">
<textarea id="body" placeholder="Body" class="form-control"></textarea>
</div>
<input class="btn btn-danger" type="submit" value="Submit">
</form>
</div>
<script src="app.js"></script>
</body>
</html>