HTML head头部

可以为头部区域填加的元素标签有

<title><style><meta><link><script><noscript><base></p><p>定义HTML文档的标题</p><div class="pgc-img"><img src="http://p1.pstatp.com/large/pgc-image/8e93c4a34d344270afdb7c3842cf0675" img_width="1617" img_height="508" style="height:508px" alt="HTML head头部" inline="0"><p class="pgc-img-caption"></p></div><p><base>定义了所有链接的URL</p><div class="pgc-img"><img src="http://p3.pstatp.com/large/pgc-image/f50a0470f08247e5b330cdf99a921702" img_width="1882" img_height="850" alt="HTML head头部" inline="0"><p class="pgc-img-caption"></p></div><p><title>元素</p><p>定义不同文档的标题</p><p>在HTML中,是必须填写</p><p>定义了浏览器工具栏的标题,</p><p>当网页添加收藏夹时,显示在收藏夹中的标题</p><p>显示搜索引擎结果页面的标题</p><p><link>元素</p><p>标签定义了文档与外部资源之间的关系 </p><p>标签通常用于链接到样式表</p><p><head></p><p><link rel="stylesheet" type="text/css" href="mystyle.css"></p><p></head></p><p><base></p><p>标签描述了基本的链接地址/链接目标,该标签作为HTML文档中所有链接标签的默认链接</p><p><head></p><p><base href="http://www.baidu.com/images/" target="_blank"></p><p></head></p><p><style></p><p>标签定义了HTML文档样式文件引用地址</p><p>也可以直接添加样式渲染HTML文档</p><div class="pgc-img"><img src="http://p1.pstatp.com/large/pgc-image/df2c93285f5c45409b769bbb4a7c9126" img_width="336" img_height="155" alt="HTML head头部" inline="0"><p class="pgc-img-caption"></p></div><p><meta></p><p>描述一些基本的元数据</p><p>提供了元数据;元数据也不显示在页面上,但会被浏览器解析</p><p>META元素通常用于指定网页的描述、关键词、文档的最后修改时间,作者和其它元数据</p><p>元数据可以使用于浏览器(如何显示内容或重新加载页面),搜索引擎(关键词),或其它web服务;</p><p><meta>一般放置于<head>区域</p><div class="pgc-img"><img src="http://p3.pstatp.com/large/pgc-image/716c35e539a647a4924d67c9b251d69f" img_width="586" img_height="422" alt="HTML head头部" inline="0"><p class="pgc-img-caption"></p></div><p>HTML<script>元素</p><p>用于加载脚本文件,如JAVASCRIPT</p><div class="pgc-img"><img src="http://p1.pstatp.com/large/pgc-image/8a8c709e10944b0391a16fb1d3eb38f5" img_width="464" img_height="366" alt="HTML head头部" inline="0"><p class="pgc-img-caption"></p></div></div>"/<style>/<title>


分享到:


相關文章: