1.1 基本功

<!DOCTYPE html><!--文档声明-->
<html><!--文档标准-->
   <head><!--页头-->
       
        <meta charset="UTF-8"><!--告诉浏览器使用的编码,如果打开网站是乱码,很有可能就是没有加上这句话-->
       
       <title>****</title><!--网页标题-->
       
       <meta name="keywords" content="****"/><!--网页的关键字,可多个(详细看下方表格)-->
       <meta name="author" content="zjw"/>
       
       <meta http-equiv="refresh" content="6;url=https://www.cnblogs.com"/><!--这段代码表示当前页面在6秒后会跳转到https://www.cnblogs.com/这个页面-->
       
   </head>
   
   <body><!--页身-->
       
       <h1>一级标题</h1>
       <h2>二级标题</h2>
      ……
       
       <p>段落标签,用于书写文字</p>
       
       <br/><!--换行-->
       
       <strong>粗体标签</strong>
       <em>斜体标签</em>
      ……<!--详见下表-->
       
       <hr/><!--水平线标签-->
       
       <div>
          分区标签
       </div>
       
       &nbsp;<!--空格,三个空格为一个字符-->
      ……<!--详见下表-->
       
   </body>
</html>

name属性取值

属性值说明
keywords 网页的关键字,可以是多个,而不仅仅是一个
description 网页的描述
author 网页的作者
copyright 版权信息

文本标签

标签说明
strong 加粗
em 斜体
sup 上标
sub 下标
s 中划线
u 下划线
big 大号字体
small 小号字体

非常用标签

标签说明
b 加粗
i 斜体
cite 斜体

HTML特殊符号

特殊符号说明代码
" 双引号(英文) &quot ;
左单引号 &lsquo ;
右单引号 &rsquo ;
× 乘号 &times ;
÷ 除号 &divide ;
< 大于号 &lt ;
> 小于号 &gt ;
& “与”符号 &amp ;
长破折号 &mdash ;
| 竖线 &#124 ;

 

非必要知识点

<!DOCTYPE html><!--文档声明-->
<html><!--文档标准-->
   <head><!--页头-->
      <style>
          这里写css样式
       </style>
       
       <script>
       这里写JavaScript代码
       </script>
       
       <link type="text/css" rel="stylesheet" href="css/index.css"><!--用于引用外部的css-->
   </head>
   <body><!--页身-->
     
   </body>
</html>
元素名描述
header 标题头部区域的内容(用于页面或页面中的一块区域)
footer 标记脚部区域的内容(用于整个页面或页面的一块区域)
section Web页面中的一块独立区域
article 独立的文章内容
aside 相关内容或应用(常用于侧边栏)
nav 导航类辅助内容
posted @ 2021-10-12 07:36  始墨......至隐  阅读(74)  评论(0)    收藏  举报