html标签可以写什么属性

罗列html标签的全部属性需要很多篇文章才能详细介绍,下面仅列举一些常见的HTML标签和属性:

1. ``:指定HTML文档的版本和类型。

2. ``:定义HTML文档的根元素。

3. ``:定义文档的头部,包含了文档的元信息和引用。

- ``:定义文档的标题,在浏览器的标题栏显示。<p> - `<meta>`:定义文档的元信息,如编码方式和关键词。<p> - `<link>`:定义外部样式表或引入其他资源文件。<p> - `<style>`:定义文档的样式。<p> - `<script>`:定义脚本代码或引入外部脚本文件。<p> - `<base>`:指定页面中相对URL的基准路径。<p>4. `<body>`:定义文档的主体部分,包含了可见的页面内容。<p> - `<div>`:定义文档中的分区或节,用来组织页面结构。<p> - `<p>`:定义段落。<p> - `<h1>`至`<h6>`:定义标题,依据重要性递减。<p> - `<a>`:定义链接。<p> - `href`:指定链接目标。<p> - `target`:指定链接的打开方式。<p> - `<img>`:定义图片。<p> - `src`:指定图片的URL。<p> - `alt`:指定图片的替代文本。<p> - `width`和`height`:指定图片的宽度和高度。<p> - `<table>`:定义表格。<p> - `<tr>`:定义表格中的一行。<p> - `<td>`:定义表格中的一个单元格。<p> - `<form>`:定义表单。<p> - `action`:指定表单提交的地址。<p> - `method`:指定提交的HTTP方法。<p> - `input`:定义表单中的输入字段。<p> - `type`:指定输入字段的类型,如文本框、复选框等。<p> - `name`:指定输入字段的名称。<p> - `value`:指定输入字段的默认值。<p> - `<textarea>`:定义多行文本输入框。<p> - `<select>`:定义下拉列表框。<p> - `<option>`:定义下拉列表中的选项。<p> - `selected`:指定默认选中的选项。<p> - `<button>`:定义按钮。<p> - `type`:指定按钮的类型,如提交、重置等。<p><p>以上仅是HTML标签的一部分,并列举了部分常见的属性。具体的标签和属性还有很多,根据具体的需求和用途选择适合的标签和属性来实现网页的功能和布局。 <b>如果你喜欢我们三七知识分享网站的文章, 欢迎您分享或收藏知识分享网站文章 欢迎您到我们的网站逛逛喔!<a href="https://www.37seo.cn/" title="知识分享网">https://www.37seo.cn/</a></b> </p> <!-- E 正文 --> </div> <!-- S 付费阅读 --> <!-- E 付费阅读 --> <!-- S 点赞 --> <div class="article-donate"> <a href="javascript:" class="btn btn-primary btn-like btn-lg" data-action="vote" data-type="like" data-id="168691" data-tag="archives"><i class="fa fa-thumbs-up"></i> 点赞(<span>102</span>)</a> <a href="javascript:" class="btn btn-outline-primary btn-donate btn-lg" data-action="donate" data-id="168691" data-image=""><i class="fa fa-cny"></i> 打赏</a> </div> <!-- E 点赞 --> <!-- S 分享 --> <div class="social-share text-center mt-2 mb-1" data-initialized="true" data-mode="prepend" data-image="https://m.37seo.cn/uploads/cchatgpt/4chatchhdhdptgdd_3434d172.jpg"> <a href="javascript:" class="social-share-icon icon-heart addbookbark" data-type="archives" data-aid="168691" data-action="/addons/cms/ajax/collection.html"></a> <a href="#" class="social-share-icon icon-weibo" target="_blank"></a> <a href="#" class="social-share-icon icon-qq" target="_blank"></a> <a href="#" class="social-share-icon icon-qzone" target="_blank"></a> <a href="javascript:" class="social-share-icon icon-wechat"></a> </div> <!-- E 分享 --> <div class="entry-meta"> <ul> <!-- S 归档 --> <li>本文分类:<a href="/bianchengzhishi.html">编程知识</a></li> <li>本文标签:无</li> <li>浏览次数:<span>58</span> 次浏览</li> <li>发布日期:2023-08-09 18:53:48</li> <li>本文链接:<a href="https://m.37seo.cn/bianchengzhishi/168691.html">https://m.37seo.cn/bianchengzhishi/168691.html</a></li> <!-- S 归档 --> </ul> <ul class="article-prevnext"> <!-- S 上一篇下一篇 --> <li> <span>上一篇 ></span> <a href="/bianchengzhishi/168675.html">新手常见python错误,python查询自带哪些库</a> </li> <li> <span>下一篇 ></span> <a href="/bianchengzhishi/168693.html">php,函数内调用外部类,php接私活框架</a> </li> <!-- E 上一篇下一篇 --> </ul> </div> <div class="related-article"> <div class="row"> <!-- S 相关文章 --> <div class="col-sm-3 col-xs-6"> <a href="/fenjuanyasuodedejieyafangfa/266284.html" class="img-zoom"> <div class="embed-responsive embed-responsive-4by3"> <img src="https://m.37seo.cn/assets/addons/cms/img/noimage.jpg" alt="分卷压缩教程" class="embed-responsive-item"> </div> </a> <h5 class="text-center"><a href="/fenjuanyasuodedejieyafangfa/266284.html">分卷压缩教程</a></h5> </div> <div class="col-sm-3 col-xs-6"> <a href="/changguiziyuanjieyajiaocheng/266283.html" class="img-zoom"> <div class="embed-responsive embed-responsive-4by3"> <img src="https://m.37seo.cn/assets/addons/cms/img/noimage.jpg" alt="常用解压教程" class="embed-responsive-item"> </div> </a> <h5 class="text-center"><a href="/changguiziyuanjieyajiaocheng/266283.html">常用解压教程</a></h5> </div> <div class="col-sm-3 col-xs-6"> <a href="/zhishifenxiang/266739.html" class="img-zoom"> <div class="embed-responsive embed-responsive-4by3"> <img src="https://m.37seo.cn/uploads/20240912/8cbb4dd997e268f1803e8d20c5fe8254.jpg" alt="JinriCP pandaTv 韩国主播视频学习网站" class="embed-responsive-item"> </div> </a> <h5 class="text-center"><a href="/zhishifenxiang/266739.html">JinriCP pandaTv 韩国主播视频学习网站</a></h5> </div> <div class="col-sm-3 col-xs-6"> <a href="/bianchengzhishi/264356.html" class="img-zoom"> <div class="embed-responsive embed-responsive-4by3"> <img src="https://m.37seo.cn/uploads/20240316/368374f292fe1b61eead785c71e11147.jpg" alt="最新版TikTok 抖音国际版解锁版 v33.8.4 去广告 免拔卡[免费网盘]" class="embed-responsive-item"> </div> </a> <h5 class="text-center"><a href="/bianchengzhishi/264356.html">最新版TikTok 抖音国际版解锁版 v33.8.4 去广告 免拔卡[免费网盘]</a></h5> </div> <!-- E 相关文章 --> </div> </div> <div class="clearfix"></div> </div> </div> <div class="panel panel-default" id="comments"> <div class="panel-heading"> <h3 class="panel-title">评论列表 <small>共有 <span>0</span> 条评论</small> </h3> </div> <div class="panel-body"> <div id="comment-container"> <!-- S 评论列表 --> <div id="commentlist"> <div class="loadmore loadmore-line loadmore-nodata"><span class="loadmore-tips">暂无评论</span></div> </div> <!-- E 评论列表 --> <!-- S 评论分页 --> <div id="commentpager" class="text-center"> </div> <!-- E 评论分页 --> <!-- S 发表评论 --> <div id="postcomment"> <h3>发表评论 <a href="javascript:;"> <small>取消回复</small> </a></h3> <form action="/addons/cms/comment/post.html" method="post" id="postform"> <input type="hidden" name="__token__" value="c64ddd99c0120221293989a122f66be5" /> <input type="hidden" name="type" value="archives"/> <input type="hidden" name="aid" value="168691"/> <input type="hidden" name="pid" id="pid" value="0"/> <div class="form-group"> <textarea name="content" class="form-control" disabled placeholder="请登录后再发表评论" id="commentcontent" cols="6" rows="5" tabindex="4"></textarea> </div> <div class="form-group"> <a href="/index/user/login.html" class="btn btn-primary">登录</a> <a href="/index/user/register.html" class="btn btn-outline-primary">注册新账号</a> </div> </form> </div> <!-- E 发表评论 --> </div> </div> </div> </main> <aside class="col-xs-12 col-md-4"> <!--@formatter:off--> <!--@formatter:on--> <div class="panel panel-blockimg"> <p><a href="https://www.cheng-ta.com/qiming.html" target="_blank"> </a><a href="https://www.longhaixiao.com/qiming.html" target="_blank"><img src="https://www.37seo.cn/uploads/20230318/88ada14dbf36f1bcf6388014f9a8c20d.jpg"/></a></p> <span style="margin-top:10px;margin-left:15px;margin-right:15px;font-weight:bold">关于我们</span> <p style="margin-top:20px;margin-left:15px;margin-right:15px;text-indent:2em">生活知识分享网是一个致力于分享各种实用生活知识和技巧的网站。该网站提供丰富的生活知识内容,涵盖了健康、美食、家居、旅游、职场等多个领域。用户可以在该网站上获取到各种实用的生活技巧,比如如何减肥、如何治疗感冒、如何装修房屋、如何提高职场竞争力等等。</p><p style="margin-top:10px;margin-left:15px;margin-right:15px;font-weight:bold"><a href="https://www.37seo.cn/p/aboutus.html">查看更多</a></p> <a href="https://www.37seo.cn/shengxiao.html"><img src="/uploads/20230318/2893865b9ddf9f1fde1f370c976b27e6.png" class="img-responsive"/></a> </div> <!-- S 热门资讯 --> <div class="panel panel-default hot-article"> <div class="panel-heading"> <h3 class="panel-title">推荐资讯</h3> </div> <div class="panel-body"> <div class="media media-number"> <div class="media-left"> <span class="num">1</span> </div> <div class="media-body"> <a class="link-dark" href="/zhishifenxiang/88890.html" title="饮食与健康制定食谱,心理健康知识打卡">饮食与健康制定食谱,心理健康知识打卡</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">2</span> </div> <div class="media-body"> <a class="link-dark" href="/zhishifenxiang/88891.html" title="心理健康小知识字数少,心理健康知识电子展板">心理健康小知识字数少,心理健康知识电子展板</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">3</span> </div> <div class="media-body"> <a class="link-dark" href="/zhishifenxiang/88899.html" title="中药养生小知识科普视频,老年人健康养生小知识宣传">中药养生小知识科普视频,老年人健康养生小知识宣传</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">4</span> </div> <div class="media-body"> <a class="link-dark" href="/juzi/88900.html" title="张爱玲经典句子的书(精选80句)">张爱玲经典句子的书(精选80句)</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">5</span> </div> <div class="media-body"> <a class="link-dark" href="/zhishifenxiang/88902.html" title="教师必备心理健康知识,初中生有趣的心理健康知识">教师必备心理健康知识,初中生有趣的心理健康知识</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">6</span> </div> <div class="media-body"> <a class="link-dark" href="/zhishifenxiang/88905.html" title="养生简单小知识,中学生心理健康知识竞赛题">养生简单小知识,中学生心理健康知识竞赛题</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">7</span> </div> <div class="media-body"> <a class="link-dark" href="/xiaohua/88908.html" title="爸妈搞笑笑话故事">爸妈搞笑笑话故事</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">8</span> </div> <div class="media-body"> <a class="link-dark" href="/zhishifenxiang/88916.html" title="心理健康教育幼儿园知识,驾驶心理健康知识答案最新">心理健康教育幼儿园知识,驾驶心理健康知识答案最新</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">9</span> </div> <div class="media-body"> <a class="link-dark" href="/zhishifenxiang/88923.html" title="姨妈期健康饮食食谱家常菜,智障心理健康知识">姨妈期健康饮食食谱家常菜,智障心理健康知识</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">10</span> </div> <div class="media-body"> <a class="link-dark" href="/zhishifenxiang/88924.html" title="鱼缸养生小知识,好物分享健康养生小知识">鱼缸养生小知识,好物分享健康养生小知识</a> </div> </div> </div> </div> <!-- E 热门资讯 --> <div class="panel panel-blockimg"> <p><a href="https://www.37seo.cn/xiaohua.html" target="_blank"><img src="https://www.37seo.cn/uploads/20230318/d17a100bf194ff6f6eaca069138e7250.jpeg"/></a></p> </div> <!-- S 热门标签 --> <div class="panel panel-default hot-tags"> <div class="panel-heading"> <h3 class="panel-title">热门标签</h3> </div> <div class="panel-body"> <div class="tags"> <a href="/t/英语经典句子励志带翻译(实用70句).html" class="tag"> <span>英语经典句子励志带翻译(实用70句)</span></a> <a href="/t/关于晚上的经典句子(精选80句).html" class="tag"> <span>关于晚上的经典句子(精选80句)</span></a> <a href="/t/酷爱家族的经典句子(精选50句).html" class="tag"> <span>酷爱家族的经典句子(精选50句)</span></a> <a href="/t/除夕夜最美好祝福语句图片(90句).html" class="tag"> <span>除夕夜最美好祝福语句图片(90句)</span></a> <a href="/t/聊天经典文案句子伤感(必备30句).html" class="tag"> <span>聊天经典文案句子伤感(必备30句)</span></a> <a href="/t/古董局中局书经典句子(一共20句).html" class="tag"> <span>古董局中局书经典句子(一共20句)</span></a> <a href="/t/说父母的经典句子(优选20句).html" class="tag"> <span>说父母的经典句子(优选20句)</span></a> <a href="/t/马云语录励志经典句子(精选200句).html" class="tag"> <span>马云语录励志经典句子(精选200句)</span></a> <a href="/t/经典常谈优秀句子赏析(必备100句).html" class="tag"> <span>经典常谈优秀句子赏析(必备100句)</span></a> <a href="/t/退休教师的句子简短经典(40句).html" class="tag"> <span>退休教师的句子简短经典(40句)</span></a> <a href="/t/圣经诗篇45句经典句子(一共70句).html" class="tag"> <span>圣经诗篇45句经典句子(一共70句)</span></a> <a href="/t/十五已过的经典句子(共10句).html" class="tag"> <span>十五已过的经典句子(共10句)</span></a> <a href="/t/开心快乐经典抖音句子(优选50句).html" class="tag"> <span>开心快乐经典抖音句子(优选50句)</span></a> <a href="/t/给女儿留言经典句子短句(实用150句).html" class="tag"> <span>给女儿留言经典句子短句(实用150句)</span></a> <a href="/t/有恶报的经典句子(精选60句).html" class="tag"> <span>有恶报的经典句子(精选60句)</span></a> <a href="/t/战胜酷暑的经典句子(热门70句).html" class="tag"> <span>战胜酷暑的经典句子(热门70句)</span></a> <a href="/t/讽刺爱情的经典句子(通用60句).html" class="tag"> <span>讽刺爱情的经典句子(通用60句)</span></a> <a href="/t/想做人的句子经典说说(推荐60句).html" class="tag"> <span>想做人的句子经典说说(推荐60句)</span></a> <a href="/t/老子经典句子摘抄大全(140句).html" class="tag"> <span>老子经典句子摘抄大全(140句)</span></a> <a href="/t/也许不长大的经典句子(必备30句).html" class="tag"> <span>也许不长大的经典句子(必备30句)</span></a> <a href="/t/管理最经典的句子(汇总40句).html" class="tag"> <span>管理最经典的句子(汇总40句)</span></a> <a href="/t/新年祝福语录经典句子图片(共60句).html" class="tag"> <span>新年祝福语录经典句子图片(共60句)</span></a> <a href="/t/寒山句子经典语录(通用50句).html" class="tag"> <span>寒山句子经典语录(通用50句)</span></a> <a href="/t/情话经典句子文案图片伤感(140句).html" class="tag"> <span>情话经典句子文案图片伤感(140句)</span></a> <a href="/t/老子正能量的句子经典(共120句).html" class="tag"> <span>老子正能量的句子经典(共120句)</span></a> <a href="/t/尊重对手的经典句子(汇总90句).html" class="tag"> <span>尊重对手的经典句子(汇总90句)</span></a> </div> </div> </div> <!-- E 热门标签 --> <!-- S 推荐下载 <div class="panel panel-default recommend-article"> <div class="panel-heading"> <h3 class="panel-title">推荐下载</h3> </div> <div class="panel-body"> </div> </div> E 推荐下载 --> <div class="panel panel-blockimg"> <p><a href="https://www.37seo.cn/xiaohua.html" target="_blank"> <a href="https://www.37seo.cn/special/chuangshizhixuyouxiheji.html" target="_blank" title="The Genesis Order合集"><img src="https://www.37seo.cn/uploads/20230318/3ee44171025504f3a9e884e1f0fd25da.jpg"/></a></a></p> </div> </aside> </div> </div> </main> <footer> <div id="footer"> <div class="container"> <div class="row footer-inner"> <div class="col-md-3 col-sm-3"><p class="copyright"><small>www.37seo.cn 知识分享网站 © 2018-2024. All Rights Reserved. <br/><span style="color:#384049">备案号:<a href="https://beian.miit.gov.cn" target="_blank" style="color:#384049">浙ICP备2022019242号</a></span><br/></small> <a href="https://www.37seo.cn/sitemap.xml" target="_blank">网站地图</a></p></div><p>免责声明:文章来自网上收集,均已注明来源,均仅代表作者本人观点,不代表三七知识分享网站【www.37seo.cn】立场,其观点供读者参考。其版权归作者本人所有,如果有任何侵犯您权益的地方,<strong><a href="https://www.37seo.cn/d/message.html" target="_blank" title="违法信息举报入口"><span style="color:#e36c09">违法和不良信息举报入口</span></a></strong>!请联系我们,我们将马上进行处理,谢谢。</p><p><br/></p> </div> </div> </div> </footer> <div id="floatbtn"> <!-- S 浮动按钮 --> <a class="hover" href="/index/cms.archives/post.html" target="_blank"> <i class="iconfont icon-pencil"></i> <em>立即<br>投稿</em> </a> <div class="floatbtn-item floatbtn-share"> <i class="iconfont icon-share"></i> <div class="floatbtn-wrapper" style="height:50px;top:0"> <div class="social-share" data-initialized="true" data-mode="prepend"> <a href="#" class="social-share-icon icon-weibo" target="_blank"></a> <a href="#" class="social-share-icon icon-qq" target="_blank"></a> <a href="#" class="social-share-icon icon-qzone" target="_blank"></a> <a href="#" class="social-share-icon icon-wechat"></a> </div> </div> </div> <a id="feedback" class="hover" href="#comments"> <i class="iconfont icon-feedback"></i> <em>发表<br>评论</em> </a> <a id="back-to-top" class="hover" href="javascript:;"> <i class="iconfont icon-backtotop"></i> <em>返回<br>顶部</em> </a> <!-- E 浮动按钮 --> </div> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?4eec3eb0f5b1263265eb02b891861386"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script type="text/javascript" src="/assets/libs/jquery/dist/jquery.min.js?v=1731223324"></script> <script type="text/javascript" src="/assets/libs/bootstrap/dist/js/bootstrap.min.js?v=1731223324"></script> <script type="text/javascript" src="/assets/libs/fastadmin-layer/dist/layer.js?v=1731223324"></script> <script type="text/javascript" src="/assets/libs/art-template/dist/template-native.js?v=1731223324"></script> <script type="text/javascript" src="/assets/addons/cms/js/jquery.autocomplete.js?v=1731223324"></script> <script type="text/javascript" src="/assets/addons/cms/js/swiper.min.js?v=1731223324"></script> <script type="text/javascript" src="/assets/addons/cms/js/share.min.js?v=1731223324"></script> <script type="text/javascript" src="/assets/addons/cms/js/cms.js?v=1731223324"></script> <script type="text/javascript" src="/assets/addons/cms/js/common.js?v=1731223324"></script> </body> </html>