Do I need role=“button” on a <button>?

前端 未结 7 674
-上瘾入骨i
-上瘾入骨i 2020-12-15 22:59

I\'ve noticed in all of Bootstrap\'s examples using button elements, they include role=\"button\" (and type=\"button\"), such as:

相关标签:
7条回答
  • 2020-12-15 23:33

    role="button"

    This is not mandatory for Bootstrap

    0 讨论(0)
提交回复
热议问题