File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44< head >
55 < meta charset ="utf-8 " />
66 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7+ <!--The import is actually performed in css/my_style.css. This is CSS's composition mechanism-->
78 < link rel ="stylesheet " type ="text/css " href ="css/my_style.css ">
89 < title > Imported CSS</ title >
910</ head >
Original file line number Diff line number Diff line change 55 < meta charset ="utf-8 " />
66 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
77 < link rel ="stylesheet " type ="text/css " href ="css/my_style.css ">
8- < title > Imported CSS</ title >
8+ < title > Inline CSS</ title >
99</ head >
1010
1111< body >
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+ < title > CSS Box Model</ title >
8+ < style >
9+ h1 {
10+ width : 200 ;
11+ height : 100 ;
12+ padding : 50px ;
13+ border : 15px solid green;
14+ margin : 20px ;
15+ }
16+
17+ div {
18+ width : 200 ;
19+ height : 100 ;
20+ padding : 50px ;
21+ border : 15px solid green;
22+ margin : 20px ;
23+ }
24+ </ style >
25+ </ head >
26+
27+ < body >
28+ < h1 > Hello I am a H1 with the CSS box model properties explicitly set </ h1 >
29+ < div > Hello I am a Div with the CSS box model properties explicitly set </ div >
30+ </ body >
31+
32+ </ html >
You can’t perform that action at this time.
0 commit comments