-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (51 loc) · 2.06 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
45
46
47
48
49
50
51
52
53
54
<!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>Library</title>
<script src="./index.js" defer></script>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<header>
<h1 class="title">My Book Collection</h1>
</header>
<main>
<div class="addBook">
<form id="bookForm" name="bookForm" class="myBooks">
<div class="input-div title-div">
<input type="text" id="title" name="title" minlength="2" maxlength="100" placeholder="title"><br>
</div>
<p class="error">Title must be at least 2 characters</p>
<div class="input-div author-div">
<input type="text" id="author" name="author" minlength="2" maxlength="100" placeholder="author"><br>
</div>
<p class="error">Author must be at least 2 characters</p>
<div class="input-div pages-div">
<input type="number" id="pages" min="10" max="999" name="pages" placeholder="pages"><br>
</div>
<p class="error">Pages must be between 10-9999</p>
<p>Have you read it?</p>
<input type="radio" id="yes" name="finished" value="yes">
<label for="yes">Yes</label>
<input type="radio" id="no" name="finished" value="no">
<label for="no">No</label>
<br>
<input type="submit" value="Submit">
</form>
</div>
<div class="showBooks">
<table id="myTable">
<tr id="tableHeader">
<th>Title</th>
<th>Author</th>
<th>Pages</th>
<th>Finished</th>
</tr>
</table>
</div>
</main>
</body>
</html>