1
1
<!DOCTYPE html>
2
2
<html lang =" en" >
3
- <head >
4
- <meta charset =" UTF-8" >
5
- <meta http-equiv =" X-UA-Compatible" content =" IE=edge" >
6
- <meta name =" viewport" content =" width=device-width, initial-scale=1.0" >
3
+ <head >
4
+ <meta charset =" UTF-8" / >
5
+ <meta http-equiv =" X-UA-Compatible" content =" IE=edge" / >
6
+ <meta name =" viewport" content =" width=device-width, initial-scale=1.0" / >
7
7
<title >Document</title >
8
- <link href =" css/styles.css" rel = " stylesheet " >
9
- </head >
10
- <body >
8
+ <link rel = " stylesheet " href =" css/styles.css" / >
9
+ </head >
10
+ <body >
11
11
<!-- Try not to use those scriplet tags, keep the logic in server -->
12
12
<!-- <% if (kindOfDay === "Saturday" || kindOfDay === "Saturday") { %>
13
13
<h1 style="color: purple;"><%= kindOfDay %> ToDo List</h1>
14
14
<% } else { %>
15
15
<h1><%= kindOfDay %> ToDo List</h1>
16
16
<% } %> -->
17
17
18
- <h1 ><%= kindOfDay %> </h1 >
18
+ <div class =" box" id =" heading" >
19
+ <h1 ><%= kindOfDay %> </h1 >
20
+ </div >
19
21
20
- <ul >
21
- <% for (var i = 0 ; i < newListItems .length ; i++ ) { % >
22
- < li> < %= newListItems[i] % > < / li>
23
- < % } %>
24
-
25
- </ul >
26
- <form action =" /" method =" post" >
27
- <input type =" text" name =" todoInput" id =" todoInput" >
28
- <button type =" submit" >Go</button >
29
- </form >
30
- </body >
31
- </html >
22
+ <div class =" box" >
23
+ <% for (var i = 0 ; i < newListItems .length ; i++ ) { % >
24
+ < div class = " item" >
25
+ < input type= " checkbox" / >
26
+ < p>< %= newListItems[i] % >< / p>
27
+ < / div>
28
+ < % } %>
29
+
30
+ <form class =" item" action =" /" method =" post" >
31
+ <input
32
+ type =" text"
33
+ name =" todoInput"
34
+ id =" todoInput"
35
+ placeholder =" New Task"
36
+ autocomplete =" off"
37
+ />
38
+ <button type =" submit" >+</button >
39
+ </form >
40
+ </div >
41
+ </body >
42
+ </html >
0 commit comments