What does role=“button” mean?

前端 未结 3 442
粉色の甜心
粉色の甜心 2021-02-02 05:30

I found that in Google+ Project\'s page that buttons are all made from divs like:

I\'d like to

3条回答
  •  暖寄归人
    2021-02-02 05:49

    The role attribute is used by accessibility software to know what the div does. For more information, see this page.

提交回复
热议问题