IT兄弟连 HTML5教程 HTML5文字版面和编辑标签 小结及试题

时间:2023-01-28 15:23:25

IT兄弟连 HTML5教程 HTML5文字版面和编辑标签 小结及试题

小结

HTML标签包含结构标签和基础标签,基础标签是在页面制作最常使用的一些标签。基础标签包含标题标签(<h1>~<h6>)、换行标签(<br>)、段落标签(<p>)、水平线标签(<hr>)、格式标签及文本标签。表格可以把相互关联的信息元素集中定位,使浏览页面的人一目了然。表格需要通过表格标记<table>、行标记<tr>、单元格标记<th>或<td>等标记按一定的关系嵌套共同完成。通过使用框架,你可以在同一个浏览器窗口中显示不止一个页面。每份HTML文档称为一个框架,并且每个框架都独立于其他的框架。

习题

1.哪一个不是HTML5新增的语义化标记元素(B)

A.section                                                                                             B.head

C.article                                                                                               D.aside

2.以下是HTML5新增的标签是:(A)

A.<aside>                                                                                          B.<isindex>

C.<samp>                                                                                          D.<s>

3.下列的HTML中,哪个是最大的标题?(D)

A.<h6>                                                                                                B.<head>

C.<heading>                                                                                     D.<h1>

4.以下选项中,哪个全部都是表格标签?(B)

A.<table><head><tfoot>                                                             B.<table><tr><td>

C.<table><tr><tt>                                                                           D.<thead><body><tr>

5.在HTML5中,哪个元素用于组合标题元素?(D)

A.<group>                                                                                         B.<header>

C.<headings>                                                                                   D.<hgroup>

6.下列哪一项属性是设置单元格垂直的位置?(B)

A.align                                                                                                 B.valign

C.colspan                                                                                           D.rowspan

7.在一个框架的属性面板中,不能设置下面哪一项。(D)

A.源文件                                                                           B.边框颜色

C.边框宽度                                                                         D.滚动条

8.下面哪一个属性不是文本的标签属性?(A)

A.nbsp;                                                                                    B.align

C.color                                                                                     D.face

9.下面哪一项是换行符标签?(C)

A.<body>                                                                     B.<font>

C.<br>                                                                   D.<p>

10.以下标记中,用于定义一个单元格的是(A)

A.<td>&nbsp;</td>                                          B.<tr>…</tr>

C.<table>…</table>                                             D.<caption>…</caption>

11.iframe的优缺点?

<iframe>优点:解决加载缓慢的第三方内容如图标和广告等的加载问题Security sandbox并行加载脚本solve slow to load third-party content such as icons and advertisements of loading problems Security sandbox parallel load script

<iframe>的缺点: 1.iframe会阻塞主页面的Onload事件;2.即时内容为空,加载也需要时间 3.没有语意