What are all the valid self-closing elements in XHTML (as implemented by the major browsers)?

前端 未结 13 1593
夕颜
夕颜 2020-11-22 05:16

What are all the valid self-closing elements (e.g.
) in XHTML (as implemented by the major browsers)?

I know that XHTML technically allows any element to

13条回答
  •  旧巷少年郎
    2020-11-22 05:58

    One element to be very careful with on this topic is the > element. If you have an external source file, it WILL cause problems when you self close it. Try it:

    
    
    
                                     
                  
提交回复
热议问题