File tree Expand file tree Collapse file tree 5 files changed +72
-0
lines changed Expand file tree Collapse file tree 5 files changed +72
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
+ < meta http-equiv ="X-UA-Compatible " content ="ie=edge ">
7
+ < title > Document</ title >
8
+ </ head >
9
+ < body >
10
+ < h1 > My Page</ h1 >
11
+ < h2 > A List</ h2 >
12
+ < ul >
13
+ < li > one</ li >
14
+ < li >
15
+ two
16
+ < ul >
17
+ < li > two point one</ li >
18
+ < li > two point two</ li >
19
+ </ ul >
20
+ </ li >
21
+ < li > three</ li >
22
+ </ ul >
23
+ </ body >
24
+ </ html >
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
+ < meta http-equiv ="X-UA-Compatible " content ="ie=edge ">
7
+ < title > Document</ title >
8
+ < script defer src ="script.js "> </ script >
9
+ </ head >
10
+ < body >
11
+
12
+ < input id ="n ">
13
+ < button id ="print "> Print</ button >
14
+
15
+ < ul id ="list ">
16
+ < li > 0</ li >
17
+ </ ul >
18
+ </ body >
19
+ </ html >
Original file line number Diff line number Diff line change
1
+ let list = document . getElementById ( 'list' )
2
+ let n = document . getElementById ( 'n' )
3
+ let print = document . getElementById ( 'print' )
4
+
5
+ print . onclick = function ( ) {
6
+
7
+ }
8
+
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
+ < meta http-equiv ="X-UA-Compatible " content ="ie=edge ">
7
+ < title > Document</ title >
8
+ < script src ="script.js "> </ script >
9
+ </ head >
10
+ < body >
11
+
12
+ < input id ="task ">
13
+ < button id ="add "> ADD</ buttton >
14
+
15
+ < ul id ="tasklist ">
16
+
17
+ </ ul >
18
+
19
+
20
+ </ body >
21
+ </ html >
You can’t perform that action at this time.
0 commit comments