Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b8548aa

Browse files
committedApr 3, 2025
Complete CSS Foundations exercise 1
Added CSS type selectors using three methods: - external method - internal method - inline method
1 parent fe95b46 commit b8548aa

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed
 
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<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" />
77
<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>
818
</head>
919
<body>
1020
<div>Style me via the external method!</div>
1121
<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>
1323
</body>
14-
</html>
24+
</html>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

Comments
 (0)
Failed to load comments.