NEW
Font size
WorksheetsHTML- TABLE
Total questions: 20
Worksheet time: 12mins
How do you create a table in HTML?
Use an image
Use the <pre> tag.
With the <table> tag along with various heading tags <th>, table row tags <tr>, and table data tags <td>.
Don’t know
How do you create a table row?
With an opening and closing <td> tag.
With an opening and closing <th> tag.
With an opening and closing <tr> tag.
Don’t know
How do you create a table header?
With a <pre> tag and a <strong> tag to highlight the text.
With a <th> tag.
With an opening and closing <th> tag for each column in your table.
Don’t know
The startinf tag of a table is:
<tr>
<table>
<td>
<tablet>
Is this a correct table?
<table>
<tr><td>This is part 1</td></tr>
<tr>This is part 2</tr>
</table>
Yes
No
Is this a correct table?
<table>
<tr><td>This is part 1</td>
<tr><td>This is part 2</td></tr>
</table>
Yes
No
Is this a correct table?
<table>
<tr><td>This is part 1</td></tr>
<tr><td>This is part 2</td></tr>
</table>
Yes
No
How many rows does the following table have?
<table>
<tr><td>Col 1</td></tr>
<tr><td>Col 2</td><td>Col3</td></tr>
<tr><td>Col 3</td></tr>
</table>
3
2
1
0
How many rows and columns does the following table have?
<table>
<tr><td>Col 1</td><td>Col 4</td></tr>
<tr><td>Col 2</td><td>Col 5</td></tr>
<tr><td>Col 3</td><td>Col 6</td></tr>
</table>
2 rows with 3 column each
3 rows with 2 column each
3 rows and 3 columns
3 rows and 5 columns
A <tr> element can have 0 <td> elements inside
Yes
No
With which CSS table property can you specify values of left, center, right and justify?
The border property
The text-align property
The width property
The vertical-align property
What table element attribute do you need to specify to add a border to a table?
<table border="0">
<table border="on">
<table border="1">
<table border="yes">
Which of the following defines a single table column?
The <td> tag
The <tr> tag
The <th> tag
The <tablecolumn> tag
Which of the following table element tags are required when you use the <table> tag to create a table?
able row <tr> and table data <td>
Table caption <caption> and table data <td>
Table header <th> and table data <td>
Table caption <caption> and table header <th>
Which of the following defines the content of table cells?
The <th> tag
The <td> tag
The <tr> tag
The <tablecell> tag
Attribute name specifying the number of pixels of space between a cell well and its content
The statement above refer to which tag?
width
table
cellpadding
colspan
An HTML Table with a Border Attribute:
Choose the correct tag.
<table border="1" style="width:100%">
the border-collapse property...
</td>
table, th, td { border: 1px solid black; border-collapse: collapse; }
To add borders, use the CSS border property:
<table border="1" style="width:100%">
the border-collapse property...
table, th, td { border: 1px solid black; }
table, th, td { border: 1px solid black; border-collapse: collapse; }
An HTML Table with Border Spacing:
Choose the correct tag.
colspan=""
table { border-spacing: 5px; }
<table><tr><td clospan="2"> Memrise </td></tr></table>
<table style="width:100%"> <caption> Memrise </caption> </table>
What is the correct HTML for creating a hyperlink? (note: Where you see a big space, that is where a bracket should be.)
a url="http://www.google.com" Google.com /a
a url=http://www.google.com /a
a href="http://www.google.com" Google /a
a name="http://www.google.com" Google.com /a
