Learn the base URL tag below <base>
HTML pages can convert the relative URLs in the current HTML page to absolute URLs through the base URL. In general, by using the base URL tag <base> set absolute path of the HTML page, you only need to set the absolute path in the link address of the page.
Ex:<base href= "http://www.baidu.com" >
<a href= ". /html/lili.html "> equivalent to Http://www.baidu.com/html/lili.html
The body tag of the page <body>
Body is the body of the entire page, and its properties are
Text (sets the color of the page font)
bgcolor (sets the color of the page background),
Backgroud (Set page background color),
Bgproerties (the background image of the setting page is fixed and does not scroll with the scrolling of the page)
Link (sets the default link color for the page)
ALink (Sets the color of the link when the mouse is clicked)
Vlink (Set the link color after the visit)
TopMargin (sets the top margin of the page)
1 <!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd ">2 <HTMLxmlns= "http://www.w3.org/1999/xhtml">3 <Head>4 <Metahttp-equiv= "Content-type"content= "text/html; charset=gb2312" />5 <title>Xiao Li Studio</title>6 <styletype= "Text/css">7 Body{backgroud-repeat:no-repeat}8 </style>9 </Head>Ten One <Bodybackground= "First.jpg"Test= "#444444"TopMargin= "Ten"RightMargin= "Ten"> AWelcome to Xiao Li Blog<BR/> -Welcome to Xiao Li Blog<BR/> -Xiao Li Blog Change your voice<BR/> the - - </Body> - </HTML>
HTML learning HTML file base tag (2)