-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (52 loc) · 1.49 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS Properties</title>
<style>
body {
background-color: cornflowerblue;
color: white;
font-size: 18px;
}
/* Don't change the CSS above, add Your CSS below */
.color{
color: coral;
}
.fontSize{
font-size: 2rem;
}
.fontWeight{
font-weight: 900;
}
.fontFamily{
font-family: "Caveat", cursive;
}
.textAlign{
text-align: right;
}
html{
font-size:30px;
}
</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Caveat:[email protected]&display=swap" rel="stylesheet">
</head>
<body>
<h1>Important CSS Properties</h1>
<p class="color">Color</p>
<p class="fontSize">Font Size</p>
<p class="fontWeight">Font Weight</p>
<p class="fontFamily">Font Family</p>
<p class="textAlign">Text Align</p>
<!-- TODOs
1. Change the color of <p>Color</p> to "coral" color.
2. Change the font size of <p>Font Size</p> to 2X the size of the root font size.
3. Change the font weight of <p>Font Weight</p> to 900.
4. Change the font family of <p>Font Family</p> to the Google font Caveat with regular (400) font weight.
Link: https://fonts.google.com/specimen/Caveat
5. Change the <p>Text Align</p> to right align.
6. Change the the root (html element) font size to 30px -->
</body>
</html>