首頁 >常見問題 >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-tw/faq/631020.html">require的用法有哪些</a></span><span>下一篇:<a class="dBlack" title="require的用法有哪些" href="https://m.php.cn/zh-tw/faq/631039.html">require的用法有哪些</a></span></div><div class="nphpSytBox2"><div class="nphpZbktTitle"><h2>相關文章</h2><em><a href="https://m.php.cn/zh-tw/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-tw/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-tw/faq/474087.html" title="html如何設定圖片居中" class="aBlack">html如何設定圖片居中</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/zh-tw/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-tw/faq/475381.html" title="html字體顏色如何設定" class="aBlack">html字體顏色如何設定</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/zh-tw/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-tw/about/us.html">關於我們</a><a href="https://m.php.cn/zh-tw/about/disclaimer.html">免責聲明</a><a href="https://m.php.cn/zh-tw/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>