框架标签
标签名 | 功能和语义 属性 | 属性 | 单标签还是双标签 |
iframe | 引入其他文件显示在当前页面中 | src:文件的地址。 width:设置宽度。 height:设置高度。 frameborder:设置是否有边框,0:没有,1:有。 | 双标签 |
HTML 字符实体
空格
< 小于号
> 大于号
& &
¥ ¥
© ©
× ×
÷ ÷
HTML 全局属性
全局属性:所有的标签都有的属性。
title 设置提示文字
name 设置名字
id 设置唯一标识
class 设置类名,CSS中使用
style 直接设置CSS样式
lang 设置语言,一般只设置给html根标签,可以影响浏览器的自动翻译功能
meta 元信息
<!--设置网页的字符集编码-->
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<!--设置网页关键字-->
<meta name="keywords" content="8-12个以英文逗号隔开的单词/词语">
<!--设置网页描述信息-->
<meta name="description" content="80字以内的一段话,与网站内容相关">
<!--设置页面刷新或跳转到指定页面-->
<!-- <meta http-equiv="refresh" content="3"> -->
<meta http-equiv="refresh" content="3;url=http://www.atguigu.com">