Is it safe to omit and tags?

后端 未结 10 2077
广开言路
广开言路 2020-12-05 22:41

According to w3c and tags are optional, so the following table is perfectly valid.



        
      
      
      
10条回答
  •  隐瞒了意图╮
    2020-12-05 23:32

    This is valid HTML but invalid XHTML.
    There's nothing intrinsically wrong with it.

    If you look at the source for Google's privacy policy (or any of their other pages), you'll find some much terser HTML.

    It does mean that your page will not be usable by an XML parser.

提交回复
热议问题