how to put background in html

Solutions on MaxInterview for how to put background in html by the best coders in the world

showing results for - "how to put background in html"
Erica
07 Jan 2021
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
Iban
03 Apr 2019
1.background{
2background-image:url(back.jpg);
3background-size: cover;
4background-attachment: scroll;
5}
queries leading to this page
add background in htmlhow to make background in htmlhow to set a background with htmlhow to make an image your background in htmlhtml add background photohow to change background image in htmlhow to background image in htmlhow do i add a background to htmlimg as background htmladd a background htmlsimple background htmlhow to get an image as a background in htmlset background image htmladd background image html backgroundhow to make abckground in htmlhow to put image in background of htmlbackground of page htmlhow to set downloaded image as a background in html add background image in hthtml add a background picbackground image htmlhtml background imageapplying background image in htmlhow to use background image in htmlhow to make a picture background htmladding background htmlhow to put a background photo in htmlinserting a image in html backgoundhow to make your background an image in htmlhow to add cool backrounds to htmgiving background image in htmlhow to get a bagground in htmlhow to background htmlhtml how to add backgroundhtml set page backgroundcss backgroud imggoogle html background how to set the background image in html on bodyhow to insert background in htmlhow to add an image in background in htmlhow to add a background with htmladd a photo background in htmlhtml tag to set background imageset an image as background in htmlhow to set image as background in html using csshow to give background image in htmlhow to set a background image in htmlhow to add image from online as background in htmluse html as a backgroundset page background htmlhow to set an image as background in htmladding background in htmladding a background image in htmlset a background in a body htmlhow to add a background image in htmlhow to put a background in htmlset a background to an image htmlgiving background for a page in htmlcode to add a background image in htmlhow to apply a background in htmlbackground image in website tagbackground for htmlhow put backgraund in htmlhow to add parageraph space in csshow to create backgrounf in htmlhow to use background image in html and cssbackground image in htmln bodyhow to add body background image in htmlwhich is the correct way to apply a background image in htmladding image to body in htmlhow to add background in wordhow to put a background image in htmlhow to add backgroud in htmlhow to set a bg image in htmlhow to make a background in htmladd backgrounf in htmladd background picture in htmlhow to set the background in html websitehow to add an image as a background in htmlbackground image program in htmladd background image htmlhow to add an image as background in htmlimage as background htmlhow to make img html tag as backgroundhtml show image as body backgroundbackgrounds images using htmlbackground elementhow to add an image as back ground htmlhow to change the background of an image in htmlhow to creat a back ground in htmlhow to make image backgroundhow to add add background image in htmlset backgrounf image in htmlinsert background image in htmlset html backgroundcreate page background htmlhow to link background image on body in htmlhow to use image in background in htmladd background image in htmlhow to put wallapepr as pic in htmlpage background htmlbackground for html bodyhow to put the whole picture on the background of htmlhow to add a website background in htmlcss html image backgroundadd a backround as an image file html taghow to put bg image in htmlhtml background imagesuse background in htmladd background in html pageadd a background to html 5how to put a background image in html exampleput image as background htmlimplement background picture in htmlwhat is the html tag for background imageset image as background htmlhow to set the background image in htmlmake an image the background htmlpage background for htmlhtml code for backgroundchange background image htmlmake a background htmlset image as a background in htmlhow to add background image htmlplace a background image htmlhwo to apply background to webpage in htmlbackground tag htmlset background image in htmlputting a background on htmlwebsite background in htmlmaking an image background htmlhow to add background to a html pageput background image in htmlhow to add image in background in htmlsetting background image in htmlhow to add a background on your website w3schoolshow to set a website background image in htmlhtml style background imagehow to make a background htmlhtml add background imagehow to add background image in html from fileimages as background htmlhow to insert backlground images into html with csshow to set background in htmlhow to make a background for your website htmlhow to make a picture as a background in htmlset background of html pagehtml set background imagehow to insert background pictures in htmlhow to use image as background in htmlhow to make a backround image in htmlhow to add a background htmlhow to use background for website in htmlhow to make a background image in htmlbackground imagehtml how to set background imagebackground to page htmlhow to add background htmlhow to put background in htmlhtml how to give background imageset image as bg htmlhow to set a background htmladd a background in htmlinserting background image in htmladd a background image in htmladding a background in htmladding a background htmlhow to make a background on htmlhow to make background htmlset background in html codeset background in htmlhow to insert image as background in htmlbackground htmlhow to set a background in htmlhow to add background to html websitehow to set a background on my htmlhow to put an image as the background for bodyhow to put a background in a htmlhow to set background htmlhow to make background an image in htmlbackground image on html pagehtml code in the backgroundadd background htmlhtml change background imagemake image background htmlhow to set a pic as background in htmlusing background in htmlhow to add a background to your webpage htmkhow to create a background image in htmladd background with htmladd background image to di 5cin style html background imagebackground html image 27how to set image as background in htmlhow to make background an image htmlhow to set background on htmlbody background htmlhow to set background image in htmlhow to insert an image as a background in htmlhow to put background image in htmlhow to add a bg inmage below bg videoadd background to body htmlset background htmlsetup background in htmlhow to edit background image in html html background imagehow to add a background image htmlhow to add background csshtml add background image to bodybg in htmlhow to make the background of html an imagebackground on htmlhtml backgroundhot to find backgrond image in html filehow to use picture background in htmlimage background htmlbackground image in htmlhow to background from htmladding image background to htmlwebsite html background imagehow to insert background image in htmlbackground image inside htmlinsert image as background in htmlcode to set background image in htmlhow set an image as a background in htmlhow to add a background image using htmlhow to select background image for body in htmlhow to add a background to a website in htmlhtml css background imagebackground image htmlset background into htmladd image background htmlhow to create background image in htmlcreate background with htmlhow to get an image as background htmlhtml page backgroundsbackground tag in htmlsample html background imagehow to write background image in htmlhow to add background image in htmlhow to set a background image htmlmake background htmlhtml backgroundsbackground image w3background in htmlhow to have a background htmlhow to make background image in htmlhow to put a background on htmlhow to set a background html imageinsert background in htmlhtml insert image as backgroundhow to add background on htmlhow to place an image onto a background color htmlhow to set web back ground in htmladding background image in htmlhow to add a background in htmladd background image to an html pagehow to put a background htmlhow to insert a background image in htmlhow to add background in htmlhow to add background picture in htmlhow to add image background htmladd background to the htmladding a background to body htmlput background in htmlset background photo htmlhow to add complete image in backgroundhow to have a picture background in htmlhow to set image as background htmlset background of a website htmladd image as html backgroundadd background to htmlhtml set backgroundbackground image body css attributehow to put background in html