HTML 测验题

通过对HTML 教程系统地学习,相信你已全面掌握 HTML 最佳实践与可访问性知识点,为了巩固所学的内容,我们准备了一个小测验。

通过这个测验,您可以检验自己对 HTML 的掌握程度,发现可能需要进一步巩固的地方。


  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

1. 哪个属性用于为图像添加替代文本以提高可访问性?

  • <img src="...">
  • <img alt="...">
  • <img title="...">
  • <img description="...">

2. 哪个标签用于定义文档的主内容区域?

  • <main>
  • <content>
  • <body>
  • <section>

3. 哪个属性用于提高表单输入字段的可访问性?

  • <input name="...">
  • <input id="...">
  • <input class="...">
  • <input aria-label="...">

4. 哪个标签用于定义导航链接区域?

  • <links>
  • <menu>
  • <nav>
  • <navigation>

5. 哪个HTML5标签用于定义独立的自包含内容?

  • <section>
  • <article>
  • <div>
  • <content>

6. 哪个属性用于指定表格单元格的标题?

  • <th>
  • <td>
  • <title>
  • <header>

7. 哪个标签用于为屏幕阅读器提供隐藏的描述性文本?

  • <hidden>
  • <div style="display:none">
  • <meta>
  • <span aria-hidden="true">

8. 哪个标签用于定义文档的页脚?

  • <bottom>
  • <foot>
  • <footer>
  • <end>

9. 哪个属性用于定义按钮的可访问名称?

  • <button name="...">
  • <button aria-label="...">
  • <button title="...">
  • <button id="...">

10. 哪个标签用于定义重要的强调文本?

  • <strong>
  • <b>
  • <em>
  • <important>

11. 哪个标签用于为表单控件添加标签以提高可访问性?

  • <description>
  • <text>
  • <caption>
  • <label>

12. 哪个属性用于定义页面语言以提高可访问性?

  • <meta charset="...">
  • <head lang="...">
  • <html lang="...">
  • <body language="...">