-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfont properties.html
63 lines (47 loc) · 1.21 KB
/
font properties.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
59
60
61
62
63
### FONT PROPERTIES IN CSS ###
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS Properties</title>
<style>
/* 6. Change the the root (html element) font size to 30px --> */
html {
font-size: 30px;
}
body {
background-color: cornflowerblue;
color: white;
font-size: 18px;
}
/* 1. Change the color of <p>Color</p> to "coral" color. */
#color {
color: coral;
}
/* 2. Change the font size of <p>Font Size</p> to to 2X the size of the root (html) element. */
#size {
font-size: 2rem;
}
#weight {
font-weight: 900;
}
#family {
font-family: 'Caveat', cursive;
}
#align {
text-align: right;
}
</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&display=swap" rel="stylesheet">
</head>
<body>
<h1>Important CSS Properties</h1>
<p id="color">Color</p>
<p id="size">Font Size</p>
<p id="weight">Font Weight</p>
<p id="family">Font Family</p>
<p id="align">Text Align</p>
</body>
</html>