1. What are the first 10 characters for specifying how big you want font size?
That's correct. Well done!
The correct code:
font-size:
Press Tab or click button to advance to next exercise.
2. What unit of measurement do I recommend for specifying font-size? (3 characters)
That's correct. Well done!
The correct code:
ems
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. If the specification is 1.5em, the font is to be 150% of the ______ size.
That's correct. Well done!
The correct answer:
default
Press Tab or click button to advance to next exercise.
4. Give me any one of the three alternatives to ems that I mention. (All three words are plurals.)
That's correct. Well done!
The correct answer:
percentages, pixels, or points
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 style paragraphs so the text is 175% of the default.
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.
Specify the font size as twice the default size.
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.
Specify for the third largest heading a font-size that's twice the default text size. Don't forget to indent the second line two spaces.
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. How do you say you want it to be 2-1/2 times the default size?
That's correct. Well done!
The correct code:
font-size: 2.5em;
Press Tab or click button to advance to next exercise.
9. Write code specifying any size you like for paragraphs.
That's correct. Well done!
Example:
p {
font-size: 1.25em;
}
Press Tab or click button to advance to next exercise.
10. Style any size of headings three-quarters of the default size.
That's correct. Well done!
Example:
h5 {
font-size: .75em;
}
Press Tab or click button to advance to next exercise.
11. Style paragraphs the same as the default size.
That's correct. Well done!
The correct code:
p {
font-size: 1em;
}
Press Tab or click button to advance to next exercise.
12. Style the font-size (your choice) for your choice of paragraph or heading.
That's correct. Well done!
Example:
h6 {
font-size: 1.9em;
}
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: 30 seconds. Specify for the third largest heading a font-size that's twice the default text size. Don't forget to indent the second line two spaces.
Press Tab or click button to check answer.
The correct code:
h3 {
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: 20 seconds. How do you say you want it to be 2-1/2 times the default size?
Press Tab or click button to check answer.
The correct code:
font-size: 2.5em;
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. Write code specifying any size you like for paragraphs.
Press Tab or click button to check answer.
Example:
p {
font-size: 1.25em;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 30 seconds. Style any size of headings three-quarters of the default size.
Press Tab or click button to check answer.
Example:
h5 {
font-size: .75em;
}
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. Style paragraphs the same as the default size.
Press Tab or click button to check answer.
The correct code:
p {
font-size: 1em;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 25 seconds. Style the font-size (your choice) for your choice of paragraph or heading.
Press Tab or click button to check answer.
Example:
h6 {
font-size: 1.9em;
}
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