-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss tutotrial.htm
More file actions
67 lines (59 loc) · 1.73 KB
/
css tutotrial.htm
File metadata and controls
67 lines (59 loc) · 1.73 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Css Tutorial</title>
<link rel="stylesheet" href="Tutorial.css">
<!-- alt + down arrow to move whole line down -->
<style>
/* THIS IS CSS COMMENT */
/* id selectors */
#redElement{
color: red ;
}
/* class selectors */
.div{
color: aqua;
border: 5px solid red;
}
.yo{
color: blueviolet ;
background-color: brown;
}
/* grouping selectors */
footer, span{
color: chartreuse;
background-color:chocolate;
}
p{
font-style: bold;
color: pink;
background-color:sienna;
}
.bgPrimary{
color: steelblue;
}
</style>
</head>
<body>
<h3>CSS tutorial</h3>
<!-- <p style ="color:red; background-color: seagreen;">This tutorial will teach you will teach you every thing about HTML/CSS </p> -->
<p class ="div" >This tutorial will teach you will teach you every thing about HTML/CSS </p>
<p class ="yo" id="redElement" >This tutorial will teach you will teach you every thing about HTML/CSS </p>
<p id="redElement">This tutorial will teach you will teach you every thing about HTML/CSS </p>
<div>
<p class ="div">This tutorial will teach you will teach you every thing about HTML/CSS </p>
<span>THis is span</span>
</div>
<h1>
CSS selectors
</h1>
<p>simple Paragraph to understand css selectors</p>
<footer>This is a footer.</footer>
<h1>
Developer tools
</h1>
<p class="bgPrimary">This a tutorial for developer tools.</p>
</body>
</html>