-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (44 loc) · 1.17 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
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Title</title>
<link href="styles.css" rel="stylesheet" />
<script defer src="script.js"></script>
</head>
<body>
<header>
<p class="header-hero">library.</p>
</header>
<main>
<button id="add-button">Add Book</button>
<div class="book-display">
<ul class="book-list"></ul>
</div>
<dialog id="add-book-dialog">
<form>
<h3>Add new book</h3>
<label>
Title:
<input id="title-input" name="title" type="text" />
</label>
<label>
Author:
<input id="author-input" name="author" type="text" />
</label>
<label
>Pages:<input id="pages-input" name="pages" type="number"
/></label>
<label
>Have you read this book:<input
id="read-checkbox"
name="read"
type="checkbox"
/></label>
<button id="submit-dialog" type="submit">Add book</button>
<button type="reset">Clear</button>
</form>
</dialog>
</main>
</body>
</html>