1. What does the tag <th> create? Answer with 1 word.
That's correct. Well done!
The correct answer:
heading
Press Tab or click button to advance to next exercise.
2. Type the 4-character opening tag that creates a heading.
That's correct. Well done!
The correct code:
<th>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. Type the tag that must precede a heading tag, whether you are creating column or row headings.
That's correct. Well done!
The correct code:
<tr>
Press Tab or click button to advance to next exercise.
4. Fill in the blank.
<th ______ = "col">
That's correct. Well done!
The correct code:
scope
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 headings for 2 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 the opening tag that creates a column heading.
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 the opening tag that creates a row heading.
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code two column headings that say model and price. Don't bother indenting.
That's correct. Well done!
The correct code:
<th scope="col">model</th>
<th scope="col">price</th>
Press Tab or click button to advance to next exercise.
9. Code a row heading with text of your choice.
That's correct. Well done!
Example:
<th scope="row">January</th>
Press Tab or click button to advance to next exercise.
10. The table tag has already been coded. Code the next 4 lines to create a row heading that says "Species" and then cells that say Canine and Feline. Indent correctly.
That's correct. Well done!
The correct code:
<tr>
<th scope="row">Species</th>
<td>Canine</td>
<td>Feline</td>
Press Tab or click button to advance to next exercise.
11. When you're coding a table with both column and row headings, what is the first line after the first <tr> tag? Don't bother indenting on this one.
That's correct. Well done!
The correct code:
<th scope="col"></th>
Press Tab or click button to advance to next exercise.
12. Code a 2-column table with a heading and 2 additional cells for each column. Make up all the text.
That's correct. Well done!
The correct code:
<table>
<tr>
<th scope="col">Make</th>
<th scope="col">Model</th>
</tr>
<tr>
<td>Apple</td>
<td>iMac</td>
</tr>
<tr>
<td>Dell</td>
<td>Vostro</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: 20 seconds. Code the opening tag that creates a row heading.
Press Tab or click button to check answer.
The correct code:
<th scope="row">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 55 seconds. Code two column headings that say model and price. Don't bother indenting.
Press Tab or click button to check answer.
The correct code:
<th scope="col">model</th>
<th scope="col">price</th>
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 a row heading with text of your choice.
Press Tab or click button to check answer.
Example:
<th scope="row">January</th><
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 80 seconds. The table tag has already been coded. Code the next 4 lines to create a row heading that says "Species" and then cells that say Canine and Feline. Indent correctly.
Press Tab or click button to check answer.
The correct code:
<tr>
<th scope="row">Species</th>
<td>Canine</td>
<td>Feline</td>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 25 seconds. When you're coding a table with both column and row headings, what is the first line after the first <tr> tag? Don't bother indenting on this one.
Press Tab or click button to check answer.
The correct code:
<th scope="col"></th>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 200 seconds. Code a 2-column table with a heading and 2 additional cells for each column. Make up all the text.
Press Tab or click button to check answer.
The correct code:
<table>
<tr>
<th scope="col">Make</th>
<th scope="col">Model</th>
</tr>
<tr>
<td>Apple</td>
<td>iMac</td>
</tr>
<tr>
<td>Dell</td>
<td>Vostro</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