HTML foundation - Second, we summarize the main framework of the webpage in the first lecture. Now we will study the internal rules of the webpage: first from its body part: Appreciate a web page, general attention first The background of this page, if there is background music, it is more attractive! Yes, then how do these achieve? Look by: 1. Background color
We found that more bgcolor is actually the background color of BackgroundColor, bgcolor = "red" set the background color of the web page, now the color is generally # FF0000 style. 2, background picture "backgroud" is set up background image, back-ground.gif is the name of the background picture, why do some friends have written this, but the webpage Didn't there a background picture? In fact, back-ground.gif is the location of this picture relative to this page, such as what you do is placed in a C: / my website /, while the background of the background picture is placed in C: / My website / images /, then I have to write this: , pay attention to the difference between the two! 3, background music background music and two have a big difference, its code is placed on the head head> in the page, why talk now? It is because it is also the information we accept when we display a web page. Take a look at its code: