1<!DOCTYPE HTML>
2<html lang=us>
3 <meta charset=UTF-8>
4 //the following code within the style tags is CSS.
5<style>
6 /*this is a body tag. After specifying
7 that we want to affect the whole body,
8 we add {}, and write the background color
9 we want to change it to. */
10 body{background:rgb(255,0,0);
11 }
12 /* this is a class, which we have named green. we add {}, then
13 write the background color we want.*/
14 .green{background:green}
15 /* this is an id, which we have named blue. we add {}, then
16 write the background color we want.*/
17 #blue{background:blue}
18</style>
19
20<body>
21This background is red.
22 // you must make sure to note that when you add a background to
23 a paragraph, you must add a class or id, name it, then style it
24 as seen above. with tags HTML already recognizes, however, you
25 don't have to do anything more than shown above.
26 <p class="green">
27 This background is green.</p>
28 <p id="blue">This background is blue.</p>
29
30</body>
31
32</style>
33</html>
34
35
1<!-- Background image -->
2<div class="bg-image" style="
3 background-image: url('https://mdbootstrap.com/img/new/standard/city/041.jpg');
4 height: 100vh;
5 "></div>
6<!-- Background image -->