常用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.jingyusms.com/news/212015.html" target="_blank" title="常用HTML代码大全(初学者必备)">https://www.jingyusms.com/news/212015.html</a></p> <p><strong>免责声明:</strong>本站内容仅用于学习参考,信息和图片素材来源于互联网,如内容侵权与违规,请联系我们进行删除,我们将在三个工作日内处理。联系邮箱:1263731198#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/41.jpg" alt="常用HTML代码大全(初学者必备)"> <div class="viewNum"> <img class="viewNumIcon" src="/static/default/styles/images/lookIcon.png" alt="常用HTML代码大全(初学者必备)"> <span class="tipViewNum">3338</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/222721.html" title="中国移动网上上海营业厅官网" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/124.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/204302.html" title="iScroll是什么?iScroll用法实例详解" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/148.jpg" alt="iScroll是什么?iScroll用法实例详解"> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">iScroll是什么?iScroll用法实例详解</div> <div class="readList-tips"> <span class="readList-date">2025-09-07</span> </div> </div> </a> <a href="/news/188187.html" title="网络顾问有哪些职责" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/194.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/176433.html" title="什么杀毒软件好用电脑 杀毒软件排行榜" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/4.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/222825.html" title="中国移动手机号码大全及套餐查询(移动号码网上选号)" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/147.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/213357.html" title="PHP如何使用urlencode()函数进行url编码?(代码示例)" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/245.jpg" alt="PHP如何使用urlencode()函数进行url编码?(代码示例)"> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">PHP如何使用urlencode()函数进行url编码?(代码示例)</div> <div class="readList-tips"> <span class="readList-date">2025-09-07</span> </div> </div> </a> <a href="/news/218226.html" title="传统外贸和跨境电商区别有哪些?" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/244.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/233369.html" title="淘宝全球购卖家怎么开通海外直邮?" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/99.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/208850.html" title="word行距1.25倍怎么设置?" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/200.jpg" alt="word行距1.25倍怎么设置?"> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">word行距1.25倍怎么设置?</div> <div class="readList-tips"> <span class="readList-date">2025-09-07</span> </div> </div> </a> <a href="/news/257770.html" title="京东自营有运费险吗(京东怎么购买运费险)" class="readList-item"> <img class="readList-item-l" src="/static/default/styles/imgs/46.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> </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="/" title="免去" class="hotList left">免去</a> <a href="/" title="ova" class="hotList left">ova</a> <a href="/" title="约会" class="hotList left">约会</a> <a href="/" title="9926" class="hotList left">9926</a> <a href="/" title="公文包" class="hotList left">公文包</a> <a href="/" title="Nexus3" class="hotList left">Nexus3</a> <a href="/" title="乐师" class="hotList left">乐师</a> <a href="/" title="panel" class="hotList left">panel</a> <a href="/" title="LinearProgressIndicator" class="hotList left">LinearProgressIndicator</a> <a href="/" title="evernote" class="hotList left">evernote</a> <a href="/" title="读机" class="hotList left">读机</a> <a href="/" 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/206426.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/218293.html" class="question-list-item text2" title="sns是什么?"> <span class="question-list-item-dot"></span> <span class="list-item-text text2">sns是什么?</span> </a> <a href="/news/255695.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/248294.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/195575.html" class="question-list-item text2" title="本网站主机在美国"> <span class="question-list-item-dot"></span> <span class="list-item-text text2">本网站主机在美国</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>