首页 >常见问题 >HTML标签大全

HTML标签大全

zbt
zbt原创
2023-11-27 10:05:341991浏览

HTML标签总共有很多,以下是 HTML5 中常用的一些标签,以便构建网页时使用:

1、 : 声明文档类型

2、 : 标识HTML文档的根元素

3、 : 定义文档的头部,包含了文档的元数据

4、 : 定义文档标题</span></p> <p><span style="text-wrap: nowrap;">5、<meta> : 定义关于HTML文档的元数据</span><br></p> <p><span style="text-wrap: nowrap;">6、<link> : 定义文档与外部资源的关系</span></p> <p><span style="text-wrap: nowrap;">7、</span><span style="text-wrap: nowrap;"><style> : 定义文档的样式信息</span></p> <p><span style="text-wrap: nowrap;">8、<script> : 定义客户端脚本</span><br></p> <p><span style="text-wrap: nowrap;">9、<body> : HTML文档的主体内容</span><br></p> <p><span style="text-wrap: nowrap;">10、<h1> - <h6> : 标题标签,依据重要性定义文档标题</span><br></p> <p><span style="text-wrap: nowrap;">11、<p> : 段落标签</span><br></p> <p><span style="text-wrap: nowrap;">12、<a> : 链接标签</span><br></p> <p><span style="text-wrap: nowrap;">13、<img> : 图像标签</span><br></p> <p><span style="text-wrap: nowrap;">14、<div> : 块级容器标签</span><br></p> <p><span style="text-wrap: nowrap;">15、<span> : 行内容器标签</span><br></p> <p><span style="text-wrap: nowrap;">16、<input> : 输入标签</span><br></p> <p><span style="text-wrap: nowrap;">17、<button> : 按钮标签</span><br></p> <p><span style="text-wrap: nowrap;">18、<form> : 表单标签</span><br></p> <p><span style="text-wrap: nowrap;">19、<ul> : 无序列表标签</span><br></p> <p><span style="text-wrap: nowrap;">20、<ol> : 有序列表标签</span><br></p> <p><span style="text-wrap: nowrap;">21、<li> : 列表项标签</span><br></p> <p><span style="text-wrap: nowrap;">22、<table> : 表格标签</span><br></p> <p><span style="text-wrap: nowrap;">23、<tr> : 表格行标签</span><br></p> <p><span style="text-wrap: nowrap;">24、<td> : 表格数据单元格标签</span><br></p> <p><span style="text-wrap: nowrap;">25、<th> : 表格标题单元格标签</span><br></p> <p><span style="text-wrap: nowrap;">26、<label> : 标签标签</span><br></p> <p><span style="text-wrap: nowrap;">27、<textarea> : 文本域标签</span><br></p> <p><span style="text-wrap: nowrap;">28、<select> : 下拉菜单标签</span><br></p> <p><span style="text-wrap: nowrap;">29、<iframe> : 内嵌框架标签</span><br></p> <p><span style="text-wrap: nowrap;">30、<video> : 视频标签</span><br></p> <p><span style="text-wrap: nowrap;">31、<audio> : 音频标签</span><br></p> <p><span style="text-wrap: nowrap;">32、<canvas> : 画布标签</span><br></p> <p><span style="text-wrap: nowrap;">33、<nav> : 导航标签</span><br></p> <p><span style="text-wrap: nowrap;">34、<header> : 头部标签</span><br></p> <p><span style="text-wrap: nowrap;">35、<footer> : 底部标签</span><br></p> <p><span style="text-wrap: nowrap;">36、<section> : 区块标签</span><br></p> <p><span style="text-wrap: nowrap;">37、<article> : 文章标签</span><br></p> <p><span style="text-wrap: nowrap;">38、<aside> : 侧边栏标签</span><br></p> <p><span style="text-wrap: nowrap;">39、<main> : 主内容标签</span><br></p> <p><span style="text-wrap: nowrap;">40、<figure> : 图文组合标签</span><br></p> <p>这些标签是 HTML5 中最常用的一部分,当然,在HTML还有很多其他标签,但这些标签足够用来构建各种类型的网页。注意,要根据HTML标准规定正确使用这些标签,以确保你的网页具有良好的结构、语义和可访问性。</p><p>以上是HTML标签大全的详细内容。更多信息请关注PHP中文网其他相关文章!</p></div><div class="nphpQianMsg"><a href="javascript:void(0);">html5</a> <a href="javascript:void(0);">html</a> <a href="javascript:void(0);">select</a> <a href="javascript:void(0);">canvas</a> <a href="javascript:void(0);">input</a> <a href="javascript:void(0);">ul</a> <a href="javascript:void(0);">table</a> <a href="javascript:void(0);">td</a> <a href="javascript:void(0);">tr</a> <a href="javascript:void(0);">th</a> <a href="javascript:void(0);">li</a> <a href="javascript:void(0);">iframe</a><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="require的用法有哪些" href="https://m.php.cn/zh/faq/631020.html">require的用法有哪些</a></span><span>下一篇:<a class="dBlack" title="cellpadding和cellspacing有哪些区别" href="https://m.php.cn/zh/faq/631039.html">cellpadding和cellspacing有哪些区别</a></span></div><div class="nphpSytBox2"><div class="nphpZbktTitle"><h2>相关文章</h2><em><a href="https://m.php.cn/zh/article.html" class="bBlack"><i>查看更多</i><b></b></a></em><div class="clear"></div></div><ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-6t+ed+2i-1n-4w" data-ad-client="ca-pub-5902227090019525" data-ad-slot="8966999616"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><ul class="nphpXgwzList"><li><b></b><a href="https://m.php.cn/zh/faq/457892.html" title="如何解决php html标签转换问题" class="aBlack">如何解决php html标签转换问题</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/zh/faq/474087.html" title="html如何设置图片居中" class="aBlack">html如何设置图片居中</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/zh/faq/475107.html" title="python怎么去除html标签" class="aBlack">python怎么去除html标签</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/zh/faq/475381.html" title="html字体颜色如何设置" class="aBlack">html字体颜色如何设置</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/zh/faq/477356.html" title="html怎样使文字居中" class="aBlack">html怎样使文字居中</a><div class="clear"></div></li></ul></div></div><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="5027754603"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><footer><div class="footer"><div class="footertop"><img src="/static/imghwm/logo.png" alt=""><p>公益在线PHP培训,帮助PHP学习者快速成长!</p></div><div class="footermid"><a href="https://m.php.cn/zh/about/us.html">关于我们</a><a href="https://m.php.cn/zh/about/disclaimer.html">免责声明</a><a href="https://m.php.cn/zh/update/article_0_1.html">Sitemap</a></div><div class="footerbottom"><p> © php.cn All rights reserved </p></div></div></footer><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><!-- Matomo --><script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="https://tongji.php.cn/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '9']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script><!-- End Matomo Code --></html>