网页的结构
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="keywords" content="关键字"> <meta name="description" content="描述"> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> <!--重定向 页面在打开的5秒 跳转到指定的网页--> <meta http-equiv="Refresh" content="5;url=网址" /> <title>Document</title> </head> <body> </body> </html>
<!DOCTYPE html> 告诉浏览器以什么版本的html 解析网页 这个html5
<html> 根标签 lang="zh-CN" 语言 zh-CN中文 en 英文
<head> 头部
<meta charset="UTF-8"> 网页的编码格式 一般都为UTF-8
<meta http-equiv="X-UA-Compatible" content="IE=edge"> IE的兼容模式
<meta name="viewport" content="width=device-width, initial-scale=1.0"> 移动站使用 width=device-width 宽度=设备宽度
<meta name="keywords" content="关键字">网页关键字 有利于seo seo人员提供
<meta name="description" content="描述"> 网页描述 有利于seo seo人员提供
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> 网页标题前的小图标 一般放在网站根目录
<title>Document</title> 网页标题
</head> 头部结束标签
<body>内容区域
<h1>标题标签</h1>
<p>段落标签</p>
</body>
</html>根标签结束
本站部分内容来源于网络,版权属于原作者所有,本站文章只用于个人学习使用;如有侵犯联系站长删除!谢谢。
发布者:大山,转载请注明出处:https://web-note.cn/article/html/89.html