1. What is the opening table tag?
That's correct. Well done!
The correct code:
<table>
Press Tab or click button to advance to next exercise.
2. What is the tag that creates rows?
That's correct. Well done!
The correct code:
<tr>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. What is the tag that creates cells within rows?
That's correct. Well done!
The correct code:
<td>
Press Tab or click button to advance to next exercise.
4. Code the opening and closing tags for a second set of cells within the row.
<tr>
<td></td>
</tr>
That's correct. Well done!
The correct code:
<td></td>
Press Tab or click button to advance to next exercise.
5. Drag-and-drop: Holding down the left mouse button, drag the pieces of code onto the screen to create an empty 2-row table with 2 cells in each row.
6. Click in the box and type the next character. I'll autocomplete. Don't type spaces or carriage returns. When the exercise is complete, I'll turn the exercise number green.
Type the line that goes above the first line you see here.
<tr>
<td></td>
<td></td>
</tr>
That's correct. Well done!
Press Tab or click button to advance to next exercise.
7. Fail-safe coding. If you type the wrong character, I'll cancel the keystroke. Type spaces. When the exercise is complete, I'll turn the exercise number green.
Type the line that goes above the last line you see here. Include the 2-space indent.
<table>
<tr>
<td></td>
<td></td>
</table>
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code an empty table with just one row and one cell in it.
That's correct. Well done!
The correct code:
<table>
<tr>
<td></td>
</tr>
</table>
Press Tab or click button to advance to next exercise.
9. Code an empty table with 1 row and 2 cells in it.
That's correct. Well done!
The correct code:
<table>
<tr>
<td></td>
<td></td>
</tr>
</table>
Press Tab or click button to advance to next exercise.
10. Code the first 5 lines of an empty table with 2 rows and 2 cells in each. This means you won't code the second row or the closing table tag.
That's correct. Well done!
The correct code:
<table>
<tr>
<td></td>
<td></td>
</tr>
Press Tab or click button to advance to next exercise.
11. Code a table with 1 row and 2 cells. Make up a little text and insert some into each cell.
That's correct. Well done!
Example:
<table>
<tr>
<td>apple</td>
<td>orange</td>
</tr>
</table>
Press Tab or click button to advance to next exercise.
12. Code a table with 2 rows and 1 cell in each. Make up a little text and insert some into each cell.
That's correct. Well done!
Example:
<table>
<tr>
<td>apple</td>
</tr>
<tr>
<td>orange</td>
</tr>
</table>
Press Tab or click button to advance to next exercise.
The next several exercises are timed. If you type slowly or dislike time pressure, feel free to increase the allotted time.
13. Time goal: 15 seconds. Type the line that goes above the last line you see here. Include the 2-space indent.
<table>
<tr>
<td></td>
<td></td>
</table>
Press Tab or click button to check answer.
The correct code:
</tr>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 50 seconds. Code an empty table with just one row and one cell in it.
Press Tab or click button to check answer.
The correct code:
<table>
<tr>
<td></td>
</tr>
</table>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 60 seconds. Code an empty table with 1 row and 2 cells in it.
Press Tab or click button to check answer.
The correct code:
<table>
<tr>
<td></td>
<td></td>
</tr>
</table>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 50 seconds. Code the first 5 lines of an empty table with 2 rows and 2 cells in each. This means you won't code the second row or the closing table tag.
Press Tab or click button to check answer.
The correct code:
<table>
<tr>
<td></td>
<td></td>
</tr>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 70 seconds. Code a table with 1 row and 2 cells. Make up a little text and insert some into each cell.
Press Tab or click button to check answer.
Example:
<table>
<tr>
<td>one cell</td>
<td>another cell</td>
</tr>
</table>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 85 seconds. Code a table with 2 rows and 1 cell in each. Make up a little text and insert some into each cell.
Press Tab or click button to check answer.
Example:
<table>
<tr>
<td>apple</td>
</tr>
<tr>
<td>orange</td>
</tr>
</table>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
19. Access this live coding exercise at JS Fiddle. When you've completed the exercise, close the JS Fiddle window, and you'll be returned to this page. (If JS Fiddle displays a warning message saying that your changes will be reset, click Leave this Page.)
Click button to advance.
20. Access this live coding exercise at JS Fiddle. When you've completed the exercise, close the JS Fiddle window, and you'll be returned to this page. (If JS Fiddle displays a warning message saying that your changes will be reset, click Leave this Page.)
Click button to advance.
Post a review on Amazon for the paperback or the Kindle edition.
Email me to give me a compliment, complaint, or correction. I'll respond.
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19
1
0