当前位置:Gxlcms > html代码 > HTML标记一览表及用法说明_HTML/Xhtml_网页制作

HTML标记一览表及用法说明_HTML/Xhtml_网页制作

时间:2021-07-01 10:21:17 帮助过:33人阅读

HTML标记一览表

标记 类型 名称或意义 作用 备注
文件标记
文件宣告 让浏览器知道这是 HTML 文件
开头 提供文件整体信息
</td> <td>●</td> <td>标题</td> <td>定义文件标题,将显示于浏览器顶端</td> <td> </td> </tr> <tr> <td><BODY></td> <td>●</td> <td>主体</td> <td>设计文件格式及内容所在</td> <td> </td> </tr> <tr> <td colspan="5"><strong>排版标记</strong></td> </tr> <tr> <td><!--注解--></td> <td>○</td> <td>说明标记</td> <td>为文件加上说明,但不被显示</td> <td> </td> </tr> <tr> <td><P></td> <td>○</td> <td>段落标记</td> <td>为字、图、表格等之间留下一空白行</td> <td> </td> </tr> <tr> <td><BR></td> <td>○</td> <td>换行标记</td> <td>令字、图、表格显示于下一行</td> <td> </td> </tr> <tr> <td><HR></td> <td>○</td> <td>水平线</td> <td>插入一水平线</td> <td> </td> </tr> <tr> <td><CENTER></td> <td>●</td> <td>居中</td> <td>令字、图、表格等显示于中间</td> <td>反对</td> </tr> <tr> <td><PRE></td> <td>●</td> <td>预设格式</td> <td>令文件按原代码的排列方式显示</td> <td> </td> </tr> <tr> <td><DIV></td> <td>●</td> <td>定位标记</td> <td>设定字、图、表格等的摆放位置</td> <td> </td> </tr> <tr> <td><NOBR></td> <td>●</td> <td>不换行</td> <td>令文字不因太长而换行</td> <td> </td> </tr> <tr> <td><WBR></td> <td>●</td> <td>建议换行</td> <td>预设换行部位</td> <td> </td> </tr> <tr> <td colspan="5">字体标记</td> </tr> <tr> <td><STRONG></td> <td>●</td> <td>加重语气</td> <td>产生字体加粗 Bold 的效果</td> <td> </td> </tr> <tr> <td><B></td> <td>●</td> <td>粗体标记</td> <td>产生字体加粗的效果</td> <td> </td> </tr> <tr> <td><EM></td> <td>●</td> <td>强调标记</td> <td>字体出现斜体效果</td> <td> </td> </tr> <tr> <td><I></td> <td>●</td> <td>斜体标记</td> <td>字体出现斜体效果</td> <td> </td> </tr> <tr> <td><TT></td> <td>●</td> <td>等宽字体</td> <td>Courier字体,字母宽度相同</td> <td> </td> </tr> <tr> <td><U></td> <td>●</td> <td>加下划线</td> <td>加下划线</td> <td>反对</td> </tr> <tr> <td><H1></td> <td>●</td> <td>一级标题标记</td> <td>将字体变大,级数越高越小</td> <td> </td> </tr> <tr> <td><H2></td> <td>●</td> <td>二级标题标记</td> <td>将字体变大</td> <td> </td> </tr> <tr> <td><H3></td> <td>●</td> <td>三级标题标记</td> <td>将字体变大</td> <td> </td> </tr> <tr> <td><H4></td> <td>●</td> <td>四级标题标记</td> <td>将字体变大</td> <td> </td> </tr> <tr> <td><H5></td> <td>●</td> <td>五级标题标记</td> <td>将字体变大</td> <td> </td> </tr> <tr> <td><H6></td> <td>●</td> <td>六级标题标记</td> <td>将字体变大</td> <td> </td> </tr> <tr> <td><FONT></td> <td>●</td> <td>字体标记</td> <td>设定字体、大小、颜色</td> <td>反对</td> </tr> <tr> <td><BASEFONT></td> <td>○</td> <td>基准字体标记</td> <td>设定所有字体、大小、颜色</td> <td>反对</td> </tr> <tr> <td><BIG></td> <td>●</td> <td>字体加大</td> <td>令字体稍微变大</td> <td> </td> </tr> <tr> <td><SMALL></td> <td>●</td> <td>字体缩小</td> <td>令字体稍微缩小</td> <td> </td> </tr> <tr> <td><STRIKE></td> <td>●</td> <td>加删除线</td> <td>为文字加删除线</td> <td>反对</td> </tr> <tr> <td><CODE></td> <td>●</td> <td>程式码</td> <td>字体稍微加宽如<TT></td> <td> </td> </tr> <tr> <td><KBD></td> <td>●</td> <td>键盘字</td> <td>字体稍微加宽,单一空白</td> <td> </td> </tr> <tr> <td><SAMP></td> <td>●</td> <td>范例</td> <td>字w稍榧如<TT></td> <td> </td> </tr> <tr> <td><VAR></td> <td>●</td> <td>变量</td> <td>斜体效果</td> <td> </td> </tr> <tr> <td><CITE></td> <td>●</td> <td>斜体标记</td> <td>斜体效果</td> <td> </td> </tr> <tr> <td><BLOCKQUOTE></td> <td>●</td> <td>向右缩排</td> <td>文字向右缩排</td> <td> </td> </tr> <tr> <td><DFN></td> <td>●</td> <td>述语定义</td> <td>斜体效果</td> <td> </td> </tr> <tr> <td></td> <td>●</td> <td>地址标记</td> <td>斜体效果</td> <td> </td> </tr> <tr> <td><SUB></td> <td>●</td> <td>下标字</td> <td>文字下标</td> <td> </td> </tr> <tr> <td><SUP></td> <td>●</td> <td>上标字</td> <td>文字上标</td> <td> </td> </tr> <tr> <td colspan="5"><strong>清单标记</strong></td> </tr> <tr> <td><OL></td> <td>●</td> <td>顺序清单</td> <td>清单项目将以数字、字母顺序排列</td> <td> </td> </tr> <tr> <td><UL></td> <td>●</td> <td>无序清单</td> <td>清单项目将以实心圆点作为符号排列</td> <td> </td> </tr> <tr> <td><LI></td> <td>○</td> <td>清单项目</td> <td>清单中的项目,一个标记一行</td> <td> </td> </tr> <tr> <td><MENU></td> <td>●</td> <td>选项清单</td> <td>可用type参数指定项目符号。</td> <td>反对</td> </tr> <tr> <td><DIR></td> <td>●</td> <td>目录清单</td> <td>与<menu>相同</td> <td>反对</td> </tr> <tr> <td><DL></td> <td>●</td> <td>定义清单</td> <td>清单分两层出现</td> <td> </td> </tr> <tr> <td><DT></td> <td>○</td> <td>定义条目</td> <td>清单项标题</td> <td> </td> </tr> <tr> <td><DD></td> <td>○</td> <td>定义内容</td> <td>清单项内容</td> <td> </td> </tr> <tr> <td colspan="5"><strong>表格标记</strong></td> </tr> <tr> <td><TABLE></td> <td>●</td> <td>表格标记</td> <td>设定该表格的各项参数</td> <td> </td> </tr> <tr> <td><CAPTION></td> <td>●</td> <td>表格标题</td> <td>做成一打通列以填入表格标题</td> <td> </td> </tr> <tr> <td><TR></td> <td>●</td> <td>表格列</td> <td>设定该表格的列</td> <td> </td> </tr> <tr> <td><TD></td> <td>●</td> <td>表格栏</td> <td>设定该表格的栏</td> <td> </td> </tr> <tr> <td><TH></td> <td>●</td> <td>表格标头</td> <td>相等于<TD>,但其内文字字体会变粗</td> <td> </td> </tr> <tr> <td colspan="5"><strong>表单标记</strong></td> </tr> <tr> <td><FORM></td> <td>●</td> <td>表单标记</td> <td>决定该表单的运作模式</td> <td> </td> </tr> <tr> <td><TEXTAREA></td> <td>●</td> <td>文字框</td> <td>提供文字输入栏</td> <td> </td> </tr> <tr> <td><INPUT></td> <td>○</td> <td>输入标记</td> <td>决定输入形式</td> <td> </td> </tr> <tr> <td><SELECT></td> <td>●</td> <td>选择标记</td> <td>建立弹出卷动清单</td> <td> </td> </tr> <tr> <td><OPTION></td> <td>○</td> <td>选项</td> <td>每一个清单选项</td> <td> </td> </tr> <tr> <td colspan="5"><strong>图形标记</strong></td> </tr> <tr> <td><IMG></td> <td>○</td> <td>图形标记</td> <td>用来插入图形及设定图形属性</td> <td> </td> </tr> <tr> <td colspan="5"><strong>链接标记</strong></td> </tr> <tr> <td></td> <td>●</td> <td>链接标记</td> <td>加入链接</td> <td> </td> </tr> <tr> <td><BASE></td> <td>○</td> <td>基准标记</td> <td>可将相对 URL 转绝对及指定链接</td> <td> </td> </tr> <tr> <td colspan="5"><strong>框架标记</strong></td> </tr> <tr> <td><FRAMESET></td> <td>●</td> <td>框架设定</td> <td>设定框架</td> <td> </td> </tr> <tr> <td><FRAME></td> <td>○</td> <td>窗口设定</td> <td>设定框架中的窗口</td> <td> </td> </tr> <tr> <td><IFRAME></td> <td>○</td> <td>页内框架</td> <td>于网页中插入框架</td> <td>IE</td> </tr> <tr> <td><NOFRAMES></td> <td>●</td> <td>不支持框架</td> <td>设定浏览器不支持框架时的提示</td> <td> </td> </tr> <tr> <td colspan="5"><strong>影像地图</strong></td> </tr> <tr> <td><MAP></td> <td>●</td> <td>影像地图名称</td> <td>设定影像地图名称</td> <td> </td> </tr> <tr> <td></td> <td>○</td> <td>链接区域</td> <td>设定各链接区域</td> <td> </td> </tr> <tr> <td colspan="5"><strong>多媒体</strong></td> </tr> <tr> <td><BGSOUND></td> <td>○</td> <td>背景声音</td> <td>令背景播放音乐或声音</td> <td>IE</td> </tr> <tr> <td><EMBED></td> <td>○</td> <td>多媒体</td> <td>加入声音、音乐或影像</td> <td> </td> </tr> <tr> <td colspan="5"><strong>其他标记</strong></td> </tr> <tr> <td><MARQUEE></td> <td>●</td> <td>走马灯</td> <td>令文字走动</td> <td>IE</td> </tr> <tr> <td><BLINK></td> <td>●</td> <td>闪烁文字</td> <td>令文字闪烁</td> <td>NC</td> </tr> <tr> <td><ISINDEX></td> <td>○</td> <td>页内寻找器</td> <td>可输入关键字寻找该页</td> <td>反对</td> </tr> <tr> <td><META></td> <td>○</td> <td>开头说明</td> <td>提供关于此页的信息给浏览器</td> <td> </td> </tr> <tr> <td><LINK></td> <td>○</td> <td>关系定义</td> <td>定义该文件与其他 URL 的关系</td> <td> </td> </tr> <tr> <td colspan="5">StyleSheet</td> </tr> <tr> <td><STYLE></td> <td>●</td> <td>式样表</td> <td>控制网页版面</td> <td> </td> </tr> <tr> <td><span></td> <td>●</td> <td>自订标记</td> <td>独立使用或与样式表一起用</td> <td> </td> </tr> </tbody> </table> <p><strong>备 注: </strong></p> <p>1、● 表示该标记属于围堵标记,即需要结束标记</标记>。</p> <p>2、○ 表示该标记属空标记,即不需要结束标记。</p> <p>3、IE 表示该标记只适应于 Internet Explorer。</p> <p>4、NC 表示该标记只适用于 Netscape Communicator。</p> <p>5、反对 表示该标记不为 W3C 所赞同,通常这标记是微软或网景自订,且已被大家支持,只是 HTML 标准中有其它功能相同或更好的选择。</p> <p>6、弃用 表示该标记已被 W3C 所抛弃,是过时的标记,但 HTML 有向下兼容性,所以浏览器仍然支持。</p> <p>7、新 表示该标记是 HTML 4.0 中新增的。<br /><br />如果感觉不是很详细可以参考下下面的文章 HTML元素(标签)大全及使用介绍 都可以参考下</p> <p><span style="COLOR: rgb(255,0,0)">——本文早期转自网络,无法溯源,未标明出处,特别说明。</span> </div> <div class=""> <ul class="m-news-opt fix"> <li class="opt-item"> <a href='/htmldaima-262209.html' target='_blank'><p>< 上一篇</p><p class="ellipsis">html中的meta标记简单对照_HTML/Xhtml_网页制作</p></a> </li> <li class="opt-item ta-r"> <a href='/htmldaima-262211.html' target='_blank'><p>下一篇 ></p><p class="ellipsis">网页html特殊符号html特殊字符对照表_HTML/Xhtml_网页制作</p></a> </li> </ul> </div> </div> </div> <div class="g-title fix"> <h2 class="title-txt">人气教程排行</h2> </div> <div class="m-rank u-dashed mb40"> <ul> <li class="rank-item"> <a href="/htmldaima-274978.html" title='如何生成一个调查问卷_html/css_WEB-ITnose' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">230次</span> <span class="g-sort-num top">1</span> 如何生成一个调查问卷_html/css_WEB-ITnose </a> </li> <li class="rank-item"> <a href="/htmldaima-274080.html" title='在页面直接显示日历_html/css_WEB-ITnose' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">230次</span> <span class="g-sort-num second">2</span> 在页面直接显示日历_html/css_WEB-ITnose </a> </li> <li class="rank-item"> <a href="/htmldaima-262106.html" title='如何点击a标签实现弹出inputfile上传文件对话框_HTML/Xhtml_网页制作' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">230次</span> <span class="g-sort-num third">3</span> 如何点击a标签实现弹出inputfile上传文件对话框_HTML/Xhtml_网页制作 </a> </li> <li class="rank-item"> <a href="/htmldaima-278863.html" title='关于列表标记的详细介绍' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">229次</span> <span class="g-sort-num ">4</span> 关于列表标记的详细介绍 </a> </li> <li class="rank-item"> <a href="/htmldaima-277331.html" title='cssborder-bottom(指定下边线的样式、宽度及颜色)' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">229次</span> <span class="g-sort-num ">5</span> cssborder-bottom(指定下边线的样式、宽度及颜色) </a> </li> <li class="rank-item"> <a href="/htmldaima-270548.html" title='html新闻详情页_html/css_WEB-ITnose' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">229次</span> <span class="g-sort-num ">6</span> html新闻详情页_html/css_WEB-ITnose </a> </li> <li class="rank-item"> <a href="/htmldaima-268070.html" title='为何页面内容和网页边缘有空隙_html/css_WEB-ITnose' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">229次</span> <span class="g-sort-num ">7</span> 为何页面内容和网页边缘有空隙_html/css_WEB-ITnose </a> </li> <li class="rank-item"> <a href="/htmldaima-269054.html" title='position:fixed定位时“高度坍塌”问题的解决_html/css_WEB-ITnose' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">228次</span> <span class="g-sort-num ">8</span> position:fixed定位时“高度坍塌”问题的解决_html/css_WEB-ITnose </a> </li> <li class="rank-item"> <a href="/htmldaima-280863.html" title='htmlp标签怎么换行?htmlp标签添加br换行标签的应用' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">227次</span> <span class="g-sort-num ">9</span> htmlp标签怎么换行?htmlp标签添加br换行标签的应用 </a> </li> <li class="rank-item"> <a href="/htmldaima-281519.html" title='HTML的<!DOCTYPE>标签' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">226次</span> <span class="g-sort-num ">10</span> HTML的<!DOCTYPE>标签 </a> </li> <li class="rank-item"> <a href="/htmldaima-280725.html" title='html页面中友情链接怎么进行添加设置?(代码示例)' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">226次</span> <span class="g-sort-num ">11</span> html页面中友情链接怎么进行添加设置?(代码示例) </a> </li> <li class="rank-item"> <a href="/htmldaima-278651.html" title='form表单中属性及功能应用介绍汇总' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">226次</span> <span class="g-sort-num ">12</span> form表单中属性及功能应用介绍汇总 </a> </li> <li class="rank-item"> <a href="/htmldaima-278586.html" title='详解form标签中的method属性' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">226次</span> <span class="g-sort-num ">13</span> 详解form标签中的method属性 </a> </li> <li class="rank-item"> <a href="/htmldaima-277758.html" title='HTML5Canvas逼真烟雾效果js插件' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">226次</span> <span class="g-sort-num ">14</span> HTML5Canvas逼真烟雾效果js插件 </a> </li> <li class="rank-item"> <a href="/htmldaima-275669.html" title='页面跳转特效_html/css_WEB-ITnose' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">226次</span> <span class="g-sort-num ">15</span> 页面跳转特效_html/css_WEB-ITnose </a> </li> <li class="rank-item"> <a href="/htmldaima-271209.html" title='改变鼠标选中区域的样式。_html/css_WEB-ITnose' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">226次</span> <span class="g-sort-num ">16</span> 改变鼠标选中区域的样式。_html/css_WEB-ITnose </a> </li> <li class="rank-item"> <a href="/htmldaima-273428.html" title='关于$("body").append()一段html代码,在页面写能触发事件,写在js文件里写就没有_html/css_WEB-ITnose' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">225次</span> <span class="g-sort-num ">17</span> 关于$("body").append()一段html代码,在页面写能触发事件,写在js文件里写就没有_html/css_WEB-ITnose </a> </li> <li class="rank-item"> <a href="/htmldaima-271182.html" title='CSS3悬浮动画效果_html/css_WEB-ITnose' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">225次</span> <span class="g-sort-num ">18</span> CSS3悬浮动画效果_html/css_WEB-ITnose </a> </li> <li class="rank-item"> <a href="/htmldaima-271093.html" title='纯C语言实现的CSS解析器:katana_html/css_WEB-ITnose' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">225次</span> <span class="g-sort-num ">19</span> 纯C语言实现的CSS解析器:katana_html/css_WEB-ITnose </a> </li> <li class="rank-item"> <a href="/htmldaima-267953.html" title='body在默认情况下是具有margin外边距的_html/css_WEB-ITnose' class="item-name ellipsis" target="_blank"> <span class="g-art-count fr">225次</span> <span class="g-sort-num ">20</span> body在默认情况下是具有margin外边距的_html/css_WEB-ITnose </a> </li> </ul> </div> </div> </div> <!-- / 教程内容页 --> </div> </div> <!-- 页尾 --> <div class="footer"> 本站所有资源全部来源于网络,若本站发布的内容侵害到您的隐私或者利益,请联系我们删除!</div> <!-- / 页尾 --> <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 class="current" 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> <form id="regform" action="/user-center-reg.html" method="post"> <div class="login-reg" style="display: none;" id="con_login_2"> <input type="hidden" name="t" id="t"/> <p class="int-text"> <input id="email" name="email" type="text" value="Email" onfocus="if(this.value=='Email'){this.value='';}" onblur="if(this.value==''){this.value='Email';};"></p> <p class="int-text"> <input id="uname" name="username" type="text" value="用户名或昵称" onfocus="if(this.value=='用户名或昵称'){this.value='';}" onblur="if(this.value==''){this.value='用户名或昵称';};"></p> <p class="int-text"> <input type="password" id="pwd" name="password" value="******" onBlur="if(this.value=='') this.value='******';" onFocus="if(this.value=='******') this.value='';"> </p> <p class="int-text1"><span class="inputbox"> <input id="validate" name="validate" type="text" value="验证码" onfocus="if(this.value=='验证码'){this.value='';}" onblur="if(this.value==''){this.value='验证码';};"> </span><span class="yzm-img"><img src="/user-checkcode-index" alt="看不清楚换一张" id="indexlogin"></p> <p class="int-info"> <label> <input value="" name="agreement" id="agreement" CHECKED="checked" type="checkbox"> 我已阅读<a rel="nofollow" href="/user-center-agreement.html">用户协议</a>及<a rel="nofollow" href="/user-center-agreement.html">版权声明</a></label> </p> <p class="int-btn"><input type="hidden" name="dosubmit"/> <a rel="nofollow" class="loginbtn" id="register"><span>注册</span></a></p> </div> </form> </div> </div> </div> </div> <script type="text/javascript" src="/kan/js/foot_js.js"></script> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?6dc1c3c5281cf70f49bc0bc860ec24f2"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script type="text/javascript" src="/layui/layui.js"></script> <script> layui.use('code', function() { layui.code({ elem: 'pre', //默认值为.layui-code about: false, skin: 'notepad', title: 'php怎么实现数据库验证跳转代码块', encode: true //是否转义html标签。默认不开启 }); }); </script> </body> </html>