html常用标签及属性

html常用标签及属性

HTML中的标签及属性

HTML页面结构

标签描述
定义文档类型。
<html>定义 HTML 文档。
</td><td style="border-color: rgb(221, 221, 221);" width="438">定义文档的标题。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="372"><body></td><td style="border-color: rgb(221, 221, 221);" width="438">定义文档的主体。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="372"><h1> to <h6></td><td style="border-color: rgb(221, 221, 221);" width="438">定义 <a href="/tag-news-name-HTML-p-1.html">HTML</a> 标题。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="372"><p></td><td style="border-color: rgb(221, 221, 221);" width="438">定义段落。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="372"><br></td><td style="border-color: rgb(221, 221, 221);" width="438">定义简单的折行。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="372"><hr></td><td style="border-color: rgb(221, 221, 221);" width="438">定义水平线。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="372"><!--...--></td><td style="border-color: rgb(221, 221, 221);" width="438">定义注释。</td></tr></tbody></table><p><strong>表单</strong><br/></p><table width="811"><thead><tr class="firstRow"><th style="border-color: rgb(221, 221, 221);" width="254">标签</th><th style="border-color: rgb(221, 221, 221);" width="556">描述</th></tr></thead><tbody><tr><td style="border-color: rgb(221, 221, 221);" width="254"><form></td><td style="border-color: rgb(221, 221, 221);" width="556">定义供用户输入的 <a href="/tag-news-name-HTML-p-1.html">HTML</a> 表单。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="254"><input></td><td style="border-color: rgb(221, 221, 221);" width="556">定义输入控件。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="254"><textarea></td><td style="border-color: rgb(221, 221, 221);" width="556">定义多行的文本输入控件。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="254"><button></td><td style="border-color: rgb(221, 221, 221);" width="556">定义按钮。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="254"><select></td><td style="border-color: rgb(221, 221, 221);" width="556">定义选择列表(下拉列表)。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="254"><optgroup></td><td style="border-color: rgb(221, 221, 221);" width="556">定义选择列表中相关选项的组合。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="254"><option></td><td style="border-color: rgb(221, 221, 221);" width="556">定义选择列表中的选项。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="254"><label></td><td style="border-color: rgb(221, 221, 221);" width="556">定义 input 元素的标注。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="254"><fieldset></td><td style="border-color: rgb(221, 221, 221);" width="556">定义围绕表单中元素的边框。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="254"><legend></td><td style="border-color: rgb(221, 221, 221);" width="556">定义 fieldset 元素的标题。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="254"><datalist></td><td style="border-color: rgb(221, 221, 221);" width="556">定义下拉列表。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="254"><keygen></td><td style="border-color: rgb(221, 221, 221);" width="556">定义生成密钥。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="254"><output></td><td style="border-color: rgb(221, 221, 221);" width="556">定义输出的一些类型。</td></tr></tbody></table><p><strong>框架</strong></p><table width="811"><thead><tr class="firstRow"><th style="border-color: rgb(221, 221, 221);" width="225">标签</th><th style="border-color: rgb(221, 221, 221);" width="585">描述</th></tr></thead><tbody><tr><td style="border-color: rgb(221, 221, 221);" width="225"><frame></td><td style="border-color: rgb(221, 221, 221);" width="585">定义框架集的窗口或框架。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="225"><frameset></td><td style="border-color: rgb(221, 221, 221);" width="585">定义框架集。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="225"><noframes></td><td style="border-color: rgb(221, 221, 221);" width="585">定义针对不支持框架的用户的替代内容。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="225"><iframe></td><td style="border-color: rgb(221, 221, 221);" width="585">定义内联框架。</td></tr></tbody></table><p><strong>图像</strong></p><table width="811"><thead><tr class="firstRow"><th style="border-color: rgb(221, 221, 221);" width="232">标签</th><th style="border-color: rgb(221, 221, 221);" width="578">描述</th></tr></thead><tbody><tr><td style="border-color: rgb(221, 221, 221);" width="232"><img></td><td style="border-color: rgb(221, 221, 221);" width="578">定义图像。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="232"><map></td><td style="border-color: rgb(221, 221, 221);" width="578">定义图像映射。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="232"><area></td><td style="border-color: rgb(221, 221, 221);" width="578">定义图像地图内部的区域。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="232"><canvas></td><td style="border-color: rgb(221, 221, 221);" width="578">定义图形。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="232"><figcaption></td><td style="border-color: rgb(221, 221, 221);" width="578">定义 figure 元素的标题。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="232"><figure></td><td style="border-color: rgb(221, 221, 221);" width="578">定义媒介内容的分组,以及它们的标题。</td></tr></tbody></table><p><strong>链接</strong></p><table width="811"><thead><tr class="firstRow"><th style="border-color: rgb(221, 221, 221);" width="198">标签</th><th style="border-color: rgb(221, 221, 221);" width="612">描述</th></tr></thead><tbody><tr><td style="border-color: rgb(221, 221, 221);" width="198"><a></td><td style="border-color: rgb(221, 221, 221);" width="612">定义锚。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="198"><link></td><td style="border-color: rgb(221, 221, 221);" width="612">定义文档与外部资源的关系。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="198"><nav></td><td style="border-color: rgb(221, 221, 221);" width="612">定义导航链接。</td></tr></tbody></table><p><strong>列表</strong><br/></p><table width="811"><thead><tr class="firstRow"><th style="border-color: rgb(221, 221, 221);" width="208">标签</th><th style="border-color: rgb(221, 221, 221);" width="602">描述</th></tr></thead><tbody><tr><td style="border-color: rgb(221, 221, 221);" width="208"><ul></td><td style="border-color: rgb(221, 221, 221);" width="602">定义无序列表。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="208"><ol></td><td style="border-color: rgb(221, 221, 221);" width="602">定义有序列表。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="208"><li></td><td style="border-color: rgb(221, 221, 221);" width="602">定义列表的项目。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="208"><dir></td><td style="border-color: rgb(221, 221, 221);" width="602">不赞成使用。定义目录列表。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="208"><dl></td><td style="border-color: rgb(221, 221, 221);" width="602">定义定义列表。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="208"><dt></td><td style="border-color: rgb(221, 221, 221);" width="602">定义定义列表中的项目。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="208"><dd></td><td style="border-color: rgb(221, 221, 221);" width="602">定义定义列表中项目的描述。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="208"><menu></td><td style="border-color: rgb(221, 221, 221);" width="602">定义命令的菜单/列表。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="208"><menuitem></td><td style="border-color: rgb(221, 221, 221);" width="602">定义用户可以从弹出菜单调用的命令/菜单项目。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="208"><command></td><td style="border-color: rgb(221, 221, 221);" width="602">定义命令按钮。</td></tr></tbody></table><p><strong>表格</strong></p><table width="811"><thead><tr class="firstRow"><th style="border-color: rgb(221, 221, 221);" width="239">标签</th><th style="border-color: rgb(221, 221, 221);" width="571">描述</th></tr></thead><tbody><tr><td style="border-color: rgb(221, 221, 221);" width="239"><table></td><td style="border-color: rgb(221, 221, 221);" width="571">定义表格</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><caption></td><td style="border-color: rgb(221, 221, 221);" width="571">定义表格标题。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><th></td><td style="border-color: rgb(221, 221, 221);" width="571">定义表格中的表头单元格。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><tr></td><td style="border-color: rgb(221, 221, 221);" width="571">定义表格中的行。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><td></td><td style="border-color: rgb(221, 221, 221);" width="571">定义表格中的单元。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><thead></td><td style="border-color: rgb(221, 221, 221);" width="571">定义表格中的表头内容。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><tbody></td><td style="border-color: rgb(221, 221, 221);" width="571">定义表格中的主体内容。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><tfoot></td><td style="border-color: rgb(221, 221, 221);" width="571">定义表格中的表注内容(脚注)。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><col></td><td style="border-color: rgb(221, 221, 221);" width="571">定义表格中一个或多个列的属性值。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><colgroup></td><td style="border-color: rgb(221, 221, 221);" width="571">定义表格中供格式化的列组。</td></tr></tbody></table><p><strong>样式/节</strong></p><table width="811"><thead><tr class="firstRow"><th style="border-color: rgb(221, 221, 221);" width="239">标签</th><th style="border-color: rgb(221, 221, 221);" width="571">描述</th></tr></thead><tbody><tr><td style="border-color: rgb(221, 221, 221);" width="239"><style></td><td style="border-color: rgb(221, 221, 221);" width="571">定义文档的样式信息。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><div></td><td style="border-color: rgb(221, 221, 221);" width="571">定义文档中的节。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><span></td><td style="border-color: rgb(221, 221, 221);" width="571">定义文档中的节。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><header></td><td style="border-color: rgb(221, 221, 221);" width="571">定义 section 或 page 的页眉。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><footer></td><td style="border-color: rgb(221, 221, 221);" width="571">定义 section 或 page 的页脚。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><section></td><td style="border-color: rgb(221, 221, 221);" width="571">定义 section。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><article></td><td style="border-color: rgb(221, 221, 221);" width="571">定义文章。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><aside></td><td style="border-color: rgb(221, 221, 221);" width="571">定义页面内容之外的内容。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><details></td><td style="border-color: rgb(221, 221, 221);" width="571">定义元素的细节。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><dialog></td><td style="border-color: rgb(221, 221, 221);" width="571">定义对话框或窗口。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"><summary></td><td style="border-color: rgb(221, 221, 221);" width="571">为 <details> 元素定义可见的标题。</td></tr></tbody></table><p><strong>员信息</strong></p><table width="811"><thead><tr class="firstRow"><th style="border-color: rgb(221, 221, 221);" width="173">标签</th><th style="border-color: rgb(221, 221, 221);" width="637">描述</th></tr></thead><tbody><tr><td style="border-color: rgb(221, 221, 221);" width="173"><head></td><td style="border-color: rgb(221, 221, 221);" width="637">定义关于文档的信息。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="173"><meta></td><td style="border-color: rgb(221, 221, 221);" width="637">定义关于 <a href="/tag-news-name-HTML-p-1.html">HTML</a> 文档的元信息。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="173"><base></td><td style="border-color: rgb(221, 221, 221);" width="637">定义页面中所有链接的默认地址或默认目标。</td></tr><tr><td style="border-color: rgb(221, 221, 221);" width="173"><basefont></td><td style="border-color: rgb(221, 221, 221);" width="637">不赞成使用。定义页面中文本的默认字体、颜色或尺寸。</td></tr></tbody></table><strong>属性</strong><table width="778" style="width: 811px;"><thead><tr class="header firstRow"><th style="border-color: rgb(221, 221, 221);" width="105">属性名</th><th style="border-color: rgb(221, 221, 221);" width="107">英文</th><th style="border-color: rgb(221, 221, 221);" width="218">英文含义</th><th style="border-color: rgb(221, 221, 221);" width="193">取值</th><th style="border-color: rgb(221, 221, 221);" width="169">应用场景</th></tr></thead><tbody><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">src</td><td style="border-color: rgb(221, 221, 221);" width="107">SouRCe</td><td style="border-color: rgb(221, 221, 221);" width="218">资源位置</td><td style="border-color: rgb(221, 221, 221);" width="193">资源的路径</td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">border</td><td style="border-color: rgb(221, 221, 221);" width="107">border</td><td style="border-color: rgb(221, 221, 221);" width="218">边框</td><td style="border-color: rgb(221, 221, 221);" width="193">数字(像素)</td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">size</td><td style="border-color: rgb(221, 221, 221);" width="107">size</td><td style="border-color: rgb(221, 221, 221);" width="218">尺寸</td><td style="border-color: rgb(221, 221, 221);" width="193">数字(像素)</td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">width</td><td style="border-color: rgb(221, 221, 221);" width="107">width</td><td style="border-color: rgb(221, 221, 221);" width="218">宽度</td><td style="border-color: rgb(221, 221, 221);" width="193">数字(像素)</td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">height</td><td style="border-color: rgb(221, 221, 221);" width="107">height</td><td style="border-color: rgb(221, 221, 221);" width="218">高度</td><td style="border-color: rgb(221, 221, 221);" width="193">数字(像素)</td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">bgcolor</td><td style="border-color: rgb(221, 221, 221);" width="107">BackGround COLOR</td><td style="border-color: rgb(221, 221, 221);" width="218">背景颜色</td><td style="border-color: rgb(221, 221, 221);" width="193">颜色值:rea或#ffffff</td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">background</td><td style="border-color: rgb(221, 221, 221);" width="107">background</td><td style="border-color: rgb(221, 221, 221);" width="218">背景图片</td><td style="border-color: rgb(221, 221, 221);" width="193">图片路径</td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">list-style</td><td style="border-color: rgb(221, 221, 221);" width="107">list-style</td><td style="border-color: rgb(221, 221, 221);" width="218">设置列表的所有属性</td><td style="border-color: rgb(221, 221, 221);" width="193"><br/></td><td style="border-color: rgb(221, 221, 221);" width="169">列表</td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">list-style-image</td><td style="border-color: rgb(221, 221, 221);" width="107">list-style-image</td><td style="border-color: rgb(221, 221, 221);" width="218">将图像设置为列表项标记</td><td style="border-color: rgb(221, 221, 221);" width="193">None<br/>url</td><td style="border-color: rgb(221, 221, 221);" width="169">列表</td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">list-style-type</td><td style="border-color: rgb(221, 221, 221);" width="107">list-style-type</td><td style="border-color: rgb(221, 221, 221);" width="218">设置列表项标记的类型</td><td style="border-color: rgb(221, 221, 221);" width="193">Disc(实心圆)<br/>Cirle(空心圆)<br/>Square(实心方块)</td><td style="border-color: rgb(221, 221, 221);" width="169">列表</td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">line-height</td><td style="border-color: rgb(221, 221, 221);" width="107">line-height</td><td style="border-color: rgb(221, 221, 221);" width="218">行高(行间距)</td><td style="border-color: rgb(221, 221, 221);" width="193">数字(像素)</td><td style="border-color: rgb(221, 221, 221);" width="169">布局多行文本</td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">text-align</td><td style="border-color: rgb(221, 221, 221);" width="107">text-align</td><td style="border-color: rgb(221, 221, 221);" width="218">对齐方式</td><td style="border-color: rgb(221, 221, 221);" width="193">Left、right、center</td><td style="border-color: rgb(221, 221, 221);" width="169">各种元素对齐</td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">letter-spacing</td><td style="border-color: rgb(221, 221, 221);" width="107">letter-spacing</td><td style="border-color: rgb(221, 221, 221);" width="218">字符间距</td><td style="border-color: rgb(221, 221, 221);" width="193">数字(像素)</td><td style="border-color: rgb(221, 221, 221);" width="169">加大字符间间隔</td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">text-decoration</td><td style="border-color: rgb(221, 221, 221);" width="107">text-decoration</td><td style="border-color: rgb(221, 221, 221);" width="218">文本修饰</td><td style="border-color: rgb(221, 221, 221);" width="193">Underline、none</td><td style="border-color: rgb(221, 221, 221);" width="169">加下划线、中划线等</td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">margin-top<br/>(right、bottom、left)</td><td style="border-color: rgb(221, 221, 221);" width="107"><br/></td><td style="border-color: rgb(221, 221, 221);" width="218">外边距</td><td style="border-color: rgb(221, 221, 221);" width="193">数字(像素)</td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">padding-top<br/>(right、bottom、left)</td><td style="border-color: rgb(221, 221, 221);" width="107"><br/></td><td style="border-color: rgb(221, 221, 221);" width="218">内边距</td><td style="border-color: rgb(221, 221, 221);" width="193">数字(像素)</td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">display</td><td style="border-color: rgb(221, 221, 221);" width="107">display</td><td style="border-color: rgb(221, 221, 221);" width="218">改变块级元素与行内元素的默认显示方式</td><td style="border-color: rgb(221, 221, 221);" width="193">block(行变块)<br/>inline(块变行)<br/>none(该元素不显示在网页中)</td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">position</td><td style="border-color: rgb(221, 221, 221);" width="107">position</td><td style="border-color: rgb(221, 221, 221);" width="218">定位</td><td style="border-color: rgb(221, 221, 221);" width="193">static(静态定位)<br/>relative(相对定位)<br/>absolute(绝对定位)<br/>fixed(固定定位)</td><td style="border-color: rgb(221, 221, 221);" width="169">用于定位</td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">float</td><td style="border-color: rgb(221, 221, 221);" width="107">float</td><td style="border-color: rgb(221, 221, 221);" width="218">浮动</td><td style="border-color: rgb(221, 221, 221);" width="193">None、left、right</td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">clear</td><td style="border-color: rgb(221, 221, 221);" width="107">clear</td><td style="border-color: rgb(221, 221, 221);" width="218">处理浮动塌陷</td><td style="border-color: rgb(221, 221, 221);" width="193">left(清除左边浮动)<br/>right(清除右边浮动)<br/>both(清除两边浮动)<br/>none(不清除浮动)</td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">type</td><td style="border-color: rgb(221, 221, 221);" width="107">type</td><td style="border-color: rgb(221, 221, 221);" width="218">列表类型</td><td style="border-color: rgb(221, 221, 221);" width="193">Disc(实心圆)<br/>Cirle(空心圆)<br/>Square(实心方块)</td><td style="border-color: rgb(221, 221, 221);" width="169">用于列表</td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">align</td><td style="border-color: rgb(221, 221, 221);" width="107">align</td><td style="border-color: rgb(221, 221, 221);" width="218">对齐</td><td style="border-color: rgb(221, 221, 221);" width="193">Left、right、center<br/>top、middle、bottom</td><td style="border-color: rgb(221, 221, 221);" width="169">段落内容水平对齐文字与图片垂直对齐</td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">type</td><td style="border-color: rgb(221, 221, 221);" width="107">type</td><td style="border-color: rgb(221, 221, 221);" width="218">表单元素类型</td><td style="border-color: rgb(221, 221, 221);" width="193">text(文本)<br/>checkbox(复选)<br/>radio(单选)<br/>password(密码)<br/>file(文件)<br/>submit(提交)<br/>reset(重置)<br/>button(按钮)<br/>image(图片按钮)<br/>hidden(隐藏)<br/></td><td style="border-color: rgb(221, 221, 221);" width="169">表单元素</td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">method</td><td style="border-color: rgb(221, 221, 221);" width="107">method</td><td style="border-color: rgb(221, 221, 221);" width="218">表单数据的提交方式</td><td style="border-color: rgb(221, 221, 221);" width="193">get<br/>post</td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">alt</td><td style="border-color: rgb(221, 221, 221);" width="107">alter</td><td style="border-color: rgb(221, 221, 221);" width="218">改变、替换(图片不显示时提示信息)</td><td style="border-color: rgb(221, 221, 221);" width="193"><br/></td><td style="border-color: rgb(221, 221, 221);" width="169">图片</td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">cellpadding</td><td style="border-color: rgb(221, 221, 221);" width="107">cell padding</td><td style="border-color: rgb(221, 221, 221);" width="218">单元格内边距</td><td style="border-color: rgb(221, 221, 221);" width="193">数字</td><td style="border-color: rgb(221, 221, 221);" width="169">表格</td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">cellspacing</td><td style="border-color: rgb(221, 221, 221);" width="107">cell spacing</td><td style="border-color: rgb(221, 221, 221);" width="218">单元格之间距离</td><td style="border-color: rgb(221, 221, 221);" width="193">数字</td><td style="border-color: rgb(221, 221, 221);" width="169">表格</td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">href</td><td style="border-color: rgb(221, 221, 221);" width="107">Hypertext REFerence</td><td style="border-color: rgb(221, 221, 221);" width="218">超文本引用(跳转到文件位置)</td><td style="border-color: rgb(221, 221, 221);" width="193"><br/></td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">rel</td><td style="border-color: rgb(221, 221, 221);" width="107">RELationship</td><td style="border-color: rgb(221, 221, 221);" width="218">关系(用于定义链接的文件和<a href="/tag-news-name-HTML-p-1.html">HTML</a>文档之间的关系)</td><td style="border-color: rgb(221, 221, 221);" width="193">StyleSheet样式表</td><td style="border-color: rgb(221, 221, 221);" width="169">link链接一个文件时</td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">target</td><td style="border-color: rgb(221, 221, 221);" width="107">target</td><td style="border-color: rgb(221, 221, 221);" width="218">目标(网页打开的位置)</td><td style="border-color: rgb(221, 221, 221);" width="193">_blank(新窗口打开)<br/>_self(自身窗口打开)<br/>_top(以整个浏览器作业作为窗口显示新页面)<br/>_parent(在父窗口中打开新的页面)</td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">colspan</td><td style="border-color: rgb(221, 221, 221);" width="107">COLumn span</td><td style="border-color: rgb(221, 221, 221);" width="218">单元格跨列</td><td style="border-color: rgb(221, 221, 221);" width="193">数字(跨的列数)</td><td style="border-color: rgb(221, 221, 221);" width="169">表格</td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">rowspan</td><td style="border-color: rgb(221, 221, 221);" width="107">row span</td><td style="border-color: rgb(221, 221, 221);" width="218">单元格跨行</td><td style="border-color: rgb(221, 221, 221);" width="193">数字(跨的行数)</td><td style="border-color: rgb(221, 221, 221);" width="169">表格</td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">readonly</td><td style="border-color: rgb(221, 221, 221);" width="107">read only</td><td style="border-color: rgb(221, 221, 221);" width="218">只读</td><td style="border-color: rgb(221, 221, 221);" width="193"><br/></td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">value</td><td style="border-color: rgb(221, 221, 221);" width="107">value</td><td style="border-color: rgb(221, 221, 221);" width="218">输入框的初始值</td><td style="border-color: rgb(221, 221, 221);" width="193"><br/></td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">maxlength</td><td style="border-color: rgb(221, 221, 221);" width="107">max length</td><td style="border-color: rgb(221, 221, 221);" width="218">最大长度</td><td style="border-color: rgb(221, 221, 221);" width="193"><br/></td><td style="border-color: rgb(221, 221, 221);" width="169"><br/></td></tr><tr class="even"><td style="border-color: rgb(221, 221, 221);" width="105">scrolldelay</td><td style="border-color: rgb(221, 221, 221);" width="107">scroll delay</td><td style="border-color: rgb(221, 221, 221);" width="218">滚动延时</td><td style="border-color: rgb(221, 221, 221);" width="193"><br/></td><td style="border-color: rgb(221, 221, 221);" width="169">< m arquee></td></tr><tr class="odd"><td style="border-color: rgb(221, 221, 221);" width="105">direction</td><td style="border-color: rgb(221, 221, 221);" width="107">direction</td><td style="border-color: rgb(221, 221, 221);" width="218">方向(滚动方向)</td><td style="border-color: rgb(221, 221, 221);" width="193"><br/></td><td style="border-color: rgb(221, 221, 221);" width="169">< m arquee</td></tr></tbody></table><h2 id="选择器"><br/><br/></h2><p>以上就是<a href="/tag-news-name-html-p-1.html">html</a>常用标签及属性的详细内容,更多请关注https://www.sxiaw.com/其它相关文章!</p></span> </div> </article> <aside class="swnetnews"> <div class="lis"> <span><i>推荐内容</i></span> <ul> <li><a href="/doc/3620.html" title="有关xml节点的文章推荐10篇" target="_blank">有关xml节点的文章推荐10篇</a></li><li><a href="/doc/7310.html" title="vscode如何设置tab键大小" target="_blank">vscode如何设置tab键大小</a></li><li><a href="/doc/10578.html" title="windows操作系统的特点包括什么" target="_blank">windows操作系统的特点包括什么</a></li><li><a href="/doc/10405.html" title="win10电脑的重启快捷键是什么" target="_blank">win10电脑的重启快捷键是什么</a></li><li><a href="/doc/2211.html" title="phpstudy如何修改根目录" target="_blank">phpstudy如何修改根目录</a></li><li><a href="/doc/9682.html" title="在win10中禁用光驱的简单教程" target="_blank">在win10中禁用光驱的简单教程</a></li><li><a href="/doc/9637.html" title="手机淘宝中更改主题皮肤的图文教程" target="_blank">手机淘宝中更改主题皮肤的图文教程</a></li><li><a href="/doc/5097.html" title="vscode如何实现缩放界面" target="_blank">vscode如何实现缩放界面</a></li><li><a href="/doc/4772.html" title="vside和vscode的区别是什么?" target="_blank">vside和vscode的区别是什么?</a></li><li><a href="/doc/9047.html" title="什么功能需要使用redis" target="_blank">什么功能需要使用redis</a></li> </ul> </div> </aside> </main> <script> // first, find all the div.code blocks document.querySelectorAll('pre').forEach(el => { // then highlight each hljs.highlightElement(el); hljs.lineNumbersBlock(el); }); </script> <link rel="stylesheet" type="text/css" href="/kan/css/basezb.css"> <script type="text/javascript" src="/kan/js/read.js"></script> <div style="display:none"> <div class="login-box" id="login-dialog"> <div class="login-top"><a rel="nofollow" id="login1" onclick="setTab('login',1,2);" >登录</a></div> <div class="login-form" id="nav-signin"> <!-- <div class="login-ico"><a rel="nofollow" class="qq" id="qqlogin" target="_blank" href="/user-center-qqlogin.html"> QQ </a></div> --> <div class="login-box-form" id="con_login_1"> <form id="loginform" action="/user-center-login.html" method="post" onsubmit="return false;"> <p class="int-text"> <input class="email" id="username" name="username" type="text" value="用户名或Email" onfocus="if(this.value=='用户名或Email'){this.value='';}" onblur="if(this.value==''){this.value='用户名或Email';};" ></p> <p class="int-text"> <input class="password1" type="password" id="password" name="password" value="******" onBlur="if(this.value=='') this.value='******';" onFocus="if(this.value=='******') this.value='';" > </p> <p class="int-info"> <label class="ui-label"> </label> <label for="agreement" class="ui-label-checkbox"> <input type="checkbox" value="" name="cookietime" id="cookietime" checked="checked" value="2592000"> <input type="hidden" name="notforward" id="notforward" value="1"> <input type="hidden" name="dosubmit" id="dosubmit" value="1">记住我的登录 </label> <a rel="nofollow" class="aright" href="/user-center-forgetpwd.html" target="_blank"> 忘记密码? </a></p> <p class="int-btn"><a rel="nofollow" id="loginbt" class="loginbtn"><span>登录</span></a></p> </form> </div> </div> </div> </div> </div> <script type="text/javascript" src="/kan/js/foot_js.js"></script> <div id="footer"> <div class="w1200"> <p class="tips_text">本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。</p> <p class="tips_text">Copyright © 2004-2018 https://www.sxiaw.com/. All Rights Reserved.<script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?fa236be8ec7680639fbd4ee307fd0c69"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <a href="http://beian.miit.gov.cn/" target="_blank">津ICP备2023001793号-1</a></p> </div> </div> </body> </html>