HTML基础(头部标签)
一、头部标签
<head>
</head>
中的标签以及各自作用:
(1)<title></title>
双标签,中间是网页名称
<head>
<meta charset="UTF-8">
<title>day1</title>
</head>
(2)meta系列标签
–>charset属性,属性值为浏览器解析源码方法,一般我们使用UTF-8,可以解决网业打开的乱码问题
–>name属性,一般用于当前网页的简单描述,便于搜索
-->name="keywords" content="搜索关键字"
-->name="author" content="网页作者"
-->name="description" content="网页陈述"
-->http-equiv属性,用来刷新网页
http-equiv="refresh" content="5;http://www.baidu.com",在5分中后对网页进行刷新,刷新到百度官网
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>day1</title>
<meta name = "keywords" content="练习">
</head>