1. To span three columns, fill in the blank.
<td colspan=___>
That's correct. Well done!
The correct code:
"3"
Press Tab or click button to advance to next exercise.
2. To span two columns, fill in the blank.
<td ______="2">
That's correct. Well done!
The correct code:
colspan
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. To span two rows, fill in the blank.
<td ______="2">
That's correct. Well done!
The correct code:
rowspan
Press Tab or click button to advance to next exercise.
4. Code an opening tag that spans 2 rows.
That's correct. Well done!
The correct code:
<td rowspan="2">
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 code a cell that spans 3 columns.
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.
Code an opening tag that spans 3 columns.
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.
Code opening and closing tags that span 2 rows. Don't separate them with a space. Don't include any text.
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code both tags and some text for a column span of 4. Make up the text.
That's correct. Well done!
Example:
<td colspan="4">There's a lot to say in this cell.</td>
Press Tab or click button to advance to next exercise.
9. Code both tags for any row span, including some text. Make up the text.
That's correct. Well done!
Example:
<td rowspan="2">Vertical</td>
Press Tab or click button to advance to next exercise.
10. Code both tags for any row or column span, including some text. Make up the text.
That's correct. Well done!
Example:
<td colspan="2">New Rochelle, NY</td>
Press Tab or click button to advance to next exercise.
11. Code the opening tag for a row heading that spans 2 columns.
That's correct. Well done!
The correct code:
<th scope="row" colspan="2">
Press Tab or click button to advance to next exercise.
12. Code the opening tag for a column heading that spans 3 rows.
That's correct. Well done!
The correct code:
<th scope="col" rowspan="3">
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: 25 seconds. Code opening and closing tags that span 2 rows. Don't separate them with a space. Don't include any text.
Press Tab or click button to check answer.
The correct code:
<td rowspan="2"></td>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 40 seconds. Code both tags and some text for a column span of 4. Make up the text.
Press Tab or click button to check answer.
Example:
<td colspan="4">There's a lot to say in this cell.</td>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 30 seconds. Code both tags for any row span, including some text. Make up the text.
Press Tab or click button to check answer.
Example:
<td rowspan="2">Vertical</td>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 40 seconds. Code both tags for any row or column span, including some text. Make up the text.
Press Tab or click button to check answer.
Example:
<td colspan="2">New Rochelle, NY</td>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 30 seconds. Code the opening tag for a row heading that spans 2 columns.
Press Tab or click button to check answer.
The correct code:
<th scope="row" colspan="2">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 30 seconds. Code the opening tag for a column heading that spans 3 rows.
Press Tab or click button to check answer.
The correct code:
<th scope="col" rowspan="3">
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