首页  >  文章  >  web前端  >  html常用标签及属性

html常用标签及属性

尚
原创
2019-10-22 15:23:378434浏览

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">定义 HTML 标题。</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">定义供用户输入的 HTML 表单。</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">定义关于 HTML 文档的元信息。</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> <div><div id="cnblogs_post_body"> <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">关系(用于定义链接的文件和HTML文档之间的关系)</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> </div></div><p>以上是html常用标签及属性的详细内容。更多信息请关注PHP中文网其他相关文章!</p></div><div class="nphpQianMsg"><div class="clear"></div></div><div class="nphpQianSheng"><span>声明:</span><div>本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn</div></div></div><div class="nphpSytBox"><span>上一篇:<a class="dBlack" title="HTML 的<title> 标签" href="http://m.php.cn/zh/faq/432813.html">HTML 的<title> 标签</a></span><span>下一篇:<a class="dBlack" title="什么是 HTML5?" href="http://m.php.cn/zh/faq/432948.html">什么是 HTML5?</a></span></div><div class="nphpSytBox2"><div class="nphpZbktTitle"><h2>相关文章</h2><em><a href="http://m.php.cn/zh/article.html" class="bBlack"><i>查看更多</i><b></b></a></em><div class="clear"></div></div><ul class="nphpXgwzList"><li><b></b><a href="http://m.php.cn/zh/faq/432627.html" title="html与php有什么区别" class="aBlack">html与php有什么区别</a><div class="clear"></div></li><li><b></b><a href="http://m.php.cn/zh/faq/432629.html" title="html中php怎么执行" class="aBlack">html中php怎么执行</a><div class="clear"></div></li><li><b></b><a href="http://m.php.cn/zh/faq/432666.html" title="html与php一样吗?" class="aBlack">html与php一样吗?</a><div class="clear"></div></li><li><b></b><a href="http://m.php.cn/zh/faq/432765.html" title="html怎么调用php" class="aBlack">html怎么调用php</a><div class="clear"></div></li></ul></div></div><div class="nphpFoot"><div class="nphpFootBg"><ul class="nphpFootMenu"><li><a href="http://m.php.cn/zh/"><b class="icon1"></b><p>首页</p></a></li><li><a href="http://m.php.cn/zh/course.html"><b class="icon2"></b><p>课程</p></a></li><li><a href="http://m.php.cn/zh/wenda.html"><b class="icon4"></b><p>问答</p></a></li><li><a href="http://m.php.cn/zh/login"><b class="icon5"></b><p>我的</p></a></li><div class="clear"></div></ul></div></div><div class="nphpYouBox" style="display: none;"><div class="nphpYouBg"><div class="nphpYouTitle"><span onclick="$('.nphpYouBox').hide()"></span><a href="http://m.php.cn/zh/"></a><div class="clear"></div></div><ul class="nphpYouList"><li><a href="http://m.php.cn/zh/"><b class="icon1"></b><span>首页</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/zh/course.html"><b class="icon2"></b><span>课程</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/zh/article.html"><b class="icon3"></b><span>文章</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/zh/wenda.html"><b class="icon4"></b><span>问答</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/zh/dic.html"><b class="icon6"></b><span>词典</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/zh/course/type/99.html"><b class="icon7"></b><span>手册</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/zh/xiazai/"><b class="icon8"></b><span>下载</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/zh/faq/zt" title="专题"><b class="icon12"></b><span>专题</span><div class="clear"></div></a></li><div class="clear"></div></ul></div></div><div class="nphpDing" style="display: none;"><div class="nphpDinglogo"><a href="http://m.php.cn/zh/"></a></div><div class="nphpNavIn1"><div class="swiper-container nphpNavSwiper1"><div class="swiper-wrapper"><div class="swiper-slide"><a href="http://m.php.cn/zh/" >首页</a></div><div class="swiper-slide"><a href="http://m.php.cn/zh/article.html" class="hover">文章</a></div><div class="swiper-slide"><a href="http://m.php.cn/zh/wenda.html" >问答</a></div><div class="swiper-slide"><a href="http://m.php.cn/zh/course.html" >课程</a></div><div class="swiper-slide"><a href="http://m.php.cn/zh/faq/zt" >专题</a></div><div class="swiper-slide"><a href="http://m.php.cn/zh/xiazai" >下载</a></div><div class="swiper-slide"><a href="http://m.php.cn/zh/game" >手游</a></div><div class="swiper-slide"><a href="http://m.php.cn/zh/dic.html" >词典</a></div><div class="clear"></div></div></div><div class="langadivs" ><a href="javascript:;" class="bg4 bglanguage"></a><div class="langadiv" ><a onclick="javascript:setlang('zh-cn');" class="language course-right-orders chooselan " href="javascript:;"><span>简体中文</span><span>(ZH-CN)</span></a><a onclick="javascript:setlang('en');" class="language course-right-orders chooselan " href="javascript:;"><span>English</span><span>(EN)</span></a><a onclick="javascript:setlang('zh-tw');" class="language course-right-orders chooselan " href="javascript:;"><span>繁体中文</span><span>(ZH-TW)</span></a><a onclick="javascript:setlang('ja');" class="language course-right-orders chooselan " href="javascript:;"><span>日本語</span><span>(JA)</span></a><a onclick="javascript:setlang('ko');" class="language course-right-orders chooselan " href="javascript:;"><span>한국어</span><span>(KO)</span></a><a onclick="javascript:setlang('ms');" class="language course-right-orders chooselan " href="javascript:;"><span>Melayu</span><span>(MS)</span></a><a onclick="javascript:setlang('fr');" class="language course-right-orders chooselan " href="javascript:;"><span>Français</span><span>(FR)</span></a><a onclick="javascript:setlang('de');" class="language course-right-orders chooselan " href="javascript:;"><span>Deutsch</span><span>(DE)</span></a></div></div><script> var swiper = new Swiper('.nphpNavSwiper1', { slidesPerView : 'auto', observer: true,//修改swiper自己或子元素时,自动初始化swiper observeParents: true,//修改swiper的父元素时,自动初始化swiper }); </script></div></div><!--顶部导航 end--><script>isLogin = 0;</script><script type="text/javascript" src="/static/layui/layui.js"></script><script type="text/javascript" src="/static/js/global.js?4.9.47"></script></div><script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script><link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css' type='text/css' media='all'/><script type='text/javascript' src='/static/js/viewer.min.js?1'></script><script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script><script>jQuery.fn.wait = function (func, times, interval) { var _times = times || -1, //100次 _interval = interval || 20, //20毫秒每次 _self = this, _selector = this.selector, //选择器 _iIntervalID; //定时器id if( this.length ){ //如果已经获取到了,就直接执行函数 func && func.call(this); } else { _iIntervalID = setInterval(function() { if(!_times) { //是0就退出 clearInterval(_iIntervalID); } _times <= 0 || _times--; //如果是正数就 -- _self = $(_selector); //再次选择 if( _self.length ) { //判断是否取到 func && func.call(_self); clearInterval(_iIntervalID); } }, _interval); } return this; } $("table.syntaxhighlighter").wait(function() { $('table.syntaxhighlighter').append("<p class='cnblogs_code_footer'><span class='cnblogs_code_footer_icon'></span></p>"); }); $(document).on("click", ".cnblogs_code_footer",function(){ $(this).parents('table.syntaxhighlighter').css('display','inline-table');$(this).hide(); }); $('.nphpQianCont').viewer({navbar:true,title:false,toolbar:false,movable:false,viewed:function(){$('img').click(function(){$('.viewer-close').trigger('click');});}}); </script></body></html>