HTML5 aria-* and role
辅助工具就会知道,这个div实际上是个checkbox的角色,为选中状态。
Add ARIA for screen readers
? ? ARIA attributes provides semantic information to screen readers that is normally conveyed visually.
? ? Note that using ARIA does not automatically implement the standard widget behavior, you'll still need to add focus management and keyboard navigation yourself.