-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIntro_to_CSS.html
More file actions
52 lines (43 loc) · 1.04 KB
/
Intro_to_CSS.html
File metadata and controls
52 lines (43 loc) · 1.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Intro to Css</title>
<style>
h2 {
color: red;
text-decoration: underline;
background-color: yellow;
}
</style>
<link rel="stylesheet" href="css/external_css_lecture.css">
</head>
<body>
<!-- Element Style Attribute added in the body of your html and inside your element tags-->
<h1 style="color:blue;text-decoration:underline;">Hello, CSS!</h1>
<!--Inline/Embedded Stylesheet
The style is added on the head section
this is the syntax:
<style>
h2 {
color: red;
text-decoration: underline;
background-color: yellow;
}
</style>
-->
<h2> Regulus Cohort</h2>
<!-- External Stylesheet-->
<!-- added link on the head to be linked to the css folder
We can add many stylesheets on one html-->
<!-- this is the syntax : <link rel="stylesheet" href="styles/external_css_lecture.css"> -->
<!--Comments-->
<!--syntax of a comment:
/*
multi
line
comment
*/
-->
</body>
</html>