-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintro-css-lec.html
More file actions
36 lines (30 loc) · 977 Bytes
/
intro-css-lec.html
File metadata and controls
36 lines (30 loc) · 977 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
31
32
33
34
35
36
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>CSS Intro</title>
<style>
h2 {
color:aquamarine;
}
.paragraph {
color: brown;
}
</style>
<link rel="stylesheet" href="css/css-intro-lec.css">
</head>
<body>
<!--inline/element style attribute-->
<h1 style="color: red; text-decoration: underline; background-color: blue"> Intro to CSS</h1>
<!--whole length is the style, after the tags it is the element-->
<!--internal style-->
<h2>I've got style!</h2>
<p style="color:darkslategrey" class="paragraph">This is a paragraph!</p>
<p> Learning Internal CSS</p>
<p id="unique">This is the <strong>Intro</strong> to CSS</p>
<!--external style sheets are preferred-->
</body>
</html>