HTML/CSS/Basic Tags/base

Материал из Web эксперт
Перейти к: навигация, поиск

Base tag

   <source lang="html4strict">

<?xml version"1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html>

 <head>
   <base href=" http://www.wbex.ru/style/" />
 </head>
 <body>
   <img src="logo.png" />
 </body>

</html>

</source>
   
  


The <base> Element

   <source lang="html4strict">

<base href="http://www.exampleSite2.ru/" /> In this case, a relative URL like this one: Entertainment/Arts/index.html ends up with the browser requesting this page: http://www.exampleSite2.ru/Entertainment/Arts/index.html

</source>