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>
  • 相关阅读:
    js 遇到问题
    table 排序 添加 删除 等操作
    json对象
    .style, .getComputedStyle(),.currentStyle区别
    3个div 宽度移入移出时变化
    运动 js
    OWASP Top 10之文件上传漏洞简析(二)
    owasp top10 之文件上传漏洞简析
    前台实现ajax 需注意的地方
    apache-Rewrite重写规则配置
  • 原文地址:https://www.cnblogs.com/linuxroot/p/3215372.html
Copyright © 2011-2022 走看看