1. What are the first 5 characters of the tag that styles part of a paragraph or heading?
That's correct. Well done!
The correct code:
<span
Press Tab or click button to advance to next exercise.
2. What is the closing tag for styling part of a paragraph or heading?
That's correct. Well done!
The correct code:
</span>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. Rewrite the following CSS code so it can be used for a span.
p.special {
That's correct. Well done!
The correct code:
.special {
The class can't be tied to an element.
Press Tab or click button to advance to next exercise.
4. What are the first 12 characters of an opening span tag that's assigned a class?
That's correct. Well done!
The correct code:
<span class=
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 the word "must" in the sentence "I must emphasize this."
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 named "stressed" that maximally bolds a section of text. Use a word, not a number, to specify how bold.
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 (but not the space that follows it) is assigned the span class "giant".
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Write the opening tag for styling a section of text using the class "special"
That's correct. Well done!
The correct code:
<span class="special">
Press Tab or click button to advance to next exercise.
9. Write a heading (your choice of size), including opening and closing tags, that assigns a class to a portion of the text. Make up the class name.
That's correct. Well done!
Example:
<h4>Stop <span
class="emphasized">right</span> now!</h4>
Press Tab or click button to advance to next exercise.
10. Write a paragraph, including opening and closing tags. Within the paragraph, use span to style all the text. Make up your own class name.
That's correct. Well done!
Example:
<p><span class="pretty">Check out the lakes of Italy.</span></p>
Press Tab or click button to advance to next exercise.
11. Create a class that can be used for a section of text that specifies the size and boldness of text. Use a number to specify boldness. Make up your own class name. Your choice of size and boldness.
That's correct. Well done!
Example:
.intrusive {
font-size: 2.25em;
font-weight: 600;
}
Press Tab or click button to advance to next exercise.
12. Write a paragraph including opening and closing tags, including text. Start and end a span outside the opening and closing paragraph tags. Make up a name for the class.
That's correct. Well done!
Example:
<span class="formal"><p>Welcome to the Society.</p></span>
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: 50 seconds. Code a paragraph, including opening and closing tags, with the text Hello there! The first word is assigned the span class "giant".
Press Tab or click button to check answer.
The correct code:
<p><span class="giant">Hello</span> 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: 25 seconds. Write the opening tag for styling a section of text using the class "special"
Press Tab or click button to check answer.
The correct code:
<span class="special"><
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 60 seconds. Write a heading (your choice of size), including opening and closing tags, that assigns a class to a portion of the text. Make up the class name.
Press Tab or click button to check answer.
Example:
<h4>Stop <span class="emphasized">right</span></h4>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 65 seconds. Write a paragraph, including opening and closing tags. Within the paragraph, use span to style all the text. Make up your own class name.
Press Tab or click button to check answer.
Example:
<p><span class="pretty">Check out the lakes of Italy.</span></p>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 55 seconds. Create a class that can be used for a section of text that specifies the size and boldness of text. Use a number to specify boldness. Make up your own class name. Your choice of size and boldness.
Press Tab or click button to check answer.
Example:
.intrusive {
font-size: 2.25em;
font-weight: 600;
}
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. Write a paragraph including opening and closing tags. Start and end a span outside the opening and closing paragraph tags. Make up a name for the class.
Press Tab or click button to check answer.
Example:
<span class="formal"><p>Welcome to the Society.</p></span>
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