当前位置:Gxlcms > html代码 > 后端码农谈前端(HTML篇)第二课:常见元素_html/css_WEB-ITnose

后端码农谈前端(HTML篇)第二课:常见元素_html/css_WEB-ITnose

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

一、根元素

定义文档类型。
定义 HTML 文档。

二、元数据元素

定义关于文档的信息。
定义关于 HTML 文档的元数据。
定义文档与外部资源之间的关系,一般用于引入样式表。
定义页面上所有链接的默认地址或默认目标。
</td> <td>定义文档标题。</td> </tr> <tr> <td><style></td> <td>定义文档的样式信息。</td> </tr> </table> <h3>三、脚本元素</h3> <table> <tr> <td><script></td> <td>定义客户端脚本。</td> </tr> <tr> <td><noscript></td> <td>定义当浏览器不支持脚本的时候所显示的内容</td> </tr> </table> <h3>四、块元素</h3> <table> <tr> <td><body></td> <td>定义文档的主体。</td> </tr> <tr> <td><h2>、<h2>...<h6></td> <td>定义文档标题。</td> </tr> <tr> <td><p></td> <td>定义文档段落。</td> </tr> <tr> <td><blockquote></td> <td>定义块引用。</td> </tr> <tr> <td><ul>、<ul>、<dl></td> <td>定义列表。</td> </tr> <tr> <td><table></td> <td>定义表格。</td> </tr> </table> <h4 class="mt-10">1、列表元素</h4> <li>无序列表 <table> <tr> <td><ul></td> <td>定义无序的列表。</td> </tr> <tr> <td><li></td> <td>定义列表项。</td> </tr> </table> </li> <li>有序列表 <table> <tr> <td><ol></td> <td>定义有序的列表。</td> </tr> <tr> <td><li></td> <td>定义列表项。</td> </tr> </table> </li> <li>定义列表 <table> <tr> <td><dl></td> <td>定义定义列表。</td> </tr> <tr> <td><dt></td> <td>定义定义术语。</td> </tr> <tr> <td><dd></td> <td>定义定义描述。</td> </tr> </table></li> <h4 class="mt-10">2、表格元素</h4> <table> <tr> <td><table></td> <td>定义表格。</td> </tr> <tr> <td><thead></td> <td>定义表格的页眉。</td> </tr> <tr> <td><tbody></td> <td>定义表格的主体。</td> </tr> <tr> <td><tfoot></td> <td>定义表格的页脚。</td> </tr> <tr> <td><th></td> <td>定义表格的表头行。</td> </tr> <tr> <td><tr></td> <td>定义表格的行。</td> </tr> <tr> <td><td></td> <td>定义表格单元。</td> </tr> </table> <h3>五、文本元素</h3> <h4 class="mt-10">1、文本格式化元素</h4> <table> <tr> <td><em></td> <td>定义着重文字。</td> </tr> <tr> <td><strong></td> <td>定义加重语气。</td> </tr> <tr> <td><sup></td> <td>定义上标字。</td> </tr> <tr> <td><sub></td> <td>定义下标字。</td> </tr> <tr> <td><ins></td> <td>定义插入字。</td> </tr> <tr> <td><del></td> <td>定义删除字。</td> </tr> <tr> <td><b></td> <td>定义粗体文本。</td> </tr> <tr> <td><i></td> <td>定义斜体文本。</td> </tr> <tr> <td><big></td> <td>定义大号字。</td> </tr> <tr> <td><small></td> <td>定义小号字。</td> </tr> </table> <h4 class="mt-10">2、“计算机</script></pre>输出”标签</h4> <table> <tr> <td><code></td> <td>定义计算机代码。</td> </tr> <tr> <td><kbd></td> <td>定义键盘码。</td> </tr> <tr> <td><pre class="brush:php;toolbar:false"></td> <td>定义预格式文本。</td> </tr> </table> <h4 class="mt-10">3、引用、引用和术语定义</h4> <table> <tr> <td><q></td> <td>定义简短引用。</td> </tr> <tr> <td><blockquote></td> <td>定义长引用。</td> </tr> <tr> <td></td> <td>定义地址。</td> </tr> </table> <h3>六、链接与图像</h3> <table> <tr> <td></td> <td>定义超链接</td> </tr> <tr> <td><img></td> <td>定义图像。</td> </tr> <tr> <td><map></td> <td>定义图像地图。</td> </tr> <tr> <td></td> <td>定义图像地图中的可点击区域。</td> </tr> </table> <h3>七、<div> 和 <span></h3> <table> <tr> <td><div></td> <td>定义文档中的分区或节(division/section)。</td> </tr> <tr> <td><span></td> <td>定义 span,用来组合文档中的行内元素。</td> </tr> </table> <h3>八、框架</h3> <table> <tr> <td><frameset></td> <td>定义如何将窗口分割为框架。(注:<frameset>元素只能嵌套在<html> 元素或<frameset>元素自身中!)</td> </tr> <tr> <td><frame></td> <td>定义放置在每个框架中的 HTML 文档。</td> </tr> </table> <h3>九、内联框架</h3> <table> <tr> <td><iframe></td> <td>定义内联的子窗口(框架)。</td> </tr> </table> <h3>十、表单元素</h3> <table> <tr> <td><form></td> <td>定义供用户输入的表单。</td> </tr> <tr> <td><input></td> <td>定义输入域。</td> </tr> <tr> <td><textarea></td> <td>定义文本域 (一个多行的输入控件)。</td> </tr> <tr> <td><lable></td> <td>定义一个控制的标签。</td> </tr> <tr> <td><select></td> <td>定义一个选择列表。</td> </tr> <tr> <td><option></td> <td>定义下拉列表中的选项。</td> </tr> <tr> <td><optgroup></td> <td>定义选项组。</td> </tr> <tr> <td><button></td> <td>定义一个按钮。</td> </tr> <tr> <td><fieldset></td> <td>定义域。</td> </tr> <tr> <td><legend></td> <td>定义域的标题。</td> </tr> </table> </div> <div class=""> <ul class="m-news-opt fix"> <li class="opt-item"> <a href='/htmldaima-271640.html' target='_blank'><p>< 上一篇</p><p class="ellipsis">看好你的门-客户端传数据(10)-不安全的HTML禁用元素_html/css_WEB-ITnose</p></a> </li> <li class="opt-item ta-r"> <a href='/htmldaima-271642.html' target='_blank'><p>下一篇 ></p><p class="ellipsis">《css知多少》系列完结_html/css_WEB-ITnose</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>