-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSelectors.html
More file actions
32 lines (31 loc) · 835 Bytes
/
Copy pathSelectors.html
File metadata and controls
32 lines (31 loc) · 835 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Selectors</title>
<style>
h1.heading {
color: blue;
background-color: #dddddd;
text-align: center;
}
p.heading {
color: black;
background-color: #dddddd;
font-style: italic;
text-align: left;
float: left;
width: 50%;
}
</style>
</head>
<body>
<h1 class="heading">Heading One</h1>
<p class="heading">
THis is a paragraph of brown color it will be displayed on the left side
of the screen and it will not be effected by the class that is used by the
heading one. That it that's the whole paragraph and its about css
</p>
</body>
</html>