精品伊人久久大香线蕉,开心久久婷婷综合中文字幕,杏田冲梨,人妻无码aⅴ不卡中文字幕

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
html中br和br/的區別介紹
answer from stackflow:

Simply <br> is sufficient.

The other forms are there for compatibility with XHTML; to make it possible to write the same code as XHTML, and have it also work as HTML. Some systems that generate HTML may be based on XML generators, and thus not have the ability to output just a bare <br> tag; if you're using such a system, it's fine to use <br/>, it's just not necessary if you don't need to do it.

Very few people actually use XHTML, however. You need to serve your content as application/xhtml+xml for it to be interpreted as XHTML, and that will not work in IE (it will also mean that any small error you make will prevent your page from being displayed, in browsers that do support XHTML). So, most of what looks like XHTML on the web is actually being served, and interpreted, as HTML. See Serving XHTML as text/html Considered Harmful for some more information.

意思就是說:HTML中的規定是<br>空標簽,沒有結束符,但是在XHTML中,規定是<br/>開始標簽后面緊跟結束標簽。

在 XHTML 中,<br> 標簽必須被正確地關閉,比如這樣:<br />。<br> 標簽是空標簽(意味著它沒有結束標簽,因此這是錯誤的:<br></br>)。在 XHTML 中,把結束標簽放在開始標簽中,也就是 <br />。
本站僅提供存儲服務,所有內容均由用戶發布,如發現有害或侵權內容,請點擊舉報
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
jQuery計算兩個文本框中數字之和
HTML與XHTML的區別 - HTML教程,XHTML教程
WEB標準化的過渡方案
WAP網站設計之xhtml mp
HTML規范:標簽,閉合還是不閉合?
想學HTML該從何入手?web前端HTML終極指南
更多類似文章 >>
生活服務
分享 收藏 導長圖 關注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點擊這里聯系客服!

聯系客服

主站蜘蛛池模板: 余江县| 万州区| 沅陵县| 榆社县| 类乌齐县| 汾阳市| 普定县| 新民市| 和平区| 徐闻县| 盈江县| 乾安县| 忻州市| 安阳县| 兴海县| 四会市| 奉节县| 景宁| 乐清市| 都匀市| 财经| 常州市| 东明县| 荣昌县| 信阳市| 黄平县| 柳州市| 永川市| 东明县| 东海县| 枣庄市| 兰考县| 溧阳市| 新疆| 泾川县| 荣昌县| 长泰县| 湘潭县| 邵阳县| 拜泉县| 海城市|