869 B
869 B
id | title | challengeType | videoUrl | forumTopicId |
---|---|---|---|---|
587d7788367417b2b2512aa3 | 使用 footer 元素使屏幕阅读器更容易导航 | 0 | https://scrimba.com/c/crVrDh8 | 301022 |
--description--
与header
和nav
类似,footer
也具有语义化特性,可以使辅助设备快速定位到它。它位于页面底部,用于呈现版权信息或者相关文档链接。
--instructions--
Camper Cat 的忍者训练页面进展顺利。请将他在页面底部呈现版权信息的div
标签更改为footer
标签。
--hints--
你的代码中应该包含 1 个footer
标签。
assert($('footer').length == 1);
你的代码中不应包含div
标签。
assert($('div').length == 0);
你代码中的footer
应该是闭合的。
assert(code.match(/<footer>\s*© 2018 Camper Cat\s*<\/footer>/g));