HTML标签
双标签(成对出现)
<html></html>
<head></head>
<body></body>
……
单标签(单个出现)
<br />
<hr />
<mate />
html的注释
<!--这里面的内容不会显示在页面上-->
html中常用实体字符
<!--表示空格-->
< <!--表示 < -->
> <!--表示 > -->
© <!--表示 © -->
html的基本框架
<!DOCTYPE>
<html>
<head>
<title></title>
<meta charset="utf-8"/>
</head>
<body></body>
</html>
<head></head>标签
head标签中的常用标签
<head lang="en"><!--lang对页面声明主要语言,en表示中文, zh-cn表示中文-->
</head>
<title>你好</title> <!--设置网页标题-->
<mate charset="utf-8" /> <!--设置字符集,常用utf-8字符集-->
<!-- http-equiv 作用是告知浏览器需要进行的行为-->
<!-- refresh 是刷新的意思,url代表跳转的地址 3 代表间隔的时间-->
<meta http-equiv="refresh" content="3;url=https://www.bilibili.com"/>
<!--每三秒本页面刷新一次-->
<meta http-equiv="refresh" content="3" />
<!-- name 表示告知浏览器的内容 -->
<meta name="keywords" content="关键字1,关键字2,关键3,关键字4,关键字5" />
<meta name="description" content="描述该网站的具体内容信息"/>
<!--设置网页标题旁边的小图标-->
<link rel="icon" type="image/png" href="img/002.png" />
<!-- 加载css文件,设置网页样式 -->
<link rel="stylesheet" type="text/css" href="ceshi.css" />
本文介绍了HTML的基础知识,包括HTML标签的使用、注释的添加方法、常用实体字符的意义及基本的文档结构。此外还讲解了如何在head标签内设置网页语言、标题、字符集等。

被折叠的 条评论
为什么被折叠?



