Skip to content

Commit 6980aeb

Browse files
use validator to tidy up index.html
1 parent 5699d2c commit 6980aeb

File tree

1 file changed

+12
-46
lines changed

1 file changed

+12
-46
lines changed

debugging/book-library/index.html

Lines changed: 12 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
4-
<title> </title>
5-
<meta
6-
charset="utf-8"
7-
name="viewport"
8-
content="width=device-width, initial-scale=1.0"
9-
/>
4+
<title>The Book Report</title>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
107
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
118
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
129
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
13-
<link
14-
rel="stylesheet"
15-
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
16-
/>
17-
<link rel="stylesheet" type="text/css" href="style.css" />
10+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
11+
<link rel="stylesheet" type="text/css" href="style.css">
1812
</head>
1913

2014
<body>
@@ -30,43 +24,15 @@ <h1>Library</h1>
3024
<div id="demo" class="collapse">
3125
<div class="form-group">
3226
<label for="title">Title:</label>
33-
<input
34-
type="text"
35-
class="form-control"
36-
id="title"
37-
name="title"
38-
required
39-
/>
27+
<input type="text" class="form-control" id="title" name="title" required>
4028
<label for="author">Author: </label>
41-
<input
42-
type="text"
43-
class="form-control"
44-
id="author"
45-
name="author"
46-
required
47-
/>
29+
<input type="text" class="form-control" id="author" name="author" required>
4830
<label for="pages">Pages:</label>
49-
<input
50-
type="number"
51-
class="form-control"
52-
id="pages"
53-
name="pages"
54-
required
55-
/>
31+
<input type="number" class="form-control" id="pages" name="pages" required>
5632
<label class="form-check-label">
57-
<input
58-
type="checkbox"
59-
class="form-check-input"
60-
id="check"
61-
value=""
62-
/>Read
33+
<input type="checkbox" class="form-check-input" id="check" value="">Read
6334
</label>
64-
<input
65-
type="submit"
66-
value="Submit"
67-
class="btn btn-primary"
68-
onclick="submit();"
69-
/>
35+
<input type="submit" value="Submit" class="btn btn-primary" onclick="submit();">
7036
</div>
7137
</div>
7238

@@ -93,4 +59,4 @@ <h1>Library</h1>
9359

9460
<script src="script.js"></script>
9561
</body>
96-
</html>
62+
</html>

0 commit comments

Comments
 (0)