码迷,mamicode.com
首页 > Web开发 > 详细

【HTML】2.head标签

时间:2016-05-12 17:52:18      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:

简介

<head>元素出现在文档的开头部分。<head>与</head>之间的内容不会在浏览器的文档窗口显示,但是其间的元素有特殊重要的意义:

对文档做整体的控制和描述

SEO(Search Engine  Optimization)的重要内容!

<title>

<title>元素定义HTML文档的标题。<title>与</title>之间的内容将显示在浏览器窗口的标题栏。

Meta元

技术分享

Demo

<meta name="keywords“  content="study,computer">

用来标记搜索引擎在搜索你的页面时所取出的关键词。

<meta name=“description“  content=“java,html">

这个 Meta 元素定义了对页面的描述:

<meta name="author"content=“soft">

用来标记文档的作者。

<meta http-equiv=“Content-Type”content=“text/html; charset=gb2312”>

用来标记你的页面的解码方式。

<meta http-equiv=“refresh”content=“5;URL=http://www.163.com”>

用来自动刷新网页

 

<head>

<title>典型的head</title>

<metahttp-equiv="Content-Type" content="text/html;charset=utf-8" />

<meta name="author"content="akali">

<meta http-equiv="pragma"content="no-cache">

<metahttp-equiv="cache-control" content="no-cache">

<meta http-equiv="expires"content="0">

<meta name="keywords" content=“HTML,总结,博客 ">

<meta name="description "content=“关于CSDN博客的HTML总结">

<meta http-equiv="refresh"content="5;URL=http://www.blog.csdn.net">

<link rel="stylesheet"type="text/css" href="css/pagination.css" />

<script type="text/javascript"src="js/search.js"></script>

</head>

业务思想

关于头部标签很常用、很关键,当然其重要程度也不言而喻。之所以单独拿出来总结一下,是自己老在这一部分产生一些低级的bug,以作分享。



【HTML】2.head标签

标签:

原文地址:http://blog.csdn.net/wsl211511/article/details/51355648

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!