Skip to content

Commit 1d10c7d

Browse files
committed
Refactor HTML structure and improve form input types
1 parent 160524c commit 1d10c7d

1 file changed

Lines changed: 15 additions & 22 deletions

File tree

‎debugging/book-library/index.html‎

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
4-
<title> </title>
4+
<title>Book Library</title>
55
<meta
6-
charset="utf-8"
6+
charset="utf-8">
7+
<meta
78
name="viewport"
89
content="width=device-width, initial-scale=1.0"
9-
/>
10+
>
1011
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
1112
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
1213
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
1314
<link
1415
rel="stylesheet"
1516
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
16-
/>
17-
<link rel="stylesheet" type="text/css" href="style.css" />
17+
>
18+
<link rel="stylesheet" type="text/css" href="style.css" >
1819
</head>
1920

2021
<body>
@@ -31,42 +32,42 @@ <h1>Library</h1>
3132
<div class="form-group">
3233
<label for="title">Title:</label>
3334
<input
34-
type="title"
35+
type="text"
3536
class="form-control"
3637
id="title"
3738
name="title"
3839
required
39-
/>
40+
>
4041
<label for="author">Author: </label>
4142
<input
42-
type="author"
43+
type="text"
4344
class="form-control"
4445
id="author"
4546
name="author"
4647
required
47-
/>
48+
>
4849
<label for="pages">Pages:</label>
4950
<input
5051
type="number"
5152
class="form-control"
5253
id="pages"
5354
name="pages"
5455
required
55-
/>
56+
>
5657
<label class="form-check-label">
5758
<input
5859
type="checkbox"
5960
class="form-check-input"
6061
id="check"
6162
value=""
62-
/>Read
63+
>Read
6364
</label>
6465
<input
6566
type="submit"
6667
value="Submit"
6768
class="btn btn-primary"
6869
onclick="submit();"
69-
/>
70+
>
7071
</div>
7172
</div>
7273

@@ -80,15 +81,7 @@ <h1>Library</h1>
8081
<th></th>
8182
</tr>
8283
</thead>
83-
<tbody>
84-
<tr>
85-
<td></td>
86-
<td></td>
87-
<td></td>
88-
<td></td>
89-
<td></td>
90-
</tr>
91-
</tbody>
84+
<tbody></tbody>
9285
</table>
9386

9487
<script src="script.js"></script>

0 commit comments

Comments
 (0)