gpt4 book ai didi

html - 列表社交媒体链接的 ARIA 作用

转载 作者:行者123 更新时间:2023-12-05 07:57:31 28 4
gpt4 key购买 nike

我正在努力提高网站的可访问性,但我不知道如何在页脚中标记社交媒体链接列表。这些链接指向我在 facecook、twitter 等上的帐户。我不想用 role="navigation" 标记这些链接,因为它们不用于导航网站。

这是一个相当常见的设计模式,但我似乎找不到答案。

最佳答案

我将应用于整个页脚的角色是' contentInfo ':

Examples of information included in this region of the page are copyrights and links to privacy statements.

User agents SHOULD treat elements with the role of contentinfo as navigational landmarks.

所以它是关于(主要)内容,但不是其中的一部分,并且(可能)被视为一种导航。 contentInfo 页脚也可以包含其他链接,这很好。

关于html - 列表社交媒体链接的 ARIA 作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27035874/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com