File tree 3 files changed +25
-1
lines changed
3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+
4
+ < head >
5
+ < meta charset ="UTF-8 ">
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
+ < meta http-equiv ="X-UA-Compatible " content ="ie=edge ">
8
+ < title > Js Code Snippets</ title >
9
+ </ head >
10
+
11
+ < body >
12
+
13
+ < h1 id ="head "> Js Code Snippets</ h1 >
14
+ < h1 class ="head2 "> Js Code Snippets</ h1 >
15
+ < h1 name ="head3 "> Js Code Snippets</ h1 >
16
+
17
+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js "> </ script >
18
+ < script src ="index.js "> </ script >
19
+ </ body >
20
+
21
+ </ html >
Original file line number Diff line number Diff line change
1
+ document . getElementById ( 'head' ) . style . color = "red" ;
2
+ document . getElementsByClassName ( 'head2' ) [ 0 ] . style . color = "green" ;
3
+ document . getElementsByTagName ( 'head3' ) [ 0 ] . style . color = "blue" ;
Original file line number Diff line number Diff line change 10
10
11
11
< body >
12
12
13
- < h1 id =" head " > Js Code Snippets</ h1 >
13
+ < h1 > Js Code Snippets</ h1 >
14
14
15
15
< script src ="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js "> </ script >
16
16
< script src ="index.js "> </ script >
You can’t perform that action at this time.
0 commit comments