-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml-text.html
More file actions
39 lines (34 loc) · 1.21 KB
/
Copy pathhtml-text.html
File metadata and controls
39 lines (34 loc) · 1.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Master Classe</title>
<!-- hookingup with external -->
<link rel="stylesheet" href="text-styling.css">
<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=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet">
<style>
/* internal */
p {
color: orange;
}
</style>
</head>
<!-- external style -->
<body>
<!-- the 2nd class declared in css file will be higher heirrarchy -->
<h1 class="my-class alme">Welcome to CSS class</h1>
<h1 class="my-class">Again you're welcome</h1>
<button>Click Me!</button>
<!-- inline -->
<p style="color: red">This is a para for CSS</p>
<h1>Hello there</h1>
<h4 id="id1">This is a sample line</h4>
<p id="id2">This is also a samle line </p>
<p>This is another para for CSS</p>
</body>
</html>