htmlhead:Html网页页面head区规范知识



  head区是指首页HTML代码<head>和</head>的间内容

  必须加入标签

  1.公司版权注释

  <!--- The site is designed bywebjx.com 06/2006 --->

  2.网页显示

  简体中文:<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; char=gb2312\">

  繁体中文:<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; char=BIG5\">

  英 语:<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; char=iso-8859-1\">

  3.网页制作者信息

  <META name=\"author\" content=\"Evance\">

  4.网站WebSite介绍

  <META NAME=\"DESCRIPTION\" CONTENT=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\">

  5.搜索关键字

  <META NAME=\"keyWords\" CONTENT=\"xxxx,xxxx,xxx,xxxxx,xxxx,\">

  6.网页CSS规范标准

  <LINK href=\"style/style.css\" rel=\"stylesheet\" type=\"text/css\">

  7.网页标题

  <title>xxxxxxxxxxxxxxxxxx</title>

  .可以选择加入标签

  1.设定网页到期时间旦网页过期必须到服务器上重新调阅

  <META HTTP-EQUIV=\"expires\" CONTENT=\"Wed, 26 Feb 2006 08:21:57 GMT\">

  2.禁止浏览器从本地机缓存Cache中调阅页面内容

  <META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">

  3.用来防止别人在框架里页面

  <META HTTP-EQUIV=\"Window-target\" CONTENT=\"_top\">

  4.自动跳转

  <META HTTP-EQUIV=\"Refresh\" CONTENT=\"5;URL=http://www.webjx.com\">

  5指时间停留5秒

  5.网页搜索机器人向导.用来告诉搜索机器人哪些页面需要索引哪些页面不需要索引

  <META NAME=\"robots\" CONTENT=\"none\">

  CONTENT参数有all,none,index,noindex,follow,nofollow默认是all

  6.收藏夹图标

  <link rel = \"Shortcut Icon\" href=\"favicon.ico\">

  所有javascript尽量采取外部.

  <SCRIPT LANGUAGE=\"javascript\" SRC=\"script/xxxxx.js\"></SCRIPT>

  附<body>标签:

  <body>标签不属于head区这里强调为了保证浏览器兼容性必须设置页面背景<body bgcolor=\"#FFFFFF\">

Tags:  htmlheadtitle htmlheadtit headfirsthtml htmlhead

延伸阅读

最新评论

发表评论