1. You're creating a class of paragraphs. The first character you type is p. What is the second character?
That's correct. Well done!
The correct code:
.
Press Tab or click button to advance to next exercise.
2. You're creating a class of h2 headings. What are the first 3 characters of your code?
That's correct. Well done!
The correct code:
h2.
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. In your HTML, when you specify that a paragraph or heading is a certain class, you're telling the browser to override the ________ styling.
That's correct. Well done!
The correct answer:
default
Press Tab or click button to advance to next exercise.
4. Here's the beginning of an HTML tag.
<p class
What are the next 2 characters?
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 create a class of paragraphs named "prominent"
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.
Write the HTML for the opening tag for an h4 heading of the class named "modest"
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.
Create a class of h2 headings that are double the default size. The class name is "special"
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code the first line that defines a paragraph class. Give it a name of your choice.
That's correct. Well done!
Example:
p.quote {
Press Tab or click button to advance to next exercise.
9. Create a class of heading (your choice of size) that displays in a font from the stack Georgia, Times, serif. Give it any legal name you like.
That's correct. Well done!
Example:
h5.formal {
font-family: Georgia, Times, serif;
}
Press Tab or click button to advance to next exercise.
10. Code the HTML for an opening heading tag. Make it a heading size of your choice and specify a class name of your choice.
That's correct. Well done!
Example:
<h4 class="fancy">
Press Tab or click button to advance to next exercise.
11. Define a class of paragraph. Give it the class name of your choice and a font-size of your choice.
That's correct. Well done!
Example:
p.blast {
font-size: 2em;
}
Press Tab or click button to advance to next exercise.
12. Code the HTML for a paragraph including opening tag, some text, and closing tag. Assign it a class of your choice.
That's correct. Well done!
Example:
<p class="fancy">Nice day we're having.</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: 35 seconds. Create a class of h2 headings that are double the default size. The class name is "special"
Press Tab or click button to check answer.
The correct code:
h2.special {
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: 15 seconds. Code the first line that defines a paragraph class. Give it a name of your choice.
Press Tab or click button to check answer.
Example:
p.quote {
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 55 seconds. Create a class of heading (your choice of size) that displays in a font from the stack Georgia, Times, serif. Give it any legal name you like.
Press Tab or click button to check answer.
Example:
h5.formal {
font-family: Georgia, Times, serif;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 20 seconds. Code the HTML for an opening heading tag. Make it a heading size of your choice and specify a class name of your choice.
Press Tab or click button to check answer.
Example:
<h4 class="fancy">
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. Define a class of paragraph. Give it the class name of your choice and a font-size of your choice.
Press Tab or click button to check answer.
Example:
p.blast {
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 the HTML for a paragraph including opening tag, some text, and closing tag. Assign it a class of your choice.
Press Tab or click button to check answer.
Example:
<p class="fancy">Nice day we're having.</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