Master the essentials of HTML tables with this set of 30 multiple-choice questions (MCQs). Covering topics like creating tables, using table rows and cells, and merging cells with colspan and rowspan, this quiz will enhance your knowledge on structured data presentation.
MCQs:
colspan attribute do in a table?
colspan attribute?
rowspan="2" in a table cell?
colspan="4", how many columns will the cell span?
colspan="2" is used in a table with more than 2 columns?
Answer Table:
| Qno | Answer (Option with the text) |
|---|---|
| 1 | b) <table> |
| 2 | a) width |
| 3 | a) <table border=”1″> |
| 4 | a) bgcolor |
| 5 | a) cellspacing |
| 6 | c) <table><caption>Table Caption</caption></table> |
| 7 | a) None |
| 8 | b) <tr> |
| 9 | b) <th> |
| 10 | a) <td> |
| 11 | b) Center |
| 12 | a) <tr> |
| 13 | a) <thead> |
| 14 | a) <tfoot> |
| 15 | c) <th> |
| 16 | c) <td style=”text-align:center;”> |
| 17 | a) <tbody> |
| 18 | b) <th> |
| 19 | b) <td style=”text-align:right;”> |
| 20 | a) Yes |
| 21 | b) Merges cells horizontally |
| 22 | b) rowspan |
| 23 | a) <td colspan=”3″> |
| 24 | b) Use rowspan |
| 25 | a) 1 |
| 26 | b) The cell will span two rows |
| 27 | b) colspan |
| 28 | a) 4 |
| 29 | c) The next cell will be blank |
| 30 | a) colspan and rowspan |