html常用标签常用属性

HTML是一种标记语言,用来编写网页的结构和内容。HTML标签和属性是在网页中非常重要的,可以用来创建网页的结构和布局,还可以用来添加图像、音频、视频等多媒体元素,从而使网页更具吸引力。本文将详细介绍HTML常用标签和属性,并提供一些简单的网页代码来为您入门。

一、HTML常用标签

1. 标签:告诉浏览器这个文件是一个HTML文件,必须是每个HTML文档的顶层元素。

2. 标签:这里包含了网页的元数据,如标题、指向 CSS 样式表和 JavaScript 文件的链接等。

3. 标签:这用于指定网页的标题,标题将在浏览器的标签中显示。<p>4. <body>标签:这是网页的主体部分,包含可视内容和标签元素。<p>5. <h1>-<h6>标签:用于定义 HTML 标题。h1 是最高级别的标题,h6 是最低级别的标题。<p>6. <p>标签:这用于定义一个段落,也就是一个文字块。<p>7. <a href="https://www.37seo.cn/addons/cms/go/index.html?url=https%3A%2F%2Fwww.w3schools.com" >Visit W3Schools</a><p> </body><p></html><p><p>这段代码定义了一个 HTML 页面,其中包含一个标题,一个段落,一个图像,一个无序列表,一个有序列表和一个链接。分析这些代码可以帮助您更好地理解 HTML 标签和属性。<p><p>总的来说,了解 HTML 常用标签和属性的作用和用法是学习网页开发的第一步。如果您刚刚开始学习 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="99463" data-tag="archives"><i class="fa fa-thumbs-up"></i> 点赞(<span>63</span>)</a> <a href="javascript:" class="btn btn-outline-primary btn-donate btn-lg" data-action="donate" data-id="99463" 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://www.37seo.cn/uploads/cchatgpt/4chatchhdhdptgdd_3434d1162.jpg"> <a href="javascript:" class="social-share-icon icon-heart addbookbark" data-type="archives" data-aid="99463" 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>290</span> 次浏览</li> <li>发布日期:2023-04-09 18:47:34</li> <li>本文链接:<a href="https://www.37seo.cn/bianchengzhishi/99463.html">https://www.37seo.cn/bianchengzhishi/99463.html</a></li> <!-- S 归档 --> </ul> <ul class="article-prevnext"> <!-- S 上一篇下一篇 --> <li> <span>上一篇 ></span> <a href="/bianchengzhishi/99450.html">html,image标签属性,html不带属性的标签</a> </li> <li> <span>下一篇 ></span> <a href="/bianchengzhishi/99466.html">php最基本常用的函数,php,mysql函数开启事物</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://www.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://www.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://www.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://www.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>1</span> 条评论</small> </h3> </div> <div class="panel-body"> <div id="comment-container"> <!-- S 评论列表 --> <div id="commentlist"> <dl id="comment-5966"> <dt><a href="/u/963" target="_blank"><img src='data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgaGVpZ2h0PSIxMDAiIHdpZHRoPSIxMDAiPjxyZWN0IGZpbGw9InJnYigxNzcsMjI5LDE2MCkiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48L3JlY3Q+PHRleHQgeD0iNTAiIHk9IjUwIiBmb250LXNpemU9IjUwIiB0ZXh0LWNvcHk9ImZhc3QiIGZpbGw9IiNmZmZmZmYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHRleHQtcmlnaHRzPSJhZG1pbiIgZG9taW5hbnQtYmFzZWxpbmU9ImNlbnRyYWwiPuiQvTwvdGV4dD48L3N2Zz4='/></a></dt> <dd> <div class="parent"> <cite><a href='/u/963' target="_blank">落花伊人</a></cite> <small> 1年前 <a href="javascript:;" data-id="5966" title="@落花伊人 " class="reply">回复TA</a></small> <p>成功,年末算收获,年开鼓斗志,年来更豪迈,纠结要放开,心情要舒展,理想要面对,未来要勇敢,愿总结失败,历练经验,奋斗2023,再创佳绩。</p> </div> </dd> <div class="clearfix"></div> </dl> </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="168ea76165ece1a5569385ad9420e7eb" /> <input type="hidden" name="type" value="archives"/> <input type="hidden" name="aid" value="99463"/> <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/没有良朋经典句子(必备60句).html" class="tag"> <span>没有良朋经典句子(必备60句)</span></a> <a href="/t/金木研经典句子日语(共100句).html" class="tag"> <span>金木研经典句子日语(共100句)</span></a> <a href="/t/诅咒经典句子文案图片伤感(实用90句).html" class="tag"> <span>诅咒经典句子文案图片伤感(实用90句)</span></a> <a href="/t/双11送情人经典句子(精选130句).html" class="tag"> <span>双11送情人经典句子(精选130句)</span></a> <a href="/t/描写钟声的经典句子(一共100句).html" class="tag"> <span>描写钟声的经典句子(一共100句)</span></a> <a href="/t/形容胃好的经典句子(推荐70句).html" class="tag"> <span>形容胃好的经典句子(推荐70句)</span></a> <a href="/t/放你走的经典句子(实用100句).html" class="tag"> <span>放你走的经典句子(实用100句)</span></a> <a href="/t/贾冰春晚经典句子(一共110句).html" class="tag"> <span>贾冰春晚经典句子(一共110句)</span></a> <a href="/t/心里有道理的经典句子(必备10句).html" class="tag"> <span>心里有道理的经典句子(必备10句)</span></a> <a href="/t/变形计经典句子2023(汇总70句).html" class="tag"> <span>变形计经典句子2023(汇总70句)</span></a> <a href="/t/经典职场逗趣笑话故事.html" class="tag"> <span>经典职场逗趣笑话故事</span></a> <a href="/t/关于拼命学习的经典句子(共20句).html" class="tag"> <span>关于拼命学习的经典句子(共20句)</span></a> <a href="/t/暗恋撒娇语录经典句子(精选110句).html" class="tag"> <span>暗恋撒娇语录经典句子(精选110句)</span></a> <a href="/t/生活励志句子人生诗句经典(精选90句).html" class="tag"> <span>生活励志句子人生诗句经典(精选90句)</span></a> <a href="/t/人生战场励志经典句子(130句).html" class="tag"> <span>人生战场励志经典句子(130句)</span></a> <a href="/t/自然段画线经典句子(优选130句).html" class="tag"> <span>自然段画线经典句子(优选130句)</span></a> <a href="/t/生日感谢自己句子经典(70句).html" class="tag"> <span>生日感谢自己句子经典(70句)</span></a> <a href="/t/恋人间的句子经典(实用40句).html" class="tag"> <span>恋人间的句子经典(实用40句)</span></a> <a href="/t/一段经典感情独白句子(共30句).html" class="tag"> <span>一段经典感情独白句子(共30句)</span></a> <a href="/t/经典的现代有哲理句子(130句).html" class="tag"> <span>经典的现代有哲理句子(130句)</span></a> <a href="/t/新开餐厅语录搞笑经典句子(推荐50句).html" class="tag"> <span>新开餐厅语录搞笑经典句子(推荐50句)</span></a> <a href="/t/丨loveyou经典句子(通用160句).html" class="tag"> <span>丨loveyou经典句子(通用160句)</span></a> <a href="/t/勤劳致贫的经典句子(一共70句).html" class="tag"> <span>勤劳致贫的经典句子(一共70句)</span></a> <a href="/t/带怡字的美好成语句子大全(必备90句).html" class="tag"> <span>带怡字的美好成语句子大全(必备90句)</span></a> <a href="/t/父母恩情不能忘经典句子(必备20句).html" class="tag"> <span>父母恩情不能忘经典句子(必备20句)</span></a> <a href="/t/林徽因理性的经典句子(150句).html" class="tag"> <span>林徽因理性的经典句子(150句)</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=1732680432"></script> <script type="text/javascript" src="/assets/libs/bootstrap/dist/js/bootstrap.min.js?v=1732680432"></script> <script type="text/javascript" src="/assets/libs/fastadmin-layer/dist/layer.js?v=1732680432"></script> <script type="text/javascript" src="/assets/libs/art-template/dist/template-native.js?v=1732680432"></script> <script type="text/javascript" src="/assets/addons/cms/js/jquery.autocomplete.js?v=1732680432"></script> <script type="text/javascript" src="/assets/addons/cms/js/swiper.min.js?v=1732680432"></script> <script type="text/javascript" src="/assets/addons/cms/js/share.min.js?v=1732680432"></script> <script type="text/javascript" src="/assets/addons/cms/js/cms.js?v=1732680432"></script> <script type="text/javascript" src="/assets/addons/cms/js/common.js?v=1732680432"></script> </body> </html>