Is it bad to use uppercase letters for html tags?

前端 未结 6 1867
星月不相逢
星月不相逢 2020-11-27 19:04

What is the best practice?

  or 

And why we should stick with one particular case?

However all browsers see

6条回答
  •  遥遥无期
    2020-11-27 19:16

    Basically HTML is case insensitive. you can use lower case or upper case when entering HTML tags or HTML tag attributes but with XHTML lower case is required. In preparation for future upgrades, use lower case HTML tags and HTML tag attributes

提交回复
热议问题