一、選擇題1.禁止表格格子內(nèi)的內(nèi)容自動斷行的回卷的HTML代碼是( )。 A.<tr valign=?> B.<td colspan=#> C.<td rowspan=#> D.<td nowrap> 2.Html語言中,設(shè)置圍繞表格的邊框的寬度的HTML代碼是( )。 A.<table size=#> B.<table border=#> C.<table bordesize=#r> D.<tableborder=#> 3. 設(shè)置表格標(biāo)題的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.設(shè)置表格邊框?yàn)?的HTML代碼是( ) A.<table cellspacing=0> B.<table cellspacing="0"> C.<table border=0> D.<table cellpadding=0> 7.設(shè)置單元格填充為0的HTML代碼是( ) A.<table cellspacing=0> B.<table cellspacing="0"> C.<table cellpadding="0"> D.<table cellpadding=0> 8 設(shè)置表格的單元格間距為0的HTML代碼是( )。 A.<table cellspacing =0> B.<table height=0> C.<table border=0> D. <table cellpadding =0> 9. 設(shè)置表格邊框色彩的HTML代碼是( ) A. <table color=#> B. <th bordercolor=#> C. <table bordercolor=#> D. <th color=#> 10. 分析如下的HTML代碼片斷,選項(xiàng)中說法錯誤的是( ) <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.請寫出在網(wǎng)頁中設(shè)定表格邊框的厚度的屬性________;設(shè)定表格單元格之間寬度屬性_______;設(shè)定表格資料與單元格線的距離屬性________。 3.將表格的背景色設(shè)置為藍(lán)色,代碼為<table _______ ="blue"__________></table> 。 4.將表格的單元格水平對齊設(shè)置為居中對其,垂直對其方式設(shè)置為居中對其,代碼為 <td align="______________" valign="_________"></td>。 5.單元格背景色設(shè)置為灰色,背景圖片1.jpg,代碼為<td _______></td> 6.表頭標(biāo)記<th>的屬性和<td>標(biāo)記的屬性及語法格式非常的相似,設(shè)置表頭單元格水平對其的標(biāo)記屬性也是align,設(shè)置單元格垂直對其的屬性是__________,設(shè)置單元格的背景顏色是_____________,設(shè)置單元格的水平跨度是_____________,設(shè)置單元格的垂直跨度是_______________。 7.設(shè)置表格的單元格間距為10px的HTML代碼是<table ______></table>。 8.設(shè)置單元格填充為10的HTML代碼是<table ________________></table>。 9.表主體標(biāo)記<tbody>用于定義表格主體的樣式,將表主體中內(nèi)容設(shè)置為水平居中對齊, 背景顏色設(shè)置為粉色,<tbody align="________ "_________ ="pink"。 10.將表格邊框設(shè)置為1px,邊框顏色設(shè)置為灰色,代碼為<table______ ="1" ________ ="gray"><table>。 |
|
|