-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfont-size.html
More file actions
41 lines (35 loc) · 705 Bytes
/
font-size.html
File metadata and controls
41 lines (35 loc) · 705 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Font-Size</title>
<style>
#pixel {
font-size: 20px;
}
#point {
font-size: 20pt;
}
#em {
font-size: 1em;
}
#rem {
font-size: 1rem;
}
footer {
font-size: 12pt;
}
html {
font-size: xx-large;
}
</style>
</head>
<body>
<p id="pixel">1 Pixel is 1/96 of an Inch</p>
<p id="point">1 Point is 1/72 of an Inch</p>
<footer>
<p id="em">1em is 100% the size of the parent element</p>
<p id="rem">1rem is 100% the size of the root element</p>
</footer>
</body>
</html>