1. In order to make the HTML file aware of the CSS file, you have to ____ the CSS file to the HTML file.
That's correct. Well done!
The correct answer:
link
Press Tab or click button to advance to next exercise.
2. The link to the CSS file goes in which section of the HTML file? The answer is 4 characters long.
That's correct. Well done!
The correct answer:
head
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. How many "equations" are in CSS link code? Answer with a numeral.
That's correct. Well done!
The correct answer:
3
Press Tab or click button to advance to next exercise.
4. What are the first 5 characters of the CSS link tag?
That's correct. Well done!
The correct code:
<link
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 form CSS link code. The file is in the css subdirectory.
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.
The latter section of the CSS link code is type="text/css" href="css/styles.css">. Write the first section.
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.
Write the second "equation" of the CSS link code.
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Fill in the blank for the last "equation" of the CSS link code. ______"css/styles.css">
That's correct. Well done!
The correct code:
href=
Press Tab or click button to advance to next exercise.
9. Assuming that the CSS file is named "styles.css" and it is in a subdirectory named "css" write the third "equation" of the CSS link code
That's correct. Well done!
The correct code:
href="css/styles.css"
Press Tab or click button to advance to next exercise.
10. Write the first part of CSS link code, including the first "equation."
That's correct. Well done!
The correct code:
<link rel="stylesheet"
Press Tab or click button to advance to next exercise.
11. Write the second "equation."
That's correct. Well done!
The correct code:
type="text/css"
Press Tab or click button to advance to next exercise.
12. Write the complete CSS link code. Assume that the CSS file is in the same directory as the HTML file and that its name is "s1.css"
That's correct. Well done!
The correct code:
<link rel="stylesheet" type="text/css"
href="s1.css">
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. Write the second "equation" of the CSS link code
Press Tab or click button to check answer.
The correct code:
type="text/css"
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. Fill in the blank for the last "equation" of the CSS link code. ______"css/styles.css">
Press Tab or click button to check answer.
The correct code:
href=<
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 25 seconds. Assuming that the CSS file is named "styles.css" and it is in a subdirectory named "css" write the third "equation" of the CSS link code.
Press Tab or click button to check answer.
The correct code:
href="css/styles.css"
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 25 seconds. Write the first part of CSS link code, including the first "equation."
Press Tab or click button to check answer.
The correct code:
<link rel="stylesheet"
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 20 seconds. Write the second "equation."
Press Tab or click button to check answer.
The correct code:
type="text/css"
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 the complete CSS link code. Assume that the CSS file is in the same directory as the HTML file and that its name is "s1.css"
Press Tab or click button to check answer.
The correct code:
<link rel="stylesheet" type="text/css"
href="s1.css">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
19. You won't be coding in this exercise. It's a demo to give you a feel for how this works. I've placed some code in the answer field below. Click Run it to run my code. Don't change any of my code.
20. Now I'll ask you to link the same HTML code to the CSS file named "styles2.css". The file is in the same directory as the HTML code, so you don't need to specify a subdirectory. This CSS file specifies new fonts for the heading and the paragraph and specifies red for the heading color. You'll learn to create these styles soon. Write your link code in the space I've left for you. Don't change any of my code. When you're finished, click Run it.
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