base: 文件链接基准

2017-06-05 14:30:00
admin
原创
323
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
 <title>元素base</title>
 <link href="default.css" rel="stylesheet" type="text/css">
 <base href="http://www.yourdomain.com/" target="_blank">
 </head>
 <body>
 此文档链接了外部样式表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>
 </p>
 </body>
 </html>
文章分类
联系我们
电话: 18902328227
Email: 2689701946@qq.com
QQ: 2689701946
微信: 18902328227
地址: 广州番禺区繁华路
  • 在线客服
  • 关注微信
  • 联系电话
    • 欢迎咨询
    • 欢迎加入QQ群 303257430
  • 公众号:源宝网络
    • 联系电话及微信号 18902328227