-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbook.html
More file actions
48 lines (40 loc) · 1.54 KB
/
book.html
File metadata and controls
48 lines (40 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
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Book List</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<script defer src="js/main.js"></script>
<style>
.error-msg {
color: red;
}
</style>
</head>
<body>
<h2>Add a Book</h2>
<form>
<label for="isbn">ISBN</label>
<input type="text" id="isbn" value="1234567890123">
<span class="error-msg"></span>
<br>
<label for="title">Title</label>
<input type="text" id="title" value="DOM Manipulation">
<span class="error-msg"></span>
<br>
<label for="price">Price</label>
<input type="number" id="price" step=".01">
<span class="error-msg"></span>
<br>
<label for="release-date">Release Date</label>
<input type="date" id="release-date">
<span class="error-msg"></span>
<br>
<button type="button" id="add-book">Submit Book</button>
</form>
<!-- books added will be nested within -->
<div id="book-display"></div>
</body>
</html>