I'm planning more books in this series and would be interested in hearing which topics you might like to see covered using my approach. Check as many topics as you like.
1. Fill in the blank to create a class that displays text in italic.
.special {
_______: italic;
}
That's correct. Well done!
The correct code:
font-style
Press Tab or click button to advance to next exercise.
2. What HTML tag is the alternative to <i>?
That's correct. Well done!
The correct code:
<em>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. What HTML tag is the alternative to <b>?
That's correct. Well done!
The correct code:
<strong>
Press Tab or click button to advance to next exercise.
4. What is the closing tag for the alternative to em?
That's correct. Well done!
The correct code:
</i>
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 paragraph named "emphasized" that is italicized.
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.
Create a class not tied to an element, named "special," that specifies italic.
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 paragraph, including opening and closing tags, with the text Hello there! The first word is italicized. (The space after it isn't.) Use the alternative to <i>.
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Create a class that isn't tied to an element. Choose a name. Make it italic.
That's correct. Well done!
Example:
.special {
font-style: italic;
}
Press Tab or click button to advance to next exercise.
9. Write a three-word paragraph with opening and closing tags. Italicize the last 2 words, using the alternative to <i>.
That's correct. Well done!
Example:
<p>Stop <em>right now!</em></p>
Press Tab or click button to advance to next exercise.
10. Write a three-word heading (your choice of size) with opening and closing tags. Make the middle word bold, using the alternative to <b>. Don't bold the spaces.
That's correct. Well done!
Example:
<h2>The <strong>best</strong> sale</h2>
Press Tab or click button to advance to next exercise.
11. Code a 4-word paragraph, including opening and closing tags. Italicize the second word and bold the fourth word using the tags that require the least typing. Don't style the spaces.
That's correct. Well done!
Example:
<p>How <i>odd</i> this <b>is</b></p>
Press Tab or click button to advance to next exercise.
12. Create the next-smallest heading with opening and closing tags. Assign it a class (make up the name). Make up the text. Italicize the whole thing, using the tags that require the most typing.
That's correct. Well done!
Example:
<h5 class="subhead"><em>A fine kettle of fish!</em></h5>
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. Code a paragraph, including opening and closing tags, with the text Hello there! The first word (but not the space after it) is italicized. Use the alternative to <i>.
Press Tab or click button to check answer.
The correct code:
<p><em>Hello</em> there!</p>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 35 seconds. Create a class that isn't tied to an element. Choose a name. Make it italic.
Press Tab or click button to check answer.
Example:
.special {
font-style: italic;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 35 seconds. Write a three-word paragraph with opening and closing tags. Italicize the last 2 words, using the alternative to <i>.
Press Tab or click button to check answer.
Example:
<p>Stop <em>right now!</em></p>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 50 seconds. Write a three-word heading (your choice of size) with opening and closing tags. Make the middle word (not the spaces before and after it) bold, using the alternative to <b>.
Press Tab or click button to check answer.
Example:
<h2>The <strong>best</strong> sale</h2>
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 4-word paragraph, including opening and closing tags. Italicize the second word and bold the fourth word using the tags that require the least typing. Don't style spaces.
Press Tab or click button to check answer.
Example:
<p>How <i>odd</i> this <b>is</b></p>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 60 seconds. Create the next-smallest heading with opening and closing tags. Assign it a class (make up the name). Make up the text. Italicize the whole thing, using the tags that require the most typing.
Press Tab or click button to check answer.
Example:
<h5 class="subhead"><em>A fine kettle of fish!</em></h5>
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