Font size
WorksheetsHTML Table
Total questions: 13
Worksheet time: 9mins
What is the purpose of the <table> tag in HTML?
To create a list of items
To format text
To structure data into rows and columns
To insert images
Which tag is used to define a row within a table
<tr>
<td>
<th>
<table>
How do you merge two or more cells vertically in a table?
Use the rowspan attribute
Use the colspan attribute
Use the merge attribute
Use the span attribute
What is the purpose of the Cellpadding attribute in the <table> tag?
To add a border around the table
To set the width of the table
Adjusts the spacing between the content and the table
border lines.
Adjusts the spacing between cells/data
What HTML tag do we use to create a result like the image on the side?
(a)
What is the difference between a <td> and a <tr> tag?
<td> is used for table data, while <tr> is used for table headers
<td> is used for table data, while <tr> is used for table Columns
<td> is used for Cell, while <tr> is used for Row
There is no difference between the two
What HTML tag do we use to create a result like the image on the side?
(a)
"Adjusts the spacing between cells/data" is definition for.........
Border
Rowspan
Cellspacing
Colspan
Which attribute is used to specify the width of a table in HTML?
width
size
table-width
colwidth
What does the <td> tag represent in a table?
Table header cell
Table data cell
Table row
Table footer
What HTML attribute do we use to merge cells vertically?
Colspan
cellspacing
Rowspan
Merging
What HTML attribute do we use to merge cells horizontaly?
Colspan
cellspacing
Rowspan
Merging
Basic structure of HTML
< (a) >
<html>
<head>
< (b) >< (c)
< (d)
< (e) >
</body>
</html>
