freeCodeCamp/curriculum/challenges/chinese/01-responsive-web-design/applied-accessibility/make-screen-reader-navigati...

869 B

id title challengeType videoUrl forumTopicId
587d7788367417b2b2512aa3 使用 footer 元素使屏幕阅读器更容易导航 0 https://scrimba.com/c/crVrDh8 301022

--description--

headernav类似,footer也具有语义化特性,可以使辅助设备快速定位到它。它位于页面底部,用于呈现版权信息或者相关文档链接。

--instructions--

Camper Cat 的忍者训练页面进展顺利。请将他在页面底部呈现版权信息的div标签更改为footer标签。

--hints--

你的代码中应该包含 1 个footer标签。

assert($('footer').length == 1);

你的代码中不应包含div标签。

assert($('div').length == 0);

你代码中的footer应该是闭合的。

assert(code.match(/<footer>\s*&copy; 2018 Camper Cat\s*<\/footer>/g));

--solutions--