常用HTML代码大全(初学者必备)

2025-09-07

对于前端工作人员来说,每天都会接触到p和css ,有些知识不常用就容易忘了,最近把常用的html代码进行了总结,写了篇文章,方便自己以后查看,同时也分享给大家,希望对你有用。

文件类型 (放在档案的开头与结尾)

文件主题

(必须放在「文头」区块内)<p>文头</p> (描述性资料,像是「主题」)<p>文体</p> (文件本体)<p>立即学习“前端免费学习笔记(深入)”;</p><p>标题<h/>?> (从1到6,有六层选择)</p><p>标题的对齐 <h/>?></p><p>区分</p><p>区分的对齐 </p><p>引文区块</p> (通常会内缩)<p>强调<em/> (通常会以斜体显示)</p><p>特别强调<strong/> (通常会以加粗显示)</p><p>引文<cite/> (通常会以斜体显示)</p><p>码<code/> (显示原始码之用)</p><p>样本<samp/></p><p>键盘输入<kbd/></p><p>变数<var/></p><p>定义<dfn/> (有些浏览器不提供)</p><p>地址 </p><p>大字<big/></p><p>小字<small/></p><p>与外观相关的标签(作者自订的表现方式)</p><p>加粗<b/></p><p>斜体<i/></p><p>底线 (尚有些浏览器不提供)</p><p>删除线<s/> (尚有些浏览器不提供)</p><p>下标</p><p>上标</p><p>打字机体<tt/> (用单空格字型显示)</p><p>预定格式</p><pre/> (保留文件中空格的大小)<p>预定格式的宽度</p><pre width="?"/>(以字元计算)<p>向中看齐</p><center/> (文字与图片都可以)<p>闪耀<blink/> (有史以来最被嘲弄的标签)</p><p>字体大小 (从1到7)</p><p>改变字体大小 </p><p>基本字体大小 <basefontsize> (从1到7; 内定为3)</basefontsize></p><p>字体颜色 ($$为颜色代码)</p></div> <p><strong>标签:</strong> <a href="/k-html%E4%BB%A3%E7%A0%81%E5%A4%A7%E5%85%A8.html" title="html代码大全">html代码大全</a> </p> <p><strong>本文地址:</strong><a href="https://www.shjdjh.com/news/212015.html" target="_blank" title="常用HTML代码大全(初学者必备)">https://www.shjdjh.com/news/212015.html</a></p> <p><strong>免责声明:</strong>本站内容仅用于学习参考,信息和图片素材来源于互联网,如内容侵权与违规,请联系我们进行删除,我们将在三个工作日内处理。联系邮箱:cloudinto#qq.com(把#换成@) </p> </div> </div> <div class="articles_page clearfix"> <a href="/news/212014.html" class="articles_page_l" title="mbps和mb/s怎么换算"> <div class="articles_page_l_btn"> <img class="btn_icon" style="margin-right:5px;" src="/static/default/styles/images/icon_pre.png" alt="mbps和mb/s怎么换算"> <span class="btn_text">上一篇</span> </div> <div class="articles_page_l_text">mbps和mb/s怎么换算</div> </a> <a href="/news/212016.html" class="articles_page_r" title="人民币小写转大写"> <div class="articles_page_r_btn" > <span class="btn_text">下一篇</span> <img class="btn_icon" style="margin-left:5px;" src="/static/default/styles/images/icon-next.png" alt="人民币小写转大写"> </div> <div class="articles_page_r_text" >人民币小写转大写</div> </a> </div> <div class="recommArticle"> <div class="preArtTitle clearfix" > <div class="title">文章推荐</div> </div> <div> <div class="recArticleItems clearfix"> <div class="articleItem"> <a href="/news/212015.html" title="常用HTML代码大全(初学者必备)"> <div class="articleItemTop"> <img class="articleItemImg" src="/static/default/styles/imgs/242.jpg" alt="常用HTML代码大全(初学者必备)"> <div class="viewNum"> <img class="viewNumIcon" src="/static/default/styles/images/lookIcon.png" alt="常用HTML代码大全(初学者必备)"> <span class="tipViewNum">8622</span> </div> </div> <div class="articleItemInfo"> <div class="articleItemText">常用HTML代码大全(初学者必备)</div> <div class="articleItemBottomInfo"> <span class="articleItemBottomTip">2025-09-07</span> </div> </div> </a> </div> </div> </div> </div> </div> <div class="right contentRight" style="position:relative;"> <div class="recommRead"> <div class="recommReadTitle yellowafter" > <span>推荐阅读</span> </div> <div class="readList"> <a href="/news/250660.html" title="如何避免黑帽SEO技术对百度收录的负面影响?" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/197.jpg" alt="如何避免黑帽SEO技术对百度收录的负面影响?"> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">如何避免黑帽SEO技术对百度收录的负面影响?</div> <div class="readList-tips"> <span class="readList-date">2025-09-07</span> </div> </div> </a> <a href="/news/170852.html" title="苹果双系统如何切换 苹果电脑双系统的切换步骤" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/160.jpg" alt="苹果双系统如何切换 苹果电脑双系统的切换步骤"> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">苹果双系统如何切换 苹果电脑双系统的切换步骤</div> <div class="readList-tips"> <span class="readList-date">2025-09-07</span> </div> </div> </a> <a href="/news/182122.html" title="wifi关闭了怎么打开" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/52.jpg" alt="wifi关闭了怎么打开"> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">wifi关闭了怎么打开</div> <div class="readList-tips"> <span class="readList-date">2025-09-07</span> </div> </div> </a> <a href="/news/216980.html" title="花市是指什么网站" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/134.jpg" alt="花市是指什么网站"> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">花市是指什么网站</div> <div class="readList-tips"> <span class="readList-date">2025-09-07</span> </div> </div> </a> <a href="/news/223675.html" title="中国移动号码选号大全最新(中国移动电话号码选号)" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/84.jpg" alt="中国移动号码选号大全最新(中国移动电话号码选号)"> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">中国移动号码选号大全最新(中国移动电话号码选号)</div> <div class="readList-tips"> <span class="readList-date">2025-09-07</span> </div> </div> </a> <a href="/news/245952.html" title="成功建设一个网站的四个关键(成功建设一个网站的四个关键是什么)" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/37.jpg" alt="成功建设一个网站的四个关键(成功建设一个网站的四个关键是什么)"> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">成功建设一个网站的四个关键(成功建设一个网站的四个关键是什么)</div> <div class="readList-tips"> <span class="readList-date">2025-09-07</span> </div> </div> </a> <a href="/news/174040.html" title="tplink路由器怎么设置wifi密码" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/217.jpg" alt="tplink路由器怎么设置wifi密码"> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">tplink路由器怎么设置wifi密码</div> <div class="readList-tips"> <span class="readList-date">2025-09-07</span> </div> </div> </a> <a href="/news/185816.html" title="百度收录入口在哪里查询" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/108.jpg" alt="百度收录入口在哪里查询"> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">百度收录入口在哪里查询</div> <div class="readList-tips"> <span class="readList-date">2025-09-07</span> </div> </div> </a> <a href="/news/228573.html" title="永辉超市超级物种是什么意思" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/87.jpg" alt="永辉超市超级物种是什么意思"> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">永辉超市超级物种是什么意思</div> <div class="readList-tips"> <span class="readList-date">2025-09-07</span> </div> </div> </a> <a href="/news/178673.html" title="evdo上网卡上不了网怎么办 evdo上网卡上不了网原因及解决" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/225.jpg" alt="evdo上网卡上不了网怎么办 evdo上网卡上不了网原因及解决"> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">evdo上网卡上不了网怎么办 evdo上网卡上不了网原因及解决</div> <div class="readList-tips"> <span class="readList-date">2025-09-07</span> </div> </div> </a> </div> </div><div class="hotTag" style="margin-bottom: 12px;"> <div class="hotFindTitle yellowafter" style="line-height:normal;padding-left:16px;font-size:20px;">热门标签</div> <div class="hotFindList clearfix"> <a href="/tags/117756.html" title="母婴的" class="hotList left">母婴的</a> <a href="/" title="margintop" class="hotList left">margintop</a> <a href="/" title="如何增加网站的收录速度和数量的方法" class="hotList left">如何增加网站的收录速度和数量的方法</a> <a href="/" title="范围内" class="hotList left">范围内</a> <a href="/" title="这些seo技巧可以帮助你的网站更快被收录英语" class="hotList left">这些seo技巧可以帮助你的网站更快被收录英语</a> <a href="/" title="网站未收录的原因及解决方法是什么" class="hotList left">网站未收录的原因及解决方法是什么</a> <a href="/" title="3时" class="hotList left">3时</a> <a href="/" title="神武" class="hotList left">神武</a> <a href="/" title="搜索引擎优化:如何让你的网站更容易被收录到" class="hotList left">搜索引擎优化:如何让你的网站更容易被收录到</a> <a href="/" title="申请方式" class="hotList left">申请方式</a> <a href="/tags/117746.html" title="占领用" class="hotList left">占领用</a> <a href="/tags/117745.html" title="真正的人" class="hotList left">真正的人</a> </div> </div> <div class="new-question"> <div class="recommReadTitle yellowafter" > <span>推荐百科</span> <a class="lookMore" href="/c/67.html" title="推荐百科">查看更多</a> </div> <div class="question-list"> <a href="/news/225594.html" class="question-list-item text2" title="电脑突然开不了机是什么原因"> <span class="question-list-item-dot"></span> <span class="list-item-text text2">电脑突然开不了机是什么原因</span> </a> <a href="/news/206702.html" class="question-list-item text2" title="excel表格斜线怎么做?"> <span class="question-list-item-dot"></span> <span class="list-item-text text2">excel表格斜线怎么做?</span> </a> <a href="/news/195694.html" class="question-list-item text2" title="lnk是什么文件"> <span class="question-list-item-dot"></span> <span class="list-item-text text2">lnk是什么文件</span> </a> <a href="/news/250764.html" class="question-list-item text2" title="深圳最好的网站设计,商城网站建设需要从哪些方面来入手?"> <span class="question-list-item-dot"></span> <span class="list-item-text text2">深圳最好的网站设计,商城网站建设需要从哪些方面来入手?</span> </a> <a href="/news/182935.html" class="question-list-item text2" title="佳能G1X Mark II采用什么图像处理器?有什么图片格式?"> <span class="question-list-item-dot"></span> <span class="list-item-text text2">佳能G1X Mark II采用什么图像处理器?有什么图片格式?</span> </a> </div> </div> </div> </div> </div> <div class="footer mobileHide"> <div class="footerLi"> <div class="container footerBottom"> <p> <span>Powered by CLOUDINTO PTE. LTD. © 2010-2025 有料笔记 </span> <a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow"></a> </p> <p><a href="/sitemap.xml">网站地图</a></p> </div> </div> </div> <script src="/static/default/styles/js/jquery-2.1.1.min.js"></script> <script src="/static/default/styles/js/swiper.min.js"></script> <script src="/static/default/styles/js/main.js"></script> </html>