HTML foundation - second lecture

xiaoxiao2021-03-06  18

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 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: BGSound doesn't have to say the background sound, background_sound.mid is the file name of music, of course, you have to write its relative path ( With regard to relative path, some netizens may not understand, we will introduce it in other sectors)! LOOP, loop, what does loop = "- 1" mean? LOOP is a property of BGSound, of course, SRC is also, followed by the attribute value, then loop = "- 1" is the meaning of infinite loop, as long as the page is open, music will not stop, loop = "1" description Take a cycle, equal to 0 is not recycled, huh, it is simple! 4, Body Other Properties: TopMargin, Leftmargin. When some friends do the page, I feel that I can't rely on the top and the left side of the browser. What is going on? Because we usually use the software or HTML language defaults are topmargin and leftmargin values ​​equal to 12. If you set their values ​​to 0, you have any effect! Compare the and , interested friends can set their value any! Ok, this section will talk about here! Everyone internships on their own computer, huh, huh!

转载请注明原文地址:https://www.9cbs.com/read-44157.html

New Post(0)