一、选择题1.禁止表格格子内的内容自动断行的回卷的HTML代码是( )。 A.<tr valign=?> B.<td colspan=#> C.<td rowspan=#> D.<td nowrap> 2.Html语言中,设置围绕表格的边框的宽度的HTML代码是( )。 A.<table size=#> B.<table border=#> C.<table bordesize=#r> D.<tableborder=#> 3. 设置表格标题的HTML代码是( ) A. <title></title> B. <name></name> C. <table></table> D. <caption></caption> 4.定义表头的HTML是( )。 A.<table> B.<td> C.<tr> D.<th> 5.跨行多列的表格的HTML代码为( )。 A.<th colspan=#> B.<th rospan=#> C.<td colspan=#> D.<td colspan=#> 6.设置表格边框为0的HTML代码是( ) A.<table cellspacing=0> B.<table cellspacing="0"> C.<table border=0> D.<table cellpadding=0> 7.设置单元格填充为0的HTML代码是( ) A.<table cellspacing=0> B.<table cellspacing="0"> C.<table cellpadding="0"> D.<table cellpadding=0> 8 设置表格的单元格间距为0的HTML代码是( )。 A.<table cellspacing =0> B.<table height=0> C.<table border=0> D. <table cellpadding =0> 9. 设置表格边框色彩的HTML代码是( ) A. <table color=#> B. <th bordercolor=#> C. <table bordercolor=#> D. <th color=#> 10. 分析如下的HTML代码片断,选项中说法错误的是( ) <table> <tr> <td>姓名:</td> <td colspan="2"><input type="text" name="name"></td> </tr> <tr> <td>性别:</td> <td>男<input type="radio" name="sex" checked></td> <td>女<input type="radio" name="sex"></td> </tr> </table>
二、填空题1.在编辑table表格时,合并行使用 _________合并列使用_________。 2.请写出在网页中设定表格边框的厚度的属性________;设定表格单元格之间宽度属性_______;设定表格资料与单元格线的距离属性________。 3.将表格的背景色设置为蓝色,代码为<table _______ ="blue"__________></table> 。 4.将表格的单元格水平对齐设置为居中对其,垂直对其方式设置为居中对其,代码为 <td align="______________" valign="_________"></td>。 5.单元格背景色设置为灰色,背景图片1.jpg,代码为<td _______></td> 6.表头标记<th>的属性和<td>标记的属性及语法格式非常的相似,设置表头单元格水平对其的标记属性也是align,设置单元格垂直对其的属性是__________,设置单元格的背景颜色是_____________,设置单元格的水平跨度是_____________,设置单元格的垂直跨度是_______________。 7.设置表格的单元格间距为10px的HTML代码是<table ______></table>。 8.设置单元格填充为10的HTML代码是<table ________________></table>。 9.表主体标记<tbody>用于定义表格主体的样式,将表主体中内容设置为水平居中对齐, 背景颜色设置为粉色,<tbody align="________ "_________ ="pink"。 10.将表格边框设置为1px,边框颜色设置为灰色,代码为<table______ ="1" ________ ="gray"><table>。 |
|
来自: 桃花源士 > 《HTML超文本标记语言》