网站首页head区代码规范

发布时间:2025-05-12 点击:6
网站首页head区代码规范
head区是指首页html代码的<head>和</head>之间的内容,是必须加入的标签。
1.公司版权注释
<!--- the site is designed by maketown,lnc 06/2004一一>
2.网页显示字符集
简体中文:<meta http-equiv="content-type" content="text/html; charset=gb2312">
繁体,i-i文:<meta http-equiv="content-type" content="text/html; charset=big5'>
英语:<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
3.网页制作者信息
<meta name="author" content="webmaster@maketown.com">
4.网站简介
<meta name="description" content="木站是一个医疗站点…">
5.搜索关键字
<meta name="keywords" content="xxxx,xxxx,xxx,xxxxx,xxxx,">
6.网页的css规范
<link href="style/style.css" rel="stylesheet" type="text/css">
7.网页标题
<title>欢迎访问**网站!</title>
8.可以选择加入的标签
1)设定网页的到期时间。一旦网页过期,必须到服务器上重新调阅。
<meta http-equiv="expires" content="wed, 26 feb 1997 08:21:57 gmt">
2)禁止浏览器从本地机的缓存中调阅页面内容。
<meta http-equiv="pragma" content="no-cache">
3)自动跳转。
<meta http-equiv="refresh" content="5;url=httpx/www.yahoo.com、其中5是指时间停留5秒。
4)网页搜索机器人向导,用来告诉搜索机器人哪些页而需要索引,哪些页面不需要索引。
<meta name="robots" content="none">
content的参数有all,none, index,noindex, fol low,nofol low o默认是all.
5)收藏夹图标。
<link rel="shortcut icon" href="favicon. ico">
6)所有的javascript的调用尽量采取外部调用。
<script language="javascript" src="script/xxxxx.js"></script>


如何做好网络营销?网络营销的职能是什么?
网站设计中的字体选择与使用应考虑到这些方面
asp.net网站建设好还是PHP好
SEO优化的风险与规避方法分别是什么?
搭建小说网站用什么服务器比较好?
网站优化技巧方法合集!
博客域名怎么选?这四个问题要留意
微观照明建站思路分享