html 2

定义头部和元信息

  • 元信息: <meta> name/http-cquiv=" " content=" "
  • 当name时,设置页面隐性信息:关键词(keyword),描述(description)、开发工具(generator)、作者(author)、版权信息(copyright)、建站日期(build)、搜索限制(robots)值(All/index/Nofollow/Noindex/None)、作者联系邮箱(reply-to)
  • 当为http-equiv(即Equivalent,对等协议)、主要设置http的响应头信息、用精确解析网页。

设置网页类型及编码:

  1. <meta http-equiv=contnt-type"content="text/html; charset=utf-8"/>,但已被HTML5的<meta HTM charset='utf-8'/>代替。
  2. 自动刷新跳转:
<meta http-equiv=" reresh" control="2,url=http://google.com"/>
  1. 设置网页禁止缓存及有效期:
 <meta http-equiv="cache-control" content="no-cache" />
 <meta http-equiv= "expires" content="0" />

值:sun,4 Dec 2019 12:00:00 GTM,格式为:星期 日 年 时 分 秒 GML.

网页转场效果:

<meta http-equiv="page-enter" content="reveatrans(duration=5,transition=8)">

网页独立显示:

<meta http-equiv="window-target" content="_top"/>

其他:style ,script, link

<link rel=" stylesheet" href="style.css"/>
<link rel="icon" type= "image/x-icon" href="favicon.ico"/>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值