HTML超文本标记语言基本语法结构与“head”部分的知识点

来源:互联网 发布:ubuntu install opera 编辑:程序博客网 时间:2024/05/22 20:03
<!doctype html>             (版本声明   HTML5)
<html>
<head>
<title>......</title>      (网页标题)
<meta charset="utf-8">      (确认编码为utf-8系列,确保文字不会出现乱码现象)
<meta name="keywords"content="......" />      (提供给搜索引擎的网页线索)
<meta name="discription"content="......" />      (提供给搜索引擎的网页描述)

<meta http-equiv="refesh"content="...">      (每隔...秒网页自动刷新页面)

                <meta http-equiv="refresh"content="...;url=http://www.baidu.com"                 (以百度为例,...秒后网页自动跳转至百度)

                <link rel="shortcut icon" href="1.ico" />     (网站的LOGO设置)
</head>
<body text="..." background="./...">             (text用于设置页面文字颜色属性,background用于设置页面背景图片)
......
</body>

</html>      (HTML语言基本格式,html为语种,head为首,body为页面内容)

以及常用的“bgcolor”用于设置背景颜色属性。

1 0
原创粉丝点击