HTML5 test questions Finishing Ⅰ

1. in HTML5, which combinations of elements for title elements?

The answer: <HGroup>

 

2.HTML5 in which elements are no longer supported?

答案:<font>,<acronym>,<applet>,<basefont>,<big>,<center>,<dir>,<frame>,<frameset>,<noframes>,<strike>,<tt>

 

3. In HTML5, onblur and onfocus that?

Answer: Event Properties

 

4. In HTML5, the new multimedia elements are what? What is the meaning?

<Audio>: custom audio content

<Video>: definition of video (video or movie)

<Source>: definition of multimedia resources <video> and <audio>

<Embed>: definition of embedded content, such as plug-ins.

<Track>: text track to a predetermined external medium such as <video> and <audio> element and the like.

 

5. no longer supported in HTML5?

The answer: rel

 

6. in HTML5, which is the method used to obtain the user's current location?

The answer: getCurrentPosition ()

 

7. The new HTML5 global property, "contenteditable" for?

Answer:  specifies whether the element content is editable.

 

8. In HTML5, contextmenu and spellcheck that?

The answer: HTML attributes

 

9. In HTML5, you can embed SVG elements directly into the HTML page?

Answer: correct.

 

10. Graphics SVG is defined by what format?

The answer: XML format.

 

11.HTML5 the <canvas> element is used?

Answer: Draw graphics.

 

12. Which HTML5 built-in objects on the canvas for drawing?

The answer: getContext.

 

13. in HTML5, which attribute is used to specify the input field is required?

The answer: required.

 

14. What kind of input types defined slider control?

The answer: the Range.

 

15. Which type of input is used to define weeks and in control (no time zone)?

The answer: Week.

 

16. Which HTML5 elements are used to display the scalar measurement within a known range?

The answer: <Meter>.

 

17. Which label is used to specify inline frames?

The answer:  <iframes.>

iframe element creates an inline frame (that is, within the framework of the row) contains another document.

 

18.SVG How many types of graphic object?

Answer: 3 .

In SVG, allowing three image object exists, namely, vector images, bitmap and text.

 

19.HTML 5 supports all form controls in HTML 4?

Answer: correct.

 

20.DHTML that?

The answer: DHTML is an HTML page with the dynamic characteristics of the art, for most people, DHTML means a combination of HTML, CSS and JavaScript.

1、HTML

2、javascript

3、HTML Dom

4、CSS

 

21. Which is the html5 the input type attribute?

答案:HTML5 中的 input 类型包含 email、url、number、range、search 等属性,每一种属性都具有不同的功能。

 

22.Canvas 能够使用___绘制 2D 图形?

答案:JavaScript。

 

23.哪个不是 html5 中使用的媒体元素?

答案:<time> 标签定义日期或时间。

 

24.SVG 是什么意思?

答案:可伸缩矢量图形。

 

25.是否可以将 HTML 5 用于移动应用程序?

答案:可以。

 

26.input 元素的哪个类型属性将元素的值设置为表示一定范围内的数字?

答案:range。

具有 type 属性的 input 元素,其值为 “range”,表示将元素的值设置为包含一定范围内数字值的输入域。

 

27.HTML5 之前的 HTML 版本是什么?

HTML5 是 HTML 最新的修订版本,由万维网联盟(W3C)于 2014 年 10 月完成标准制定。目标是取代 1999 年所制定的 HTML 4.01 和 XHTML 1.0 标准。

 

28.input 元素中,下列哪个类型属性定义了输入电话号码的控件?

答案:tel。

具有 type 属性的 input 元素,其值为 “tel”,表示用于输入电话号码的单行纯文本编辑控件。

 

29.哪个元素表示用于生成公钥-私钥对的控件?

答案: keygen。

<keygen> 标签规定用于表单的密钥对生成器字段。当提交表单时,私钥存储在本地,公钥发送到服务器。

 

30.哪个元素表示标记或突出显示的文本以供参考?

答案:mark。

突出显元素指定文本的重要性,mark 元素表示标记或高亮显示以供参考的文档中的文本。

 

31.哪个元素表示导航部分?

答案:nav。

 

32.SVG 定义的图形是_____格式的?

答案:XML。

SVG 是基于 XML 的矢量图像格式。

 

33.关于 article 元素,下列哪个选项是不正确的?

答案:D.

解析:<article> 标签定义外部的内容,contenteditable 属性规定是否可编辑元素的内容。

 

34.哪个属性将连续播放嵌入到 audio 元素中的音频?

答案:loop。

loop 属性规定当音频结束后将重新开始播放。

 

35.下列哪个浏览器可能不支持以下代码来创建矩形?

<!DOCTYPE html>
<html> <body> <canvas id="myCanvas" width="350" height="200" style="border:1px solid red;"> Your browser does not support the HTML5 canvas tag. </canvas> </body> </html>

答案:Internet Explorer 7.0



参考:菜鸟教程。

Guess you like

Origin www.cnblogs.com/shihaiying/p/11828213.html