Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
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 ">
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 > Methods for Adding CSS</ title >
8
+ < link rel ="stylesheet " href ="./styles.css " />
9
+ < style >
10
+ p {
11
+ background-color : green;
12
+ color : white;
13
+ font-size : large;
14
+ font-family : "Times New Roman" , serif;
15
+ text-align : left;
16
+ }
17
+ </ style >
8
18
</ head >
9
19
< body >
10
20
< div > Style me via the external method!</ div >
11
21
< p > I would like to be styled with the internal method, please.</ p >
12
- < button > Inline Method</ button >
22
+ < button style =" background-color:orange; color: black; font-size: x-large; font-family: serif " > Inline Method</ button >
13
23
</ body >
14
- </ html >
24
+ </ html >
Original file line number Diff line number Diff line change
1
+ div {
2
+ background-color : red;
3
+ color : white;
4
+ font-size : xx-large;
5
+ font-family : "Times New Roman" , serif;
6
+ font-weight : bold;
7
+ text-align : center;
8
+ }
0 commit comments