1. When you code font styling using the form selector, it affects only labels and ________.
That's correct. Well done!
The correct answer:
legends
Press Tab or click button to advance to next exercise.
2. When you code font styling for a form, it affects only _____ and legends.
That's correct. Well done!
The correct answer:
labels
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. The selector for styling textarea inputs is _______.
That's correct. Well done!
The correct code:
textarea
Press Tab or click button to advance to next exercise.
4. Fill in the blank.
_____[type="text"]
That's correct. Well done!
The correct code:
input
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 a 1-line text field input.
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 the first line for styling an email input.
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 the first line for styling a Submit button.
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Style multi-line text inputs at 120% of "normal."
That's correct. Well done!
The correct code:
textarea {
font-size: 1.2em;
}
Press Tab or click button to advance to next exercise.
9. Style email inputs Georgia, Times, serif.
That's correct. Well done!
The correct code:
input[type="email"] {
font-family: Georgia, Times, serif;
}
Press Tab or click button to advance to next exercise.
10. Style the Submit button your choice of font-size.
That's correct. Well done!
Example:
input[type="submit"] {
font-size: 2em;
}
Press Tab or click button to advance to next exercise.
11. Style 1-line text inputs and email inputs gray.
That's correct. Well done!
The correct code:
input[type="text"], input[type="email"] {
color: gray;
}
Press Tab or click button to advance to next exercise.
12. Create a class of textarea input that's 30% wide. Make up the class name.
That's correct. Well done!
Example:
textarea.small {
width: 30%;
}
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: 25 seconds. Code the first line for styling a Submit button.
Press Tab or click button to check answer.
The correct code:
input[type="submit"] {
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. Style multi-line text inputs at 120% of "normal."
Press Tab or click button to check answer.
The correct code:
textarea {
font-size: 1.2em;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 65 seconds. Style email inputs Georgia, Times, serif.
Press Tab or click button to check answer.
The correct code:
input[type="email"] {
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: 45 seconds. Style the Submit button your choice of font-size.
Press Tab or click button to check answer.
Example:
input[type="submit"] {
font-size: 2em;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 60 seconds. Style 1-line text inputs and email inputs gray.
Press Tab or click button to check answer.
The correct code:
input[type="text"], input[type="email"] {
color: gray;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 35 seconds. Create a class of textarea input that's 30% wide. Make up the class name.
Press Tab or click button to check answer.
Example:
textarea.small {
width: 30%;
}
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