-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml-external.html
More file actions
30 lines (28 loc) · 873 Bytes
/
Copy pathhtml-external.html
File metadata and controls
30 lines (28 loc) · 873 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
<!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="cssForExternal.css">
<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>
<!-- 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>