-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfonts_03.html
More file actions
57 lines (51 loc) · 1.79 KB
/
fonts_03.html
File metadata and controls
57 lines (51 loc) · 1.79 KB
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
<!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">
<!-- <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=Oswald&family=Roboto&display=swap" rel="stylesheet"> -->
<title>Fonts</title>
<style>
/* Always check for web safe font RULE 1*/
/* HTML default font size: 16px */
/* 1px = 1.96 inch (Absolute)*/
/* rem: to the font size of the root element(html = 16px) */
/* em: to the font size of the parent element(relative) */
/* vw: 1% of the viewport width(Relative) */
/* vh: to 1% of the viewport height (Relative) */
/* %: to parent element(Relative) */
/* Font Style */
@import url('https://fonts.googleapis.com/css2?family=Oswald&family=Roboto&display=swap');
body {
/* font-family: 'Oswald', sans-serif; */
font-family: 'Roboto', sans-serif;
font-size: 18px;
line-height: 1.6rem;
}
#main p {
background-color: aquamarine;
}
#main p span {
background-color: beige;
color: blue;
font-size: 20px;
border: 2px red solid;
font-weight: bold;
}
</style>
</head>
<body>
<div id="main">
<h1>Welcome to Air Asia</h1>
<p>Lorem ipsum, dolor sit <span> amet
consectetur adipisicing elit. </span> Quisquam, molestiae.</p>
</div>
<div id="software">
<h2>Software</h2>
<p>Lorem ipsum dolor sit amet.</p>
</div>
</body>
</html>