1. What's the line of code for styling cell text red, using the color name?
That's correct. Well done!
The correct code:
color: red;
Press Tab or click button to advance to next exercise.
2. What's the line of code for doubling the size of cell text?
That's correct. Well done!
The correct code:
font-size: 2em;
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. What's the line of code for making the background color of cells blue using the color name?
That's correct. Well done!
The correct code:
background-color: blue;
Press Tab or click button to advance to next exercise.
4. What's the line of code for maximally bolding the text in cells using a number?
That's correct. Well done!
The correct code:
font-weight: 900;
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 a class of table that styles all cell text Arial, Helvetica, or sans-serif.
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 a class of row named odd_row that colors the cell background cc0000.
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 a table ID named standout that doubles the text size of headings and data cells.
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code a class of data cell, specifying a text color by name. Use one of the common colors that kids know. Make up the class name.
That's correct. Well done!
Example:
td.bright {
color: purple;
}
Press Tab or click button to advance to next exercise.
9. Code a class of row, specifying a background color by name. Use one of the common colors that kids know. Make up the class name.
That's correct. Well done!
Example:
tr.bright {
background-color: purple;
}
Press Tab or click button to advance to next exercise.
10. Create a class of data cell that's italic. Make up the class name.
That's correct. Well done!
Example:
td.emphasized {
font-style: italic;
}
Press Tab or click button to advance to next exercise.
11. Group headings and data cells and style them with a font-size 3/4 of "normal."
That's correct. Well done!
Example:
th, td {
font-size: .75em;
}
Press Tab or click button to advance to next exercise.
12. Style one class of rows cells with one background color and another class of rows with a different background color. Use color names that a kid would know.
That's correct. Well done!
Example:
tr.even {
background-color: blue;
}
tr.odd {
background-color: gray;
}
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: 40 seconds. Code a table ID named standout that doubles the text size of both headings and data cells.
Press Tab or click button to check answer.
The correct code:
table#standout {
font-size: 2em;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 30 seconds. Code a class of data cell, specifying a text color by name. Use one of the common colors that kids know. Make up the class name.
Press Tab or click button to check answer.
Example:
td.bright {
color: purple;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 45 seconds. Code a class of row, specifying a background color by name. Use one of the common colors that kids know. Make up the class name.
Press Tab or click button to check answer.
Example:
tr.bright {
background-color: purple;
}
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. Create a class of data cell that's italic. Make up the class name.
Press Tab or click button to check answer.
Example:
td.emphasized {
font-style: italic;
}
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. Group headings and data cells and style them with a font-size 3/4 of "normal."
Press Tab or click button to check answer.
Example:
th, td {
font-size: .75em;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 75 seconds. Style one class of row with one background color and another class of row with a different background color. Use color names that a kid would know.
Press Tab or click button to check answer.
Example:
tr.even {
background-color: blue;
}
tr.odd {
background-color: gray;
}
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