-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathusingcss.html
More file actions
45 lines (33 loc) · 1.09 KB
/
Copy pathusingcss.html
File metadata and controls
45 lines (33 loc) · 1.09 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>using css</title>
<style>
h2{
color: blueviolet;
border: 2px solid black;
}
.text{
color: brown;
font-size: 20px;
}
#mytags{
color: rgb(206, 65, 192);
background-color: rgba(171, 144, 125, 0.734);
text-decoration: underline;
font-size: 25px;
}
</style>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1 style="color: chartreuse; font-size: 50px;">Inline css is used to style individual tags only</h1>
<h2>Internal css is used to style multiple elements at once</h2>
<h2 class="text">Name selecter is used to select elements by their name</h2>
<p class="text">Class selecter is used to select elements by their class name</p>
<h3 id="mytags">Id selector is used to select elements by their id name</h3>
<button class="btn">submit</button>
</body>
</html>