html知识整理

#html 知识整理

```html

<body> 正文

<p> 段落

<h1>一级标题</h1>

<h2>二级标题</h2>

<h3>三级标题</h3>

<strong>黑体 <em>斜体 强调文字

<span>单独给某段文字设置格式

span{

       color:blue;

}

<span>文本</span>

<q>表示短文本是被引用的,用“”标注

<blockquote>表示大段文字是被引用的

<br>表示分行

&nbsp表示空格

<hr>添加横线 在文本后面添加</hr>

<address>表示地址信息

<code>表示代码信息

<pre>格式化代码

 ```

<ul>不带排名的标题列表

<ul>

       <li>标题1</li>

       <li>标题2</li>

       <li>标题3</li>

</ul>

<ol>带排名的标题列表

<ol>

       <li>标题1</li>

       <li>标题2</li>

       <li>标题3</li>

</ol>

<div>给网页分区块

<div id="hotList">

   <h2>热门课程排行榜</h2>

</div>

<div id="learningInstructed">

    <h2>web前端开发导学课程</h2>

    </ul>

</div>

<table>表格

<table>

  <tbody>

    <tr>

      <th>班级</th>

      <th>学生数</th>

      <th>平均成绩</th>

    </tr>

    <tr>

      <td>一班</td>

      <td>30</td>

      <td>89</td>

    </tr>

  </tbody>

</table>

<caption>给表格添加标题

<table summary="表格简介文本"> 表格摘要

<a href=”xxxx”title=”yyy”>click here</a>给文本设置链接xxx

原文地址:https://www.cnblogs.com/cjh-DataCastle/p/7299576.html