Is it semantically incorrect to put a
or inside of a <button>?

后端 未结 5 1152

I\'d like to do the following, but is it semantically correct?


         


        
5条回答
  •  悲哀的现实
    2020-11-30 13:58

    I'm sure this is heretical, but if you wanted to validate you could always use elements inside your button and style them like a

    :

    button span {
    
      display: block;
    
    }

    This validated today. Whether it will validate in ten years is another story...

提交回复
热议问题