base: 文件链接基准

2017-06-05 14:30:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
 <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
 <link href="default.css" rel="stylesheet" type="text/css">
 <base href="" target="_blank">
 此文档链接了外部样式表default.css <br>此文档使用了base元素,所有的相对链接都是相对base元素href属性指定的URI,超链接打开的目标窗口也是由base元素的target属性指定的<br>下面的超链接的URI为index.html,没有设定目标窗口,但是都由base元素指定了。<br>所以下面的图片也无法显示:<br><a href="index.html">Test the links</a><hr><img src="src/bugs.gif" alt="bugs bunny"><p>Authors may use the LINK element to provide a variety of information to search engines, including:</p>
 <p>Links to alternate versions of a document, written in another human language. <br>
 Links to alternate versions of a document, designed for different media, for instance a version especially suited for printing. <br>
 Links to the starting page of a collection of documents. <br>
 The examples below illustrate how language information, media types, and link types may be combined to improve document handling by search engines.</p>
 <p>In the following example, we use the hreflang attribute to tell search engines where to find Dutch, Portuguese, and Arabic versions of a document. Note the use of the charset attribute for the Arabic manual. Note also the use of the lang attribute to indicate that the value of the title attribute for the LINK element designating the French manual is in French.<br>
  • QQ讨论群
  • 关注微信
    • 欢迎咨询
    • 欢迎加入QQ群 16506021
  • 公众号:源宝网络