-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path12_CssDemo.html
30 lines (26 loc) · 887 Bytes
/
12_CssDemo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Types of CSS</title>
<!-- Internal CSS -->
<style>
.internal-style {
color: blue;
font-size: 20px;
}
</style>
<!-- Linking External CSS -->
<link rel="stylesheet" href="./12_demo.css">
</head>
<body>
<p>CSS, or Cascading Style Sheets, is used to style HTML elements by controlling their layout, colors, fonts, and overall appearance. CSS can be applied in three primary ways:</p>
<!-- Inline CSS -->
<h1 style="color: red;">This is Inline CSS</h1>
<!-- Internal CSS -->
<p class="internal-style">This is styled using Internal CSS.</p>
<!-- External CSS -->
<div class="external-style">This is styled using External CSS.</div>
</body>
</html>