2023年12月8日发(作者:)

大一html5题库

[if !supportLists]1. [endif]html5文档结构由和( )两部分组成?html5文档结构由和( )两部分组成?

A

A.

B.

C.

D.</p><p>[if !supportLists]2. [endif]html5文档的树状结构中,( )标签为文档的根节点,位于结构中的最顶层。html5文档的树状结构中,( )标签为文档的根节点,位于结构中的最顶层。</p><p>A</p><p>A. <html></p><p>B.<head></p><p>C. <body></p><p>D.<title></p><p>[if !supportLists]3. [endif]W3C 制定的web标准以下不包括( )W3C 制定的web标准以下不包括( )</p><p>C</p><p>A.结构化标准语言</p><p></p><p>eaver</p><p></p><p>[if !supportLists]4. [endif]HTML5中doctype标签的正确定义是( )HTML5中doctype标签的正确定义是( )</p><p>D</p><p>A.<!DOCTYPE html PUBLIC "-//W3C//DTD// XHTML 1.0 Transitional//EN" "/TR/"></p><p>B.<!DOCTYPE html PUBLIC "-//W3C//DTD// XHTML 1.0 Transitional//EN" "/TR/xhtml4/"></p><p>C.<!doctype html5></p><p>D.<!doctype html></p><p>[if !supportLists]5. [endif]()标签显示HTML5文档的标题()标签显示HTML5文档的标题</p><p>D</p><p></p><p></p><p></p><p></p><p>[if !supportLists]6. [endif]链接显示的内容为图片的正确写法是 ( )链接显示的内容为图片的正确写法是 ( )</p><p>A</p><p>A.<a href="链接地址"></a></p><p>B.<a src="链接地址"></a></p><p>C.<a src="链接地址"></a></p><p>D.<href a="链接地址"></href></p><p>[if !supportLists]7. [endif]在html5标签中以下正确的注释声明是( )在html5标签中以下正确的注释声明是( )</p><p>B</p><p>A./*这是–注释/</p><p>B. <!--这是注释--></p><p>C./这是注释/</p><p>D.//这是注释</p><p>[if !supportLists]8. [endif]下面标记中,()表示在标记的位置添加一个换行下面标记中,()表示在标记的位置添加一个换行</p><p>C</p><p>A.<h1></p><p>B. <enter></p><p>C.</p><p></p><p>D.<hr></p><p>[if !supportLists]9. [endif]在html5中使用( )标签设置网页标题.在html5中使用( )标签设置网页标题.</p><p>B</p><p>A.<head></p><p>B.<title></p><p>C.<meta></p><p>D.<body></p><p>[if !supportLists]10. [endif]</p><p>A</p><p></p><p></p><p></p><p></p><p>[if !supportLists]11. [endif]html5是一种( )的语言。html5是一种( )的语言。</p><p>B</p><p>A.二进制</p><p>B.超文本标记</p><p>C.自然语言</p><p>D.高级语言</p><p>[if !supportLists]12. [endif]HTML5网页文件的扩展名为( )HTML5网页文件的扩展名为( )</p><p>C</p><p>A..aspx</p><ss</p><p>C..html或.htm</p><</p><p>[if !supportLists]13. [endif]在html5网页中指定字符编码格式的标签是( )在html5网页中指定字符编码格式的标签是( )</p><p>B</p><p>A.<head></p><p>B.<meta></p><p>C.<title></p><p>D.<code></p><p>[if !supportLists]14. [endif]html5标签中标题文字要设置对齐方式,需要设置属性( )html5标签中标题文字要设置对齐方式,需要设置属性( )</p><p>A</p><p></p><p></p><p></p><p></p><p>[if !supportLists]15. [endif]html5中显示水平线的标签是( )html5中显示水平线的标签是( )</p><p>C</p><p>A.<a></p><p>B.<line></p><p>C.<hr></p><p>D.<ul></p><p>[if !supportLists]16. [endif]在html5标签属性align的可选值中不包括( )在html5标签属性align的可选值中不包括( )</p><p>D</p><p></p><p></p><p></p><p></p><p>[if !supportLists]17. [endif]在html5中,下面关于文件路径的说法错误的是( )在html5中,下面关于文件路径的说法错误的是( )</p><p>C</p><p>A.文件路径指文件存储的位置</p><p>B.“../”用于返回当前目录的上一级目录。</p><p>C.“../”用于返回当前目录的下一级目录。</p><p>D.访问下一级目录直接输入相应的目录名即可。</p><p>[if !supportLists]18. [endif]在html5页面标记中,用于设置文本框显示宽度的属性是( )在html5页面标记中,用于设置文本框显示宽度的属性是( )</p><p>A</p><p></p><p>gth</p><p></p><p></p><p>[if !supportLists]19. [endif]在html5页面中,下列不属于文本标签样式属性的是( )在html5页面中,下列不属于文本标签样式属性的是( )</p><p>D</p><p></p><p></p><p></p><p></p><p>[if !supportLists]20. [endif]以下正确设置网页标题为“HTML5网页”的代码是( )以下正确设置网页标题为“HTML5网页”的代码是( )</p><p>C</p><p>A.<head>HTML5网页</head></p><p>B.<t>HTML5网页</t></p><p>C.<tltle>HTML5网页

D.HTML5网页

[if !supportLists]21. [endif]关于br标签和p标签,下列说法错误的是( )关于br标签和p标签,下列说法错误的是( )

B

A.p标签表示以段落的方式组织内容。

标签可以设置显示文本

为换行标签

D.p标签align属性用于设置标签内容的水平对齐方式

[if !supportLists]22. [endif]在html5页面标记中,标题文字最大的标签是( )在html5页面标记中,标题文字最大的标签是( )

A

A.h1

B.h2

C.h3

D.h4

[if !supportLists]23. [endif]在html5页面标记中,用作空格标记的代码是( )在html5页面标记中,用作空格标记的代码是( )

A

A.

C.@import

D.!doctype

[if !supportLists]24. [endif]在html5页面标记中,标题文字最小的标签是( )在html5页面标记中,标题文字最小的标签是( )

C

A.h1

B.h5

C.h6

D.h7

[if !supportLists]25. [endif]网页链接中的文件路径分为()网页链接中的文件路径分为()

C

A.相对路径和固定路径

B.固定路径和超级路径

C.相对路径和绝对路径

D.跳转路径和绝对路径

[if !supportLists]26. [endif]以下在链接中使用锚点正确的方式是()以下在链接中使用锚点正确的方式是()

A

A.锚点链接

B.锚点链接

C.锚点链接

D.锚点链接

[if !supportLists]27. [endif]以下能让图片与文字居中对齐的属性设置是()以下能让图片与文字居中对齐的属性设置是()

A

A.

B.

C.

D.

[if !supportLists]28. [endif]下列那个标签是行级标签()下列那个标签是行级标签()

B

D.h1

[if !supportLists]29. [endif]在html5页面标记中,用于定义表格中行的标签是( )在html5页面标记中,用于定义表格中行的标签是( )

B

A....

B....

C....

D....

[if !supportLists]30. [endif]在表格中表示单元格的标签是()在表格中表示单元格的标签是()

C

A.

B.

C.

...

B.

...

C.

...

D.

[if !supportLists]42. [endif]在html5页面中,要使表格的边框不显示,应设置border的值为( )在html5页面中,要使表格的边框不显示,应设置border的值为( )

B

A.1

B.0

C.2

D.3

[if !supportLists]43. [endif]在html5中,以下关于标签div和span的说法错误的是( )在html5中,以下关于标签div和span的说法错误的是( )

D

标签不能设置宽和高,因为它是行级元素

B.可以设置span标签的display属性,将其改为块状元素

标签显示时将独占一行

标签不能变为行内元素

[if !supportLists]44. [endif]html5标签中无序列表的type属性值不包括下列哪一个( )html5标签中无序列表的type属性值不包括下列哪一个( )

D

[if !supportLists]45. [endif]分析下面的html5代码片断,则选项中的说法错误的是( )分析下面的html5代码片断,则选项中的说法错误的是( )

D.

[if !supportLists]31. [endif]在html5中,以下正确表示无序列表的代码是( )在html5中,以下正确表示无序列表的代码是( )

B

A.

    • ...

      B.

      • ...

      C.

      1. ...

      D.

      1. ...

        [if !supportLists]32. [endif]html5 内容标签分为两大类,分别是( )html5 内容标签分为两大类,分别是( )

        A

        A.行级标签和块级标签

        B.表格标签和块级标签

        C.块级标签和表单标签

        D.表单标签和行级标签

        [if !supportLists]33. [endif]html5中插入音频文件的标签是( )html5中插入音频文件的标签是( )

        A

        A.

        B.

        C.

        D.

        [if !supportLists]34. [endif]html5中插入视频文件的标签是( )html5中插入视频文件的标签是( )

        D

        A.

        B.

        C.

        D.

        [if !supportLists]35. [endif]在表格中要实现跨行需要设置()属性在表格中要实现跨行需要设置()属性

        B

        n

        n

        n

        [if !supportLists]36. [endif]html5标签中设置表格背景颜色的属性是( )html5标签中设置表格背景颜色的属性是( )

        A

        r

        ound

        oundcolor

        [if !supportLists]37. [endif]在表格标签中,使用什么属性设置表格边框()在表格标签中,使用什么属性设置表格边框()

        C

        ound-color

        ound

        -width

        [if !supportLists]38. [endif]在html5中常见列表包括( )在html5中常见列表包括( )

        ABD

        A.无序列表

        B.有序列表

        C.扩展列表

        D.定义列表

        [if !supportLists]39. [endif]在html5中可以使用表格来显示数据,下面( )标签用于创建表格?在html5中可以使用表格来显示数据,下面( )标签用于创建表格?

        A

        A.

        B.

        C.

        D.

        [if !supportLists]40. [endif]在标准文档流中,块级元素默认的排列顺序是在标准文档流中,块级元素默认的排列顺序是()()

        B

        A.从上到下,从上到下

        B.从上到下,从左到右

        C.从左到右,从上到下

        D.从左到右,从左到右

        [if !supportLists]41. [endif]表格中某一行跨2行,正确的写法的是( )表格中某一行跨2行,正确的写法的是( )

        A

        A.

  • ...

    bordercolor="yellow" cellspacing="0" cellpadding="5">

    bordercolor="yellow" cellspacing="0" cellpadding="5">

    colspan="3">音像

    书籍书籍
    colspan="3">音像

    B

    A.表格共5列,“书籍”跨2列,“音像”跨3列

    B.表格的背景颜色为yellow

    C.“书籍”和“音像”所在行的背景色为red

    D.表格中单元格间距为0,单元格填充为5

    [if !supportLists]46. [endif]table标签中cellspacing和cellpadding属性的含义正确的是( )table标签中cellspacing和cellpadding属性的含义正确的是( )

    C

    A.单元格间距,边框

    B.边框,单元格间距

    C.单元格间距,单元格填充

    D.单元格填充,边框

    [if !supportLists]47. [endif]表格中tr和td标签的含义是( )表格中tr和td标签的含义是( )

    D

    A.行,行间距

    B.列,列间距

    C.表格标题,行

    D.行,列

    [if !supportLists]48. [endif]音频和视频标签名称为()音频和视频标签名称为()

    B

    和audio

    和video

    和audio

    和image

    [if !supportLists]49. [endif]关于表格标签应用说法错误的是()关于表格标签应用说法错误的是()

    D

    A.表格常用标签主要有table,tr,td。

    标签作用是增加一行

    C. td标签作用是增加一个单元格

    D.表格标签可以单独使用

    [if !supportLists]50. [endif]设置单元格的间距与填充可以使用那两种属性( )设置单元格的间距与填充可以使用那两种属性( )

    AB

    acing

    dding

    g

    [if !supportLists]51. [endif]在音频标签中,以下用于向用户显示控件的属性是()在音频标签中,以下用于向用户显示控件的属性是()

    B

    ay

    ls

    d

    unt

    [if !supportLists]52. [endif]在html5中,将表单中input元素的type属性值设置为( )时,用于创建重置按钮。在html5中,将表单中input元素的type属性值设置为( )时,用于创建重置按钮。

    A

    [if !supportLists]53. [endif]html5中表单的标签是( )html5中表单的标签是( )

    B

    A.

    B.

    C.

    D.

    [if !supportLists]54. [endif]input元素的type属性值为( )表示该按钮为复选框按钮。input元素的type属性值为( )表示该按钮为复选框按钮。

    D

    hecked

    ox

    [if !supportLists]55. [endif]下拉框select元素的( )标签用于表示可选择的值下拉框select元素的( )标签用于表示可选择的值

    A

    ox

    [if !supportLists]56. [endif]form的( )属性用于设置表单提交方式。form的( )属性用于设置表单提交方式。

    A

    [if !supportLists]57. [endif]input元素的type属性值为( )表示该按钮为提交按钮。input元素的type属性值为( )表示该按钮为提交按钮。

    A

    [if !supportLists]58. [endif]设置input元素的只读属性以下正确的是( )设置input元素的只读属性以下正确的是( )

    C

    gth

    ly

    d

    [if !supportLists]59. [endif]如果要设置一个表单元素内容为必填项则要设置( )属性来完成。如果要设置一个表单元素内容为必填项则要设置( )属性来完成。

    A

    ed

    [if !supportLists]60. [endif]在表单元素中具有提交功能按钮的是()在表单元素中具有提交功能按钮的是()

    AB

    A.图片按钮

    B.提交按钮

    C.普通按钮

    D.重置按钮

    [if !supportLists]61. [endif]input标签中,maxlength属性可以实现什么操作( )input标签中,maxlength属性可以实现什么操作( )

    A

    A.控制字符数量

    B.类型匹配验证

    C.验证输入范围

    D.自定错误信息

    [if !supportLists]62. [endif]生日可以使用什么表单元素实现()生日可以使用什么表单元素实现()

    D

    A.

    B.

    C.

    [if !supportLists]63. [endif]表单提交默认方式为()表单提交默认方式为()

    A

    rd

    [if !supportLists]64. [endif]如果将下拉框变成多选需要添加()属性如果将下拉框变成多选需要添加()属性

    B

    A. selected

    ple

    [if !supportLists]65. [endif]表单提交数据的方式有哪几种()表单提交数据的方式有哪几种()

    AC

    ly

    [if !supportLists]66. [endif]html5代码表示( )html5代码表示( )

    D

    A.创建表格

    B.创建一个滚动菜单

    C.设置每个表单项的内容

    D.创建一个下拉菜单

    [if !supportLists]67. [endif]在html5页面中看不见的表单元素是那种( )在html5页面中看不见的表单元素是那种( )

    C

    A.

    B.

    C.

    D.

    [if !supportLists]68. [endif]在html5中,下面对于单选按钮(Radio)的说法正确的是( )在html5中,下面对于单选按钮(Radio)的说法正确的是( )

    C

    A.选中的单选按钮可以通过单击在选中和未选中之间进行切换

    B.单选按钮没有checked属性

    C.单选按钮组中的单选按钮不能够同时被选中

    D.单选按钮组中每个单选按钮的名字可以不一样

    [if !supportLists]69. [endif]在表单属性中用于获取表单值的属性是( )在表单属性中用于获取表单值的属性是( )

    A

    [if !supportLists]70. [endif]在html5中,关于下列代码片断分析正确的是( )在html5中,关于下列代码片断分析正确的是( )

    method="get" name="myform">

    C

    A.提交表单数据信息不会出现在地址栏里

    B.提交表单的数据大小没有限制

    C.提交表单后,此表单中的数据将被提交到

    D.此表单比较适合提交用户登录信息

    [if !supportLists]71. [endif]html5页面中,表示在新窗口中打开网页文档,target属性值正确的选项是( )html5页面中,表示在新窗口中打开网页文档,target属性值正确的选项是( )

    B

    A._self

    B._blank

    C._top

    D._parent

    [if !supportLists]72. [endif]在html5表单控件下拉列表中,如果要某一项被选中,以下正确的( )在html5表单控件下拉列表中,如果要某一项被选中,以下正确的( )

    D

    A.

    B.

    C.

    D.

    [if !supportLists]73. [endif]在html5的input标签中,type属性值不是表示按钮的是( )在html5的input标签中,type属性值不是表示按钮的是( )

    C

    ="submit"

    ="reset"

    ="outset"

    ="button"

    [if !supportLists]74. [endif]在html5中,将表单中input元素的type属性值设置为( )时,用于创建图片按钮。在html5中,将表单中input元素的type属性值设置为( )时,用于创建图片按钮。

    D

    [if !supportLists]75. [endif]在input元素中 ,当设置oninvalid属性值为 ( )时可自定义错误信息。在input元素中 ,当设置oninvalid属性值为 ( )时可自定义错误信息。

    C

    orMessage('自定义验证信息')

    idity('自定义验证信息')

    tomValidity('自定义验证信息')

    tomer('自定义验证信息')

    [if !supportLists]76. [endif]对html5表单验证功能支持最好的浏览器是( )对html5表单验证功能支持最好的浏览器是( )

    D

    浏览器

    B.火狐浏览器

    C.谷歌浏览器

    最新版浏览器

    [if !supportLists]77. [endif]以下是表单验证规则中用于类型匹配验证的属性值是()以下是表单验证规则中用于类型匹配验证的属性值是()

    ABCD

    [if !supportLists]78. [endif]关于表单提交的两种方式get和post说法错误的是( )关于表单提交的两种方式get和post说法错误的是( )

    B

    适合提交小量数据

    主要用于提交重要且少量数据

    适合提交重要或数据量大的数据

    提交数据不会在地址栏显示

    [if !supportLists]79. [endif]表单元素中用于输入框的标签有()表单元素中用于输入框的标签有()

    ABC

    rd

    ea

    [if !supportLists]80. [endif]表单的提交地址使用的属性是()表单的提交地址使用的属性是()

    C

    [if !supportLists]81. [endif]CSS是利用什么HTML标签构建网页布局( )CSS是利用什么HTML标签构建网页布局( )

    B

    A.

    B.

    C.

    D.

    [if !supportLists]82. [endif]以下关于CSS描述错误的是( )以下关于CSS描述错误的是( )

    C

    减轻了编码量

    B.提高了网页浏览的速度

    C.不利于更新页面表现风格

    D.实现了内容和表现的分离

    [if !supportLists]83. [endif]样式表与html同在一个页面,此时叫( )样式表与html同在一个页面,此时叫( )

    B

    A.内联式样式表

    B.嵌入式样式表

    C.层叠式样式表

    D.链接式样式表

    [if !supportLists]84. [endif]下列哪个选项是超链接伪类点击未释放状态( )下列哪个选项是超链接伪类点击未释放状态( )

    D

    A.a:link

    B.a:visited

    C.a:hover

    D.a:active

    [if !supportLists]85. [endif]如何去掉文本超级链接的下划线( )如何去掉文本超级链接的下划线( )

    D

    -decoration:no underline;

    ine:none;

    tion:no decoration;

    -decoration:none;

    [if !supportLists]86. [endif]下列哪个样式的优先级最高( )下列哪个样式的优先级最高( )

    D

    样式

    B.标签样式

    C.类样式

    D.行内样式

    [if !supportLists]87. [endif]下列HTML属性用来定义行内样式规则的是( )下列HTML属性用来定义行内样式规则的是( )

    A

    [if !supportLists]88. [endif]下列CSS选择器中属于包含选择器的是( )下列CSS选择器中属于包含选择器的是( )

    C

    A.#div{…}

    B..div{…}

    C.#div h1{…}

    ,h1{…}

    [if !supportLists]89. [endif]CSS样式表根据所在网页的位置,可分为( )CSS样式表根据所在网页的位置,可分为( )

    A

    A.行内样式表、内嵌样式表、外部样式表

    B.行内样式表、内嵌样式表、混合样式表

    C.外部样式表、内嵌样式表、导入样式表

    D.外部样式表、混合样式表、导入样式表

    [if !supportLists]90. [endif]下列哪个选项是超链接伪类悬浮显示状态( )下列哪个选项是超链接伪类悬浮显示状态( )

    C

    A.a:link

    B.a:visited

    C.a:hover

    D.a:active

    [if !supportLists]91. [endif]以下哪个选项是交集选择器()以下哪个选项是交集选择器()

    B

    A.p,.red,#head{}

    C.#header p

    D.#header ul li

    [if !supportLists]92. [endif]P{color:red;font-size:12px;}选择器为( )P{color:red;font-size:12px;}选择器为( )

    A

    A.P

    -size

    -family

    [if !supportLists]93. [endif]CSS3中有效、规范的注释声明是( )CSS3中有效、规范的注释声明是( )

    A

    A./*这是–注释*/

    B.

    C./这是注释/

    D.//这是注释

    [if !supportLists]94. [endif]下列哪个选项是表示超链接伪类已访问状态( )下列哪个选项是表示超链接伪类已访问状态( )

    B

    A.a:link

    B.a:visited

    C.a:hover

    D.a:active

    [if !supportLists]95. [endif]若要在网页中插入样式表,以下正确的是( )若要在网页中插入样式表,以下正确的是( )

    A

    A.

    B.

    C.

    D.