1<!-- Background images are better implemented in CSS -->
2<!-- but here is how you could do it in HTML in a pinch -->
3
4<head>
5 <style>
6 .background {
7 background-image: url(https://cleananddelicious.com/wp-content/uploads/2016/03/Avocad0-CD.jpg);
8 }
9 </style>
10</head>
11
12<body>
13 <div class=background>
14 <h1>The background of this div will be an avocado</h1>
15 </div>
16</body>
1<body style="background-color: anything you want">
2 [insert 10000 lines of code here]
3
4</body>
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