1. The following code begins a comment in what type of file?
<!--
That's correct. Well done!
The correct answer:
HTML
Press Tab or click button to advance to next exercise.
2. The following code begins a comment in what type of file?
/*
That's correct. Well done!
The correct answer:
CSS
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. The following code begins a CSS comment. What code ends it?
/*
That's correct. Well done!
The correct code:
*/
Press Tab or click button to advance to next exercise.
4. The following code begins an HTML comment. What code ends it?
<!--
That's correct. Well done!
The correct code:
-->
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 an HTML comment.
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 HTML comment that says gallery
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 CSS comment that says text styling.
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. What is the opening CSS comment tag?
That's correct. Well done!
The correct code:
/*
Press Tab or click button to advance to next exercise.
9. What is the opening HTML comment tag?
That's correct. Well done!
The correct code:
<!--
Press Tab or click button to advance to next exercise.
10. What is the closing HTML comment tag?
That's correct. Well done!
The correct code:
-->
Press Tab or click button to advance to next exercise.
11. Code a class of paragraph that doubles the "normal" font size. Start with a comment, on its own separate line. Make up the comment and the class name.
That's correct. Well done!
Example:
/* For emphasis */
p.big {
font-size: 2em;
}
Press Tab or click button to advance to next exercise.
12. Code a paragraph in HTML. On the line above it code a comment. Make up the comment text and paragraph text.
That's correct. Well done!
Example:
<!-- Greeting -->
<p>Hello World!</p>
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 a CSS comment that says text styling.
Press Tab or click button to check answer.
The correct code:
/* text styling */
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 10 seconds. What is the opening CSS comment tag?
Press Tab or click button to check answer.
The correct code:
/*
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 10 seconds. What is the opening HTML comment tag?
Press Tab or click button to check answer.
The correct code:
<!--
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 10 seconds. What is the closing HTML comment tag?
Press Tab or click button to check answer.
The correct code:
-->
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 50 seconds. Code a class of paragraph that doubles the "normal" font size. Start with a comment, on its own separate line. Make up the comment and the class name.
Press Tab or click button to check answer.
Example:
/* For emphasis */
p.big {
font-size: 2em;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 45 seconds. Code a paragraph in HTML. On the line above it code a comment. Make up the comment text and paragraph text.
Press Tab or click button to check answer.
Example:
<!-- Greeting -->
<p>Hello World!</p>
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