美文网首页
不成对的 HTML tag

不成对的 HTML tag

作者: 成江 | 来源:发表于2017-12-28 01:54 被阅读5次
    • <br>
      If you are outputting HTML on a regular website you can use <br> or <br/> , both are valid anytime you are serving HTML5 as text/html. If you are serving HTML5 as XHTML (i.e. content type application/xhtml+xml, with an XML declaration) then you must use a self closing tag like so: <br/>
    • <hr>
      In HTML5, the <hr> tag defines a thematic break.
      In HTML 4.01, the <hr> tag represents a horizontal rule.
      However, the <hr> tag may still be displayed as a horizontal rule in visual browsers.

    相关文章

      网友评论

          本文标题:不成对的 HTML tag

          本文链接:https://www.haomeiwen.com/subject/lwxmgxtx.html