-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasic_HTML_4.html
More file actions
30 lines (30 loc) · 1.1 KB
/
Copy pathBasic_HTML_4.html
File metadata and controls
30 lines (30 loc) · 1.1 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
<!--Basic_HTML_4.html-->
<!DOCTYPE html>
<html>
<body>
<style>
.font_1 {
background-color: black;
color: yellow;
font-size: large;
}
.font_2 {
background-color: darkblue;
color: #ffffff;
font-size: medium;
}
.David_Style {
background-color: chartreuse;
color: deeppink;
text-decoration: dashed;
font-weight: lighter;
font-size: medium;
}
</style>
<h2 class="font_1">This h2 element is styled per class attribute font_1</h2>
<h3 class="font_2">This h3 element is styled per class attribute font_2</h3>
<h4 class="font_1">Even though this is an h4 styled, it is styled the same as the h2 element because we pointed to the class attribute font_1</h4>
<h5 class="David_Style">This h5 element is styled per class attribute David_Style</h5>
<p class="David_Style">This paragraph is written in my style!</p>
</body>
</html>