和平发展 發表於 2019-8-21 19:29:00

html5

<p>说明:花了一天时间看着视频,基本过了一遍html5知识</p>
<p>参考链接:https://www.bilibili.com/video/av15241731?from=search&amp;seid=6009616845277882348</p>
<h1 id="i2dHS" style="padding: 7px 0; margin: 0; font-size: 28px; line-height: 36px">基本知识</h1>
<h2 id="2YquP" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">定义</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">html:超文本标签语言,用文本表示特殊标签的语言,标签由&lt;&gt;&lt;/&gt;组成</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">例子:&lt;标签名&gt;内容&lt;/标签名&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p>
<p style="text-indent: 2em; color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&lt;strong&gt;加粗字体&lt;/strong&gt;</p>
<h2 id="Rou5W" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">&nbsp;</h2>
<h2 id="LEtK9" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">基本格式</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&lt;!DOCTYPE html&gt; 使用的是html5版本</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&lt;html&gt; &nbsp;根标签</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;&lt;head&gt; &nbsp;头标签</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;meta charset="UTF-8"&gt; &nbsp;字符编码方式</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;meta http-equiv="X-UA-Compatible" content="ie=edge"&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;title&gt;&lt;/title&gt; 标题标签</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;&lt;/head&gt;&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;&lt;body&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;&lt;/body&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&lt;/html&gt;</p>
<h2 id="6wCEt" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">&nbsp;</h2>
<h2 id="oNVTe" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">双标签与单标签</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">双标签(绝大多数):&lt;body&gt;标签开始部分 &nbsp; &nbsp; &nbsp;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/body&gt;标签结束部分</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/关闭符号</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">单标签(一小部分):&lt;br /&gt;、&lt;hr /&gt;、&lt;input /&gt;、&lt;img /&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp;</p>
<h2 id="XA6LV" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">关系</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">嵌套关系:</p>
<p style="text-indent: 2em; color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&lt;html&gt;&lt;/html&gt;是一切标签的父标签</p>
<p style="text-indent: 2em; color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&lt;head&gt;&lt;/head&gt;是&lt;title&gt;&lt;/title&gt;的父标签</p>
<p style="text-indent: 2em; color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">如果两个标签之间是嵌套关系,子元素最好缩进一个tab身位</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">并列关系:</p>
<p style="text-indent: 2em; color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&lt;head&gt;&lt;/head&gt;和&lt;body&gt;&lt;/body&gt;是并列关系,同一级别</p>
<p style="text-indent: 2em; color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">如果两个标签之间是并列关系,最好上下对齐</p>
<p style="text-indent: 2em; color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp;</p>
<h2 id="8gZW3" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">快速创建</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">在vscode的html文件页面中输入!或者html:5,再按tab即可快速创建框架</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp;</p>
<h2 id="sdNqV" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">字符集</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;GB2312:简体中文,包括6763个汉字</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;BIG5:繁体中文,港澳台地区使用</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;GBk:简体+繁体中文,是GB2312的扩展</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;UTF-8:包含全世界所有国家字符,避免出现字符集不统一而出现的乱码情况</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp;</p>
<h2 id="dbZo0" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">标签语义化</h2>
<p style="text-indent: 2em; color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">好处:</p>
<p style="text-indent: 2em; color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;方便阅读和维护</p>
<p style="text-indent: 2em; color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;让浏览器能够快速解析</p>
<p style="text-indent: 2em; color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;便于搜索引擎优化</p>
<p style="text-indent: 2em; color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">核心:合适的地方放置一个最为合理的标签</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp;</p>
<h1 id="oetLL" style="padding: 7px 0; margin: 0; font-size: 28px; line-height: 36px">标签</h1>
<h2 id="23F86" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">排版标签</h2>
<h3 id="VJJ3z" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">标题标签</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;作为标题使用,依据重要性递减&lt;h1&gt;~&lt;h6&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;h1&gt;标题1&lt;/h1&gt;</p>
<h3 id="i2B37" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">段落标签</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;将网页中的文字有条理的显示出来,进行分段</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;在浏览器中会根据浏览器布局大小自动换行</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p&gt;段落&lt;/p&gt;</p>
<h3 id="FG32e" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px"> 水平线标签</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;网页中使用水平线将段落与段落之间分割,使文档结构清晰</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;hr /&gt; &nbsp;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;注意:单标签</p>
<h3 id="yYGUB" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">换行标签</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;可以使文本换行显示</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;br /&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;注意:单标签</p>
<h3 id="155Y6" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">div span标签(未完结)</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;div span 没有语义,是网页布局的两个盒子</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;div是division的缩写,是分割、分区的意思</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;span是跨度、跨距,范围的意思</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;div&gt;&lt;/div&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;span&gt;&lt;/span&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;</p>
<h2 id="jGgTB" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px"> 文本格式化标签</h2>
<h3 id="43Zen" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">粗体</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;b&gt;&lt;/b&gt;:只是进行加粗</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;strong&gt;(推荐使用)&lt;/strong&gt;:进行加粗的同时,强调</p>
<h3 id="kSdXA" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">斜体</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;i&gt;&lt;/i&gt;:只进行倾斜</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;em&gt;&lt;/em&gt;:进行倾斜的同时,强调</p>
<h3 id="WkQfG" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">加删除线</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;s&gt;&lt;/s&gt;:只是进行加删除线</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;del&gt;&lt;/del&gt;:进行加删除线的同时,强调</p>
<h3 id="LBr7D" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">加下划线</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;u&gt;&lt;/u&gt;:只是进行加下划线</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;ins&gt;&lt;/ins&gt;:进行加下划线的同时,强调</p>
<h2 id="vBDgE" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">标签属性</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;标签名 属性1="属性1" 属性2="属性2" ···&gt;内容&lt;/标签名&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;标签可以拥有多个属性,必须写在开始标签中,位于标签名后面</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;属性之间不分先后顺序,标签名和属性、属性和属性之间均以空格分开</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;任何标签的属性都有默认值,省略该属性则取默认值</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;采取 键值对 的格式 key = value</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;例:&lt;hr width="500" color="red"/&gt;</p>
<h2 id="prwLK" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px"> 图像标签</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;可以在网页中显示图像</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;注意:单标签</p>
<h3 id="GXp9E" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">基本插入方式</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;img src="图像URL" /&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;图像的路径</p>
<h3 id="hUnt5" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">带有alt的图像</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;img src="图像URL" alt="这是我的1"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;图像不能显示时的替换文本</p>
<h3 id="tEK56" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">带有title的图像</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src="图像URL" title="这是我的2"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 鼠标悬停时显示的内容</p>
<h3 id="LCY7x" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">带有width和height的图像:</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src="图像URL" title="这是我的3" width="400"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src="图像URL" title="这是我的3" height="400"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 设置图像的宽度和高度</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 一般只需要宽度或高度即可,图片会自动等比例缩放</p>
<h3 id="ziTEn" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">带有border的图像</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;img src="图像URL" title="这是我的3" width="400"/ border="10"&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;设置图像框的宽度</p>
<h2 id="aJstZ" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">链接标签</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;anchor的缩写</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;a herf="跳转目标" target="目标窗口的弹出方式"&gt;文本或图像&lt;/a&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;herf:用于指定连接目标的url地址</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;target:用于指定链接页面的打开方式,取值有self和blank两种,其中self为默认值,blank为在新窗口中打开</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;a href="http://www.baidu.com"&gt;百度&lt;/a&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;外部链接需要添加:http://</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;内部链接直接链接内部页面名称即可:&lt;a herf="index.html"&gt;首页&lt;/a&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;如果没有确定链接目标,&lt;a herf="#"&gt;表示暂时为一个空链接&lt;/a&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;不仅仅可以创建文本超链接,网页中各种元素(图像、表格、音频、视频等都可以添加超链接</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;锚点定位:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;第一步:使用“a herf="#id名" 链接文本 /a”创建链接文本</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;a herf="#live"&gt;个人生活&lt;/a&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;第二步:使用相应的id名标注跳转目标的位置</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;h3 id="live"&gt;个人生活&lt;/h3&gt;</p>
<h3 id="Htk2J" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px"> base标签</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;设置整体链接的打开状态</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;在&lt;head&gt;&lt;/head&gt;中加入&lt;base /&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;注意:单标签&lt;base /&gt;</p>
<h3 id="6T5E7" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">特殊字符标签</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;空格 :&amp;nbsp;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;小于号&lt;:&amp;lt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;大于号&gt;:&amp;gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;和号&amp;:&amp;amp;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;人命币¥:&amp;yen;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;版权©:&amp;copy;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;注册商标®:&amp;reg;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;摄氏度℃:&amp;deg;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;正负号±:&amp;plusmn;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;乘号×:&amp;times;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;除号÷:&amp;divide;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;平方2(上标2):&amp;sup2;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;平方3(上标3):&amp;sup3;</p>
<h3 id="Q9qYl" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px"> 注释标签</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;!--注释内容--&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;快捷键:ctrl+/</p>
<h1 id="RTXb6" style="padding: 7px 0; margin: 0; font-size: 28px; line-height: 36px">路径</h1>
<h2 id="rLqPT" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">相对路径</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1.图像文件和html文件位于同一文件夹,只需输入图像文件的名称即可</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;img src="logo.gif" /&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2.图像文件位于html文件的下一级文件夹,输入文件夹名和文件名,之间用/隔开</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;img src="img/img01/logo.gif" /&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3.图像文件位于html文件的上一级文件夹,在文件名之前加入../ 如果是上两级,则需要使用../../ 依次类推</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;img src="../logo.gif" /&gt;</p>
<h2 id="hrtun" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px"> 绝对路径</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;D:web\img\logo.gif:不常用,只能在本机中使用</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;完整的网络地址:http://www.itcast.cn/images/logo.gif</p>
<h1 id="meF07" style="padding: 7px 0; margin: 0; font-size: 28px; line-height: 36px"> 列表标签</h1>
<h2 id="U03Fw" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">无序列表</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;ul&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;/li&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;/li&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;/li&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/ul&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;注意:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;ul&gt;&lt;/ul&gt;中最好只存在&lt;li&gt;&lt;/li&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;/li&gt;之间相当于一个容器,可以容纳所有元素</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;比如在&lt;li&gt;&lt;/li&gt;中加入&lt;p&gt;&lt;/p&gt;</p>
<h2 id="PedC9" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px"> 有序列表</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;按照一定顺序进行排序</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;ol&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;/li&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;/li&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;/li&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/ol&gt;</p>
<h2 id="FFFw1" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">自定义列表</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;常用于对术语或名词进行解释和描述,定义列表的列表项前没有任何相互符号</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;dl&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;dt&gt;名词1&lt;/dt&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;dd&gt;名词1解释1&lt;/dd&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;dd&gt;名词1解释2&lt;/dd&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;···</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;dt&gt;名词2&lt;/dt&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;dd&gt;名词2解释1&lt;/dd&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;dd&gt;名词2解释2&lt;/dd&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;···</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/dl&gt;</p>
<h1 id="BMSGN" style="padding: 7px 0; margin: 0; font-size: 28px; line-height: 36px">表格</h1>
<h2 id="JIMVt" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">基本语法</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;table&gt; &nbsp; &nbsp;表格</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt; &nbsp; &nbsp;行</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;单元格中的文字&lt;/td&gt; &nbsp; &nbsp; 单元格</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;···</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;···</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;/table&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;实例:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;table width="500" height="300" border="1"&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;1&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;2&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;3&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;4&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;5&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;6&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;7&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;8&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;9&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/table&gt;</p>
<h2 id="vK5VA" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">表格属性</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;border:设置表格的边框(默认“border=0”无边框)</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;cellspacing:设置单元格与单元格边框之间的空白间距</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;cellpadding:设置单元格内容与单元格边框之间的空白间距</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;width:设置表格的宽度</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;height:设置表格的高度</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;align:设置表格在网页中的水平对齐方式(left、right、center,默认left)</p>
<h2 id="nNTIj" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">表头标签</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;表头一般位于表格第一行或第一列,文本加粗居中</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;用法:将表头标签&lt;th&gt;&lt;/th&gt;替换相应的单元格标签&lt;td&gt;&lt;/td&gt;即可</p>
<h2 id="afplz" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">表格结构</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &lt;table width="500" height="300" border="1"&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;thead&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;1&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;2&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;3&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/thead&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tbody&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;4&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;5&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;6&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;7&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;8&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;9&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tbody&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/table&gt;</p>
<h2 id="WmHQ1" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px"> 表格标题</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;table&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;caption&gt;&lt;/caption&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;/table&gt;</p>
<h2 id="WFdPz" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">合并单元格</h2>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;合并时要将多余的行/列删除,删除的个数=合并的个数-1</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;合并顺序:先上后下,先左后右</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;跨行合并(rowspan):</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;table width="500" height="300" border="1"&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;thead&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;1&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;2&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td rowspan="2"&gt;3&lt;/td&gt; &nbsp;2代表合并2个单元格</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/thead&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tbody&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;4&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;5&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;!--&lt;td&gt;6&lt;/td&gt;--&gt;将这个删除</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;7&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;8&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;9&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tbody&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/table&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;跨列合并(colspan):</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table width="500" height="300" border="1"&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;thead&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;1&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;2&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;3&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/thead&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tbody&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;4&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;5&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;6&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;7&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td colspan="2"&gt;8&lt;/td&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;!--&lt;td&gt;9&lt;/td&gt;--&gt;将这个删除</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tbody&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/table&gt;</p>
<h2 id="ye1Jw" style="padding: 7px 0; margin: 0; font-size: 24px; line-height: 32px">表单标签</h2>
<h3 id="ymsad" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">input控件</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;注意:单标签</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;type:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;text:单行文本框输入</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="text"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;password:密码输入框</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="password"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;radio:单选按钮</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="radio"/&gt;男 &lt;input type="radio"/&gt;女</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;checkbox:复选框</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="checkbox"/&gt;足球 &lt;input type="checkbox"/&gt;篮球</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;button:普通按钮</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="button" value="搜索"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;submit:提交按钮</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="sumbit" /&gt; &nbsp;默认“提交”</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="sumbit" value="提交按钮"/&gt; &nbsp; &nbsp; 也可更改</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;reset:重置按钮</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="reset" /&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;image:图像形式的提交按钮</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="image" src="1.jpg"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;file:文件域</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="file" /&gt; &nbsp; &nbsp; &nbsp; 可以添加文件</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;name:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;由用户自定义:控件的名称</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;单选框,用name来实现一组的效果</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="radio" name="sex"/&gt;男 &lt;input type="radio"/ name="sex"&gt;女</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;复选框</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="checkbox" name="hobby"/&gt;足球 &lt;input type="checkbox" name="hobby"/&gt;篮球</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;value:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;由用户自定义:input控件中的默认文本值</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="text" value="用户名"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;size:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;正整数:input控件在页面中的显示</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;checked:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;checked:定义选择控件默认被选中的项</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="radio" check="checked"/&gt;男 &nbsp; &nbsp; 默认选中</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;maxlength:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;正整数:控件允许输入的最多字符数</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="password" maxlength="6"/&gt;</p>
<h3 id="fRROh" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">label标签</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;用于绑定一个表单元素,当点击label标签时,被绑定的表单元素就会获得输入焦点</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;1.用label直接进行包裹input即可</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;输入账号:&lt;input type="text"/&gt;&lt;/label&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;2.如果label中有多个表单,想定位到某个,可以用for &nbsp;id的格式进行</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label for="two"&gt;输入账号:&lt;input type="text"/&gt; &lt;/label&gt;&lt;input type="text" id="two"/&gt;&lt;/label&gt;</p>
<h3 id="FboDo" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px"> textarea控件(文本域)</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;textaera cols="每行的字数" row="显示的行数"&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;文本内容</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;/textaera&gt;</p>
<h3 id="CrjMx" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">下拉菜单</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;select&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;option&gt;北京&lt;/option&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;option&gt;上海&lt;/option&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;option selected="selected"&gt;广州&lt;/option&gt; &nbsp; 可以将这个放在第一位</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;/select&gt;</p>
<h3 id="Fy5bk" style="padding: 7px 0; margin: 0; font-size: 20px; line-height: 28px">表单域</h3>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;action:在表单收到信息后,需要将信息传递给服务器进行处理,action属性用于指定接收并处理表单数据的服务器程序的url地址</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;method:用于设置表单数据的提交方式,取值为get或者post</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;name:用于指定表单的名称,来区分同一个页面的多个表单</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;注意:每个表单都应该有自己的表单域</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;form action="url地址" method="提交方式" name="表单名称"&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;各种表单控件</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/form&gt;</p>
<h1 id="m08Ef" style="padding: 7px 0; margin: 0; font-size: 28px; line-height: 36px">常用新标签</h1>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;可在w3c手册中文官网:http://w3school.com.cn/查看</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;header:定义文档的页眉</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;nav:定义导航栏链接部分</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;footer:定义文档或节的页脚</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;article:定义文章</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;section:定义文档中的节</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;aside:定义其所处内容之外的内容,侧边</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;datalist:标签定义选项列表,与input元素搭配使用</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="test" value="输入" list="1"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;datalist id="1"&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;option&gt;11&lt;/option&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;option&gt;12&lt;/option&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;/datalist&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;filedset:元素可将表单内的相关元素分组,打包,与legend搭配使用</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;filedset&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;legend&gt;用户登录&lt;/legend&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;用户名:&lt;input type="test"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;/filedset&gt;</p>
<h1 id="UHEzf" style="padding: 7px 0; margin: 0; font-size: 28px; line-height: 36px">新增input type属性值</h1>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;email:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;输入邮箱格式</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="email"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;tel:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;输入手机号码格式</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;inpt type="tel"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;url:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;输入url格式</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="url"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;number:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;输入数字格式</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="number"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;search:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;搜索框(体现语义化)</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="search"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;range:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;自由拖动滑块</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="range"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;time:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;小时分钟</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="time"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;date:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;年月日</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="date"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;datetime:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;时间</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="datetime"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;month:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;月年</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="month"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;week:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;星期 年</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="week"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;color:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;颜色</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="color"/&gt;</p>
<h1 id="b8wIi" style="padding: 7px 0; margin: 0; font-size: 28px; line-height: 36px">常用新属性</h1>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;placeholder:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;占位符提供可描述输入字段预期值的提示信息</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="text" placeholder="请输入用户名"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;autofocus:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;规定当页面加载时,input元素应该自动获得焦点</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="text" autofocus/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;multiple:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;多文件上传</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="file" multiple/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;autocomplete:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;规定表单是否应该启用自动完成功能,有2个值,一个是on一个是off,on代表记录已经输入的值</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;1.首先需要提交</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;2.表单必须输入信息</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;默认是on</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="text" autocomplete="off"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;required:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;必填项</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="text" required/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;accesskey:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;规定激活(使元素获得焦点)元素的快捷键,采用alt+字母的形式</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type="text" accesskey="s"/&gt;</p>
<h1 id="j9ISv" style="padding: 7px 0; margin: 0; font-size: 28px; line-height: 36px">多媒体标签</h1>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;音频:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;audio src="background.mp3" autoplay controls loop="-1"&gt;&lt;/audio&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;autoplay:自动播放</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;controls:显示控件</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;loop:播放次数,若等于-1,则为无限循环</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;格式转换:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;三种格式:ogg、mp3、wav</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;audio&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;source src="bgsound.mp3"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;source src="music.ogg"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/audio&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp;视频:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp;&lt;video src="hh,mp4" autoplay controls weight="100" height="50"&gt;&lt;/video&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;格式转换:</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;三种格式:ogg、mp4、webM</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;video&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;source src="hh.mp4"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;source src="movie.ogg"/&gt;</p>
<p style="color: rgba(38, 38, 38, 1); line-height: 24px; letter-spacing: 0.05em; outline-style: none; overflow-wrap: break-word; margin: 0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/video&gt;</p>
<p>html:超文本标签语言,用文本表示特殊标签的语言,标签由&lt;&gt;&lt;/&gt;组成例子:&lt;标签名&gt;内容&lt;/标签名&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;strong&gt;加粗字体&lt;/strong&gt;<br>基本格式:&lt;!DOCTYPE html&gt; 使用的是html5版本&lt;html&gt;&nbsp; 根标签&nbsp; &nbsp; &lt;head&gt;&nbsp; 头标签&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta charset="UTF-8"&gt;&nbsp; 字符编码方式&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv="X-UA-Compatible" content="ie=edge"&gt;&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;&lt;/title&gt; 标题标签&nbsp; &nbsp; &lt;/head&gt;&gt;<br>&nbsp; &nbsp; &lt;body&gt;&nbsp; &nbsp; &lt;/body&gt;&lt;/html&gt;<br>双标签(绝大多数):&lt;body&gt;标签开始部分&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/body&gt;标签结束部分&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /关闭符号单标签(一小部分):&lt;br /&gt;<br>嵌套关系:&lt;html&gt;&lt;/html&gt;是一切标签的父标签&lt;head&gt;&lt;/head&gt;是&lt;title&gt;&lt;/title&gt;的父标签如果两个标签之间是嵌套关系,子元素最好缩进一个tab身位<br>并列关系:&lt;head&gt;&lt;/head&gt;和&lt;body&gt;&lt;/body&gt;是并列关系,同一级别如果两个标签之间是并列关系,最好上下对齐<br>在vscode页面中输入!或者html:5,再按tab即可快速创建框架<br>字符集:&nbsp; &nbsp; GB2312:简体中文,包括6763个汉字&nbsp; &nbsp; BIG5:繁体中文,港澳台地区使用&nbsp; &nbsp; GBk:简体+繁体中文,是GB2312的扩展&nbsp; &nbsp; UTF-8:包含全世界所有国家字符,避免出现字符集不统一而出现的乱码情况<br>标签语义化:好处:&nbsp; &nbsp; 方便阅读和维护&nbsp; &nbsp; 让浏览器能够快速解析&nbsp; &nbsp; 便于搜索引擎优化核心:合适的地方放置一个最为合理的标签<br><br>标签:&nbsp; &nbsp; 排版标签:&nbsp; &nbsp; &nbsp; &nbsp; 标题标签:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 作为标题使用,依据重要性递减&lt;h1&gt;~&lt;h6&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h1&gt;标题1&lt;/h1&gt;&nbsp; &nbsp; &nbsp; &nbsp; 段落标签:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 将网页中的文字有条理的显示出来,进行分段&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 在浏览器中会根据浏览器布局大小自动换行&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;段落&lt;/p&gt;&nbsp; &nbsp; &nbsp; &nbsp; 水平线标签:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 网页中使用水平线将段落与段落之间分割,使文档结构清晰&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;hr /&gt;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 注意:单标签&nbsp; &nbsp; &nbsp; &nbsp; 换行标签:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 可以使文本换行显示&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;br /&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 注意:单标签&nbsp; &nbsp; &nbsp; &nbsp; div span标签(重点,未讲):&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; div span 没有语义,是网页布局的两个盒子&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; div是division的缩写,是分割、分区的意思&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; span是跨度、跨距,范围的意思&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div&gt;&lt;/div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span&gt;&lt;/span&gt;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; 文本格式化标签:&nbsp; &nbsp; &nbsp; &nbsp; 粗体:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;&lt;/b&gt;:只是进行加粗&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;strong&gt;(推荐使用)&lt;/strong&gt;:进行加粗的同时,强调&nbsp; &nbsp; &nbsp; &nbsp; 斜体:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;i&gt;&lt;/i&gt;:只进行倾斜&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;em&gt;&lt;/em&gt;:进行倾斜的同时,强调&nbsp; &nbsp; &nbsp; &nbsp; 加删除线:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;s&gt;&lt;/s&gt;:只是进行加删除线&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;del&gt;&lt;/del&gt;:进行加删除线的同时,强调&nbsp; &nbsp; &nbsp; &nbsp; 加下划线:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;u&gt;&lt;/u&gt;:只是进行加下划线&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ins&gt;&lt;/ins&gt;:进行加下划线的同时,强调<br>&nbsp; &nbsp; 标签属性:&nbsp; &nbsp; &nbsp; &nbsp; &lt;标签名 属性1="属性1" 属性2="属性2" ···&gt;内容&lt;/标签名&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 标签可以拥有多个属性,必须写在开始标签中,位于标签名后面&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 属性之间不分先后顺序,标签名和属性、属性和属性之间均以空格分开&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 任何标签的属性都有默认值,省略该属性则取默认值&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 采取 键值对 的格式 key = value&nbsp; &nbsp; &nbsp; &nbsp; 例:&lt;hr width="500" color="red"/&gt;&nbsp; &nbsp; 图像标签:&nbsp; &nbsp; &nbsp; &nbsp; 可以在网页中显示图像&nbsp; &nbsp; &nbsp; &nbsp; 注意:单标签&nbsp; &nbsp; &nbsp; &nbsp; 基本插入方式:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src="图像URL" /&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 图像的路径&nbsp; &nbsp; &nbsp; &nbsp; 带有alt的图像:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src="图像URL" alt="这是我的1"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 图像不能显示时的替换文本&nbsp; &nbsp; &nbsp; &nbsp; 带有title的图像:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;img src="图像URL" title="这是我的2"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;鼠标悬停时显示的内容&nbsp; &nbsp; &nbsp; &nbsp; 带有width和height的图像:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;img src="图像URL" title="这是我的3" width="400"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;img src="图像URL" title="这是我的3" height="400"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;设置图像的宽度和高度&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;一般只需要宽度或高度即可,图片会自动等比例缩放&nbsp; &nbsp; &nbsp; &nbsp; 带有border的图像:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src="图像URL" title="这是我的3" width="400"/ border="10"&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 设置图像框的宽度&nbsp; &nbsp; 链接标签;&nbsp; &nbsp; &nbsp; &nbsp; anchor的缩写&nbsp; &nbsp; &nbsp; &nbsp; &lt;a herf="跳转目标" target="目标窗口的弹出方式"&gt;文本或图像&lt;/a&gt;&nbsp; &nbsp; &nbsp; &nbsp; herf:用于指定连接目标的url地址&nbsp; &nbsp; &nbsp; &nbsp; target:用于指定链接页面的打开方式,取值有self和blank两种,其中self为默认值,blank为在新窗口中打开&nbsp; &nbsp; &nbsp; &nbsp; &lt;a href="http://www.baidu.com"&gt;百度&lt;/a&gt;&nbsp; &nbsp; &nbsp; &nbsp; 外部链接需要添加:http://&nbsp; &nbsp; &nbsp; &nbsp; 内部链接直接链接内部页面名称即可:&lt;a herf="index.html"&gt;首页&lt;/a&gt;&nbsp; &nbsp; &nbsp; &nbsp; 如果没有确定链接目标,&lt;a herf="#"&gt;表示暂时为一个空链接&lt;/a&gt;&nbsp; &nbsp; &nbsp; &nbsp; 不仅仅可以创建文本超链接,网页中各种元素(图像、表格、音频、视频等都可以添加超链接&nbsp; &nbsp; 锚点定位:&nbsp; &nbsp; &nbsp; &nbsp; 第一步:使用“a herf="#id名" 链接文本 /a”创建链接文本&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a herf="#live"&gt;个人生活&lt;/a&gt;&nbsp; &nbsp; &nbsp; &nbsp; 第二步:使用相应的id名标注跳转目标的位置&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h3 id="live"&gt;个人生活&lt;/h3&gt;&nbsp; &nbsp; base标签:&nbsp; &nbsp; &nbsp; &nbsp; 设置整体链接的打开状态&nbsp; &nbsp; &nbsp; &nbsp; 在&lt;head&gt;&lt;/head&gt;中加入&lt;base /&gt;&nbsp; &nbsp; &nbsp; &nbsp; 注意:单标签&lt;base /&gt;&nbsp; &nbsp; 特殊字符标签:&nbsp; &nbsp; &nbsp; &nbsp; 空格 :&amp;nbsp;&nbsp; &nbsp; &nbsp; &nbsp; 小于号&lt;:&amp;lt;&nbsp; &nbsp; &nbsp; &nbsp; 大于号&gt;:&amp;gt;&nbsp; &nbsp; &nbsp; &nbsp; 和号&amp;:&amp;amp;&nbsp; &nbsp; &nbsp; &nbsp; 人命币¥:&amp;yen;&nbsp; &nbsp; &nbsp; &nbsp; 版权©:&amp;copy;&nbsp; &nbsp; &nbsp; &nbsp; 注册商标®:&amp;reg;&nbsp; &nbsp; &nbsp; &nbsp; 摄氏度℃:&amp;deg;&nbsp; &nbsp; &nbsp; &nbsp; 正负号±:&amp;plusmn;&nbsp; &nbsp; &nbsp; &nbsp; 乘号×:&amp;times;&nbsp; &nbsp; &nbsp; &nbsp; 除号÷:&amp;divide;&nbsp; &nbsp; &nbsp; &nbsp; 平方2(上标2):&amp;sup2;&nbsp; &nbsp; &nbsp; &nbsp; 平方3(上标3):&amp;sup3;&nbsp; &nbsp; 注释标签:&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--注释内容--&gt;&nbsp; &nbsp; &nbsp; &nbsp; 快捷键:ctrl+/&nbsp; &nbsp; 路径:&nbsp; &nbsp; &nbsp; &nbsp; 相对路径:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.图像文件和html文件位于同一文件夹,只需输入图像文件的名称即可&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src="logo.gif" /&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2.图像文件位于html文件的下一级文件夹,输入文件夹名和文件名,之间用/隔开&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src="img/img01/logo.gif" /&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3.图像文件位于html文件的上一级文件夹,在文件名之前加入../ 如果是上两级,则需要使用../../ 依次类推&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src="../logo.gif" /&gt;&nbsp; &nbsp; &nbsp; &nbsp; 绝对路径:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D:web\img\logo.gif:不常用,只能在本机中使用&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 完整的网络地址:http://www.itcast.cn/images/logo.gif&nbsp; &nbsp; 列表标签:&nbsp; &nbsp; &nbsp; &nbsp; 无序列表:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;/li&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;/li&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;/li&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 注意:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&gt;&lt;/ul&gt;中最好只存在&lt;li&gt;&lt;/li&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;/li&gt;之间相当于一个容器,可以容纳所有元素&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 比如在&lt;li&gt;&lt;/li&gt;中加入&lt;p&gt;&lt;/p&gt;&nbsp; &nbsp; &nbsp; &nbsp; 有序列表:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 按照一定顺序进行排序&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ol&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;/li&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;/li&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;/li&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ol&gt;&nbsp; &nbsp; &nbsp; &nbsp; 自定义列表:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 常用于对术语或名词进行解释和描述,定义列表的列表项前没有任何相互符号&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;dl&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;dt&gt;名词1&lt;/dt&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;dd&gt;名词1解释1&lt;/dd&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;dd&gt;名词1解释2&lt;/dd&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ···&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;dt&gt;名词2&lt;/dt&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;dd&gt;名词2解释1&lt;/dd&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;dd&gt;名词2解释2&lt;/dd&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ···&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/dl&gt;<br>表格:&nbsp; &nbsp; 基本语法:&nbsp; &nbsp; &nbsp; &nbsp; &lt;table&gt;&nbsp; &nbsp; 表格&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&nbsp; &nbsp; 行&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;单元格中的文字&lt;/td&gt;&nbsp; &nbsp; &nbsp;单元格&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ···&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ···&nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; 实例:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table width="500" height="300" border="1"&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;1&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;2&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;3&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;4&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;5&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;6&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;7&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;8&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;9&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;&nbsp; &nbsp; 表格属性:&nbsp; &nbsp; &nbsp; &nbsp; border:设置表格的边框(默认“border=0”无边框)&nbsp; &nbsp; &nbsp; &nbsp; cellspacing:设置单元格与单元格边框之间的空白间距&nbsp; &nbsp; &nbsp; &nbsp; cellpadding:设置单元格内容与单元格边框之间的空白间距&nbsp; &nbsp; &nbsp; &nbsp; width:设置表格的宽度&nbsp; &nbsp; &nbsp; &nbsp; height:设置表格的高度&nbsp; &nbsp; &nbsp; &nbsp; align:设置表格在网页中的水平对齐方式(left、right、center,默认left)&nbsp; &nbsp; 表头标签:&nbsp; &nbsp; &nbsp; &nbsp; 表头一般位于表格第一行或第一列,文本加粗居中&nbsp; &nbsp; &nbsp; &nbsp; 用法:将表头标签&lt;th&gt;&lt;/th&gt;替换相应的单元格标签&lt;td&gt;&lt;/td&gt;即可&nbsp; &nbsp; 表格结构:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;table width="500" height="300" border="1"&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;thead&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;1&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;2&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;3&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/thead&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tbody&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;4&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;5&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;6&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;7&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;8&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;9&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tbody&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;&nbsp; &nbsp; 表格标题:&nbsp; &nbsp; &nbsp; &nbsp; &lt;table&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;caption&gt;&lt;/caption&gt;&nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;&nbsp; &nbsp; 合并单元格:&nbsp; &nbsp; &nbsp; &nbsp; 合并时要将多余的行/列删除,删除的个数=合并的个数-1&nbsp; &nbsp; &nbsp; &nbsp; 合并顺序:先上后下,先左后右&nbsp; &nbsp; &nbsp; &nbsp; 跨行合并(rowspan):&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table width="500" height="300" border="1"&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;thead&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;1&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;2&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td rowspan="2"&gt;3&lt;/td&gt;&nbsp; 2代表合并2个单元格&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/thead&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tbody&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;4&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;5&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!--&lt;td&gt;6&lt;/td&gt;--&gt;将这个删除&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;7&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;8&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;9&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tbody&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;&nbsp; &nbsp; &nbsp; &nbsp; 跨列合并(colspan):&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;table width="500" height="300" border="1"&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;thead&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;1&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;2&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;3&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/thead&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tbody&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;4&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;5&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;6&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;7&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td colspan="2"&gt;8&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!--&lt;td&gt;9&lt;/td&gt;--&gt;将这个删除&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tbody&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;表单标签:&nbsp; &nbsp; input控件:&nbsp; &nbsp; &nbsp; &nbsp; 注意:单标签&nbsp; &nbsp; &nbsp; &nbsp; type:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text:单行文本框输入&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="text"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; password:密码输入框&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="password"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; radio:单选按钮&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="radio"/&gt;男 &lt;input type="radio"/&gt;女&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; checkbox:复选框&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="checkbox"/&gt;足球 &lt;input type="checkbox"/&gt;篮球&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; button:普通按钮&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="button" value="搜索"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; submit:提交按钮&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="sumbit" /&gt;&nbsp; 默认“提交”&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="sumbit" value="提交按钮"/&gt;&nbsp; &nbsp; &nbsp;也可更改&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reset:重置按钮&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="reset" /&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; image:图像形式的提交按钮&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="image" src="1.jpg"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; file:文件域&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="file" /&gt;&nbsp; &nbsp; &nbsp; &nbsp;可以添加文件&nbsp; &nbsp; &nbsp; &nbsp; name:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 由用户自定义:控件的名称&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 单选框,用name来实现一组的效果&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="radio" name="sex"/&gt;男 &lt;input type="radio"/ name="sex"&gt;女&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 复选框&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="checkbox" name="hobby"/&gt;足球 &lt;input type="checkbox" name="hobby"/&gt;篮球&nbsp; &nbsp; &nbsp; &nbsp; value:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 由用户自定义:input控件中的默认文本值&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="text" value="用户名"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; size:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 正整数:input控件在页面中的显示&nbsp; &nbsp; &nbsp; &nbsp; checked:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; checked:定义选择控件默认被选中的项&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="radio" check="checked"/&gt;男&nbsp; &nbsp; &nbsp;默认选中&nbsp; &nbsp; &nbsp; &nbsp; maxlength:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 正整数:控件允许输入的最多字符数&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="password" maxlength="6"/&gt;&nbsp; &nbsp; label标签:&nbsp; &nbsp; &nbsp; &nbsp; 用于绑定一个表单元素,当点击label标签时,被绑定的表单元素就会获得输入焦点&nbsp; &nbsp; &nbsp; &nbsp; 1.用label直接进行包裹input即可&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;输入账号:&lt;input type="text"/&gt;&lt;/label&gt;&nbsp; &nbsp; &nbsp; &nbsp; 2.如果label中有多个表单,想定位到某个,可以用for&nbsp; id的格式进行&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label for="two"&gt;输入账号:&lt;input type="text"/&gt; &lt;/label&gt;&lt;input type="text" id="two"/&gt;&lt;/label&gt;&nbsp; &nbsp; textarea控件(文本域)&nbsp; &nbsp; &nbsp; &nbsp; &lt;textaera cols="每行的字数" row="显示的行数"&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 文本内容&nbsp; &nbsp; &nbsp; &nbsp; &lt;/textaera&gt;&nbsp; &nbsp; 下拉菜单:&nbsp; &nbsp; &nbsp; &nbsp; &lt;select&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;北京&lt;/option&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;上海&lt;/option&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option selected="selected"&gt;广州&lt;/option&gt;&nbsp; &nbsp;可以将这个放在第一位&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;&nbsp; &nbsp; 表单域:&nbsp; &nbsp; &nbsp; &nbsp; action:在表单收到信息后,需要将信息传递给服务器进行处理,action属性用于指定接收并处理表单数据的服务器程序的url地址&nbsp; &nbsp; &nbsp; &nbsp; method:用于设置表单数据的提交方式,取值为get或者post&nbsp; &nbsp; &nbsp; &nbsp; name:用于指定表单的名称,来区分同一个页面的多个表单&nbsp; &nbsp; &nbsp; &nbsp; 注意:每个表单都应该有自己的表单域&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form action="url地址" method="提交方式" name="表单名称"&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 各种表单控件&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;常用新标签:&nbsp; &nbsp; 可在w3c手册中文官网:http://w3school.com.cn/查看&nbsp; &nbsp; header:定义文档的页眉&nbsp; &nbsp; nav:定义导航栏链接部分&nbsp; &nbsp; footer:定义文档或节的页脚&nbsp; &nbsp; article:定义文章&nbsp; &nbsp; section:定义文档中的节&nbsp; &nbsp; aside:定义其所处内容之外的内容,侧边&nbsp; &nbsp; datalist:标签定义选项列表,与input元素搭配使用&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="test" value="输入" list="1"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &lt;datalist id="1"&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;11&lt;/option&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;12&lt;/option&gt;&nbsp; &nbsp; &nbsp; &nbsp; &lt;/datalist&gt;&nbsp; &nbsp; filedset:元素可将表单内的相关元素分组,打包,与legend搭配使用&nbsp; &nbsp; &nbsp; &nbsp; &lt;filedset&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;legend&gt;用户登录&lt;/legend&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 用户名:&lt;input type="test"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &lt;/filedset&gt;新增input type属性值:&nbsp; &nbsp; email:&nbsp; &nbsp; &nbsp; &nbsp; 输入邮箱格式&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="email"/&gt;&nbsp; &nbsp; tel:&nbsp; &nbsp; &nbsp; &nbsp; 输入手机号码格式&nbsp; &nbsp; &nbsp; &nbsp; &lt;inpt type="tel"/&gt;&nbsp; &nbsp; url:&nbsp; &nbsp; &nbsp; &nbsp; 输入url格式&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="url"/&gt;&nbsp; &nbsp; number:&nbsp; &nbsp; &nbsp; &nbsp; 输入数字格式&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="number"/&gt;&nbsp; &nbsp; search:&nbsp; &nbsp; &nbsp; &nbsp; 搜索框(体现语义化)&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="search"/&gt;&nbsp; &nbsp; range:&nbsp; &nbsp; &nbsp; &nbsp; 自由拖动滑块&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="range"/&gt;&nbsp; &nbsp; time:&nbsp; &nbsp; &nbsp; &nbsp; 小时分钟&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="time"/&gt;&nbsp; &nbsp; date:&nbsp; &nbsp; &nbsp; &nbsp; 年月日&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="date"/&gt;&nbsp; &nbsp; datetime:&nbsp; &nbsp; &nbsp; &nbsp; 时间&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="datetime"/&gt;&nbsp; &nbsp; month:&nbsp; &nbsp; &nbsp; &nbsp; 月年&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="month"/&gt;&nbsp; &nbsp; week:&nbsp; &nbsp; &nbsp; &nbsp; 星期 年&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="week"/&gt;&nbsp; &nbsp; color:&nbsp; &nbsp; &nbsp; &nbsp; 颜色&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="color"/&gt;常用新属性:&nbsp; &nbsp; placeholder:&nbsp; &nbsp; &nbsp; &nbsp; 占位符提供可描述输入字段预期值的提示信息&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="text" placeholder="请输入用户名"/&gt;&nbsp; &nbsp; autofocus:&nbsp; &nbsp; &nbsp; &nbsp; 规定当页面加载时,input元素应该自动获得焦点&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="text" autofocus/&gt;&nbsp; &nbsp; multiple:&nbsp; &nbsp; &nbsp; &nbsp; 多文件上传&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="file" multiple/&gt;&nbsp; &nbsp; autocomplete:&nbsp; &nbsp; &nbsp; &nbsp; 规定表单是否应该启用自动完成功能,有2个值,一个是on一个是off,on代表记录已经输入的值&nbsp; &nbsp; &nbsp; &nbsp; 1.首先需要提交&nbsp; &nbsp; &nbsp; &nbsp; 2.表单必须输入信息&nbsp; &nbsp; &nbsp; &nbsp; 默认是on&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="text" autocomplete="off"/&gt;&nbsp; &nbsp; required:&nbsp; &nbsp; &nbsp; &nbsp; 必填项&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="text" required/&gt;&nbsp; &nbsp; accesskey:&nbsp; &nbsp; &nbsp; &nbsp; 规定激活(使元素获得焦点)元素的快捷键,采用alt+字母的形式&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="text" accesskey="s"/&gt;多媒体标签:&nbsp; &nbsp; 音频:&nbsp; &nbsp; &nbsp; &nbsp; &lt;audio src="background.mp3" autoplay controls loop="-1"&gt;&lt;/audio&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; autoplay:自动播放&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; controls:显示控件&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loop:播放次数,若等于-1,则为无限循环&nbsp; &nbsp; &nbsp; &nbsp; 格式转换:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 三种格式:ogg、mp3、wav&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;audio&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;source src="bgsound.mp3"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;source src="music.ogg"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/audio&gt;&nbsp; &nbsp; 视频:&nbsp; &nbsp; &nbsp; &nbsp; &lt;video src="hh,mp4" autoplay controls weight="100" height="50"&gt;&lt;/video&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 格式转换:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 三种格式:ogg、mp4、webM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;video&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;source src="hh.mp4"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;source src="movie.ogg"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/video&gt;</p><br><br>
来源:https://www.cnblogs.com/oldwangcy/p/11390700.html
頁: [1]
查看完整版本: html5