项目八单元测试
  1. 以下空白处应填写的正确选项是( )
    <!DOCTYPE html>
    <html>
    <body>
    <input type="_____" name="email" placeholder="请输入邮箱地址">
    </body>
    </html>

  2. A:url B:email C:text D:tel
    答案:email
  3. 在最后一个option标签的value属性中填写的内容应该是( )。
    <!DOCTYPE html>
    <html>
    <body>
    <select name="cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="mercedes">Mercedes</option>
    <option value="_____">其他</option>
    </select>
    </body>
    </html>

  4. A:name B:other C:email D:sex
  5. 以下选择正确的是( )。
    <h_____>这是三级标题</h_____>

  6. A:4 B:1 C:2 D:3
  7. 以下选择正确的是( )。
    <textarea name="message" rows="4" _____ ="50"></textarea>

  8. A:name B:cols C:id D:value
  9. 以下选择正确的是( )。
    <button type="_____">点击我实现普通按钮操作</button>(答案:button)

  10. A:button B:none C:reset D:submit
  11. HTML 表单中的所有输入元素都必须包含 name 属性。( )

  12. A:对 B:错
  13. HTML 表单中的 method 属性用于定义表单数据的发送方式,可以设置为 get 或 post。( )

  14. A:错 B:对
  15. HTML 表单中的 action 属性用于定义表单提交后的处理程序,只能设置为 URL。( )

  16. A:对 B:错
  17. HTML 表单中的 <select> 标签可以包含多个 <option> 标签,用户只能选择其中一个选项。( )

  18. A:错 B:对
  19. HTML 表单中的 <input> 标签只能用于定义输入框。( )

  20. A:错 B:对
  21. 若要产生一个图像提交按钮,以下方法中,正确的是( ) 。

  22. A:<input type="textarea" data-src="images/22.png" name="image2"> B:<input type="text" data-src="images/22.png" name="image2"> C:<input type="image" data-src="images/22.png" name="image2"> D:<input type="text" data-src="images/22.png" name="image2">
  23. 若要产生一个4行30列的多行文本域,以下方法中,正确的是( ) 。

  24. A:<textarea rows="4" cols="30" name="txtinfo"> B:<textarea rows="4" cols="30" name="txtinfo"></textarea> C:<input type="textarea" rows="4" cols="30" name="txtinfo"> D:<textarea rows="30" cols="4” name="txtinfo"></textarea>
  25. 当用户填写完信息后单击普通按钮做提交操作。( )

  26. A:错 B:对
  27. method属性用来定义处理程序从表单中获得信息的方式,可取值为get或post中的一个。其中post方式传送的数据量比较小。( )

  28. A:错 B:对
  29. <input type="text" value="username">中的value属性是指表单提交后将传送到服务器的值。( )

  30. A:对 B:错

温馨提示支付 ¥3.00 元后可查看付费内容,请先翻页预览!
点赞(1) dxwkbang
返回
顶部