zoukankan      html  css  js  c++  java
  • HTML 之 head

    使用 base 标签使页面中的所有标签在新窗口中打开。
    <!
    DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta http-equiv="Content-Language" content="zh-cn" /> <base target="_blank" /> </head> <body> <p> <a href="http://www.w3school.com.cn" target="_blank">这个连接</a> 将在新窗口中加载,因为 target 属性被设置为 "_blank"。 </p> <p> <a href="http://www.w3school.com.cn">这个连接</a> 也将在新窗口中加载,即使没有 target 属性。 </p> </body> </html>
    本文档的 meta 属性描述了该文档和它的关键词。
    <
    meta name="description" content="HTML examples"> <meta name="keywords" content="HTML, DHTML, CSS, XML, XHTML, JavaScript, VBScript">
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <meta http-equiv="Refresh" content="5;url=http://www.w3school.com.cn" />
    </head>
    
    <body>
    <p>
    对不起。我们已经搬家了。您的 URL 是 <a href="http://www.w3school.com.cn">http://www.w3school.com.cn</a>
    </p>
    
    <p>您将在 5 秒内被重定向到新的地址。</p>
    
    <p>如果超过 5 秒后您仍然看到本消息,请点击上面的链接。</p>
    
    </body>
    </html>
  • 相关阅读:
    洛谷P2146 [NOI2015]软件包管理器
    洛谷P3038 [USACO11DEC]牧草种植Grass Planting
    洛谷P2831 愤怒的小鸟
    洛谷P1084 疫情控制
    洛谷P3258 [JLOI]2014松鼠的新家
    洛谷P1084 运输计划
    洛谷P2051 [AHOI2009]中国象棋
    洛谷P1438 无聊的数列
    洛谷P1312 Mayan游戏
    luogu P1038 神经网络
  • 原文地址:https://www.cnblogs.com/linuxroot/p/3215372.html
Copyright © 2011-2022 走看看