-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path06-fonts.html
113 lines (99 loc) · 3.76 KB
/
06-fonts.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CSS Property 6 - Fonts</title>
<style>
body{
background-color: antiquewhite;
}
h1 {
color: brown;
}
h2 , h3 {
color: green;
}
.font-size p {
color: blueviolet;
}
.font-style p {
color: orangered;
font-size: 18px;
}
.font-variant p {
color: tomato;
font-size: 18px;
}
.font-weight p {
color: teal;
font-size: 18px;
}
.font-family p {
font-size: 18px;
color: chocolate;
}
</style>
</head>
<body>
<h1>Fonts</h1>
<h2>Font Color</h2>
<p style="color: red">This is a paragraph font color is RED .</p>
<hr />
<div class="font-size">
<h2>Font Size</h2>
<p style="font-size: small">Small Font Size</p>
<p style="font-size: smaller">Smaller Font Size</p>
<p style="font-size: medium">Medium Font Size</p>
<p style="font-size: large">Large Font Size</p>
<p style="font-size: larger">Larger Font Size</p>
<p style="font-size: x-large">X-Large Font Size</p>
<p style="font-size: xx-large">XX-Large Font Size</p>
<p style="font-size: 20px">This is a paragraph font size is 20px .</p>
<p style="font-size: 2em">This is a paragraph font size is 2em .</p>
<p style="font-size: 2rem">This is a paragraph font size is 2rem .</p
</div>
<hr />
<div class="font-style">
<h2>Font Style</h2>
<p style="font-style: italic;">Font Style : Italic</p>
<p style="font-style: normal;">Font Style : Normal</p>
<p style="font-style: oblique;">Font Style : Oblique</p>
</div>
<hr>
<div class="font-variant">
<h2>Font Variant</h2>
<p style="font-variant: small-caps;">Font Variant : Small Caps</p>
<p style="font-variant: normal;">Font Variant : Normal</p>
</div>
<hr>
<div class="font-weight">
<h2>Font Weight</h2>
<p style="font-weight: lighter;">Font Weight : Lighter</p>
<p style="font-weight: bold;">Font Weight : Bold</p>
<p style="font-weight: bolder;">Font Weight : Bolder</p>
<h3>Font Weight from 100 to 900 : </h3>
<p style="font-weight: 100;">Font Weight : 100</p>
<p style="font-weight: 200;">Font Weight : 200</p>
<p style="font-weight: 300;">Font Weight : 300</p>
<p style="font-weight: 400;">Font Weight : 400</p>
<p style="font-weight: 500;">Font Weight : 500</p>
<p style="font-weight: 600;">Font Weight : 600</p>
<p style="font-weight: 700;">Font Weight : 700</p>
<p style="font-weight: 800;">Font Weight : 800</p>
<p style="font-weight: 900;">Font Weight : 900</p>
</div>
<hr>
<div class="font-family">
<h2>Font Family</h2>
<p style="font-family: 'Times New Roman', Times, serif;">Font Family : Times New Roman</p>
<p style="font-family: Arial, Helvetica, sans-serif;">Font Family : Arial</p>
<p style="font-family: 'Courier New', Courier, monospace;">Font Family : Courier New</p>
<p style="font-family: 'Brush Script MT', cursive;">Font Family : Brush Script MT</p>
<p style="font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;">Font Family : Lucida Sans</p>
<p style="font-family: 'Lucida Console', 'Courier New', monospace;">Font Family : Lucida Console</p>
<p style="font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;">Font Family : Segoe UI</p>
</div>
</body>
</html>