문제

Is role recommended to use in my html5 markup or? And why should I use it if the answer is yes.

Thank you.

도움이 되었습니까?

해결책

Roles are pragmas, designed to provide information directly to accessibility technologies, rather than using HTML5 semantics. In the cases where the same information can be conveyed by either via native HTML or via the role attribute, for example <nav> versus role='navigation', the native semantics should be used. This is generally the case for landmark roles. For other roles, using them can help users with disabilities get the most from your content, so they may benefit from it to the same extent as everyone else.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top