Is it safe to omit and tags?

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

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



        
      
      
      
10条回答
  •  一整个雨季
    2020-12-05 23:26

    I advise always closing your tags. There's not really too good of a reason not to. Browsers can handle some improperly closed tags, but just to be on the safe side (and it's good programming practice!), close your tags!

提交回复
热议问题