HTML 之 head
2024-09-28 10:06:44
使用 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>
最新文章
- Ajax中POST和GET的区别
- ListIterator接口,双向输出。
- 如何学习JavaScript
- 机器学习中的范数规则化之(一)L0、L1与L2范数
- 使用yum时,保留下载包设置
- Android Studio通过JNI调用NDK程序
- 怎样在Android中ListView与ArrayAdapter配合使用
- [转载+原创]Emgu CV on C# (三) —— Emgu CV on 均衡化
- 【welcome-file-list】让默认页生效
- Android基本功:Handler消息传送机制
- NIR相机
- C++Primer笔记(2)
- cocos2d基本类介绍 director/scene/layer/sprite
- 一行代码搞定ThoughtWorks面试题
- [HNOI 2014]道路堵塞
- bottle.py中的SimpleTemplate
- CSS3效果:波浪效果
- [UE4]蓝图使用GameMode重构
- 【BZOJ】【4144】【AMPPZ2014】Petrol
- leetcode之二叉树的层序遍历
热门文章
- repeater留言板[转]
- 首师大附中科创教育平台 我的刷题记录 3120 LJX的校园:入学典礼
- 遗传算法在JobShop中的应用研究(part 6:结果显示)
- [ Arch Linux ] Arch更新源高速源整理之测速并自动排序高速源 加快更新效率
- 1. C语言中的数据结构.md
- DG的Switchover切换
- 转!! PreparedStatement是如何防止SQL注入的
- jquery.nicescroll完美滚动条使用方法
- 安装idea开发工具
- Maplace.js – 小巧实用的 jQuery 谷歌地图插件