Font size
WorksheetsHTML Tables
Total questions: 20
Worksheet time: 9mins
You are creating a website for a local bakery and you need to organize the list of products in a grid. Which tag could you use?
<table>
<tbl>
<box>
<grid>
Which of these creates a heading cell within an HTML table?
<thead>
Which of these creates a column in an HTML table?
Which of these define a cell in an HTML table?
<tbody> </tbody>
<th></th>
Which of these is used to define a heading cell in an HTML table?
Which of these defines a single cell in an HTML table?
<tcell> </tcell>
Which of these defines a row in an HTML table?
<trow> </trow>
What is a rowspan?
An attribute used with <th> or <td> to span two or more columns
An open-source framework containing HTML and CSS design templates
An attribute used with <th> or <td> to span two or more rows
An element required in every table
What is a colspan?
An attribute used with <th> or <td> to span two or more columns
An open-source framework containing HTML and CSS design templates
An attribute used with <th> or <td> to span two or more rows
An element required in every table
True or False?
A table border will always appear when a table is created.
True
False
This tag can be used to group together the header rows of a table.
<heading>
<thead>
<th>
<headrows>
The highlighted table rows could be grouped inside this tag.
<td>
<thead>
<tbody>
<rows>
What is the overall size of this table (rows x columns)?
3 x 2
2 x 3
6 x 1
1 x 6
None of these
td and th
can be used in rows
can be used outside of rows
can be used inside or outside of rows
can be used anywhere inside the body
Chose the best description of the <td> tag.
a cell in a header row
a column of a table
a row of a table
a cell in a data row
What is the purpose of the 'td' tag in HTML tables?
To create a new table
To add a border to the table
To represent table data
To change the font size
What is the difference between <th> and <td> elements in a table?
<th> is for rows
<td> is for cells
<th> is for headers <td> is for data
<th> and <td> are interchangeable
<td> is for rows
<th> is for cells
