1. If you're linking to a page at x.com from a page at x.com, rewrite this tag, omitting what you don't need.
<a href="http://www.x.com/hi.html">
That's correct. Well done!
The correct code:
<a href="hi.html">
Press Tab or click button to advance to next exercise.
2. If you're linking to a page in the buildings subdirectory at x.com from a page at x.com, rewrite this tag, omitting what you don't need.
<a href="http://www.x.com/buildings/bldg3.html">
That's correct. Well done!
The correct code:
<a href="buildings/bldg3.html">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. What 2 characters indicate that a subdirectory is on the same level as the subdirectory you're linking from?
That's correct. Well done!
The correct code:
..
Press Tab or click button to advance to next exercise.
4. Code an opening link tag for an html page on the same site and in the same subdirectory as the one you're linking from. Make up the name.
That's correct. Well done!
Example:
<a href="loris.html">
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 an opening link tag for the index page of the tops subdirectory within the products 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.
Code an opening link tag for the fish.html page in the pets subdirectory on the same site.
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 an opening tag that links to the subdirectory pets that's on the same level as the subdirectory you're linking from. The page is cats.html
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code an opening link tag for an html page in a different directory on the same site. Make up the names.
That's correct. Well done!
Example:
<a href="stories/3bears.html">
Press Tab or click button to advance to next exercise.
9. Code an opening link tag for the index page of y.com.
That's correct. Well done!
The correct code:
<a href="http://www.y.com">
Press Tab or click button to advance to next exercise.
10. Code an opening link tag for an html page in the robots subdirectory within the workers subdirectory. Make up the page name.
That's correct. Well done!
The correct code:
<a href="workers/robots/buddy.html">
Press Tab or click button to advance to next exercise.
11. Code an opening link tag for a page in a subdirectory that's one level down from a subdirectory that's on the same level as the subdirectory you're linking from. Make up all the names.
That's correct. Well done!
Example:
<a href="../products/furniture/chairs.html">
Press Tab or click button to advance to next exercise.
12. Code an opening link tag for a page in a subdirectory that's one level down from a subdirectory that's on the same level as the subdirectory you're linking from. Make up all the names.
That's correct. Well done!
Example:
<a href="../products/furniture/chairs.html">
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. Code an opening tag that links to the subdirectory pets that's on the same level as the subdirectory you're linking from. The page is cats.html
Press Tab or click button to check answer.
The correct code:
<a href="../pets/cats.html">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 30 seconds. Code an opening link tag for an html page in a different directory on the same site. Make up the names.
Press Tab or click button to check answer.
Example:
<a href="stories/3bears.html">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 30 seconds. Code an opening link tag for the index page of y.com.
Press Tab or click button to check answer.
The correct code:
<a href="http://www.y.com">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 40 seconds. Code an opening link tag for an html page in the robots subdirectory within the workers subdirectory. Make up the page name.
Press Tab or click button to check answer.
The correct code:
<a href="workers/robots/buddy.html">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 35 seconds. Code an opening link tag for a page in a subdirectory that's on the same level as the subdirectory you're linking from. Make up all the names.
Press Tab or click button to check answer.
Example:
<a href="../furniture/chairs.html">
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 an opening link tag for a page in a subdirectory that's one level down from a subdirectory that's on the same level as the subdirectory you're linking from. Make up all the names.
Press Tab or click button to check answer.
Example:
<a href="../products/furniture/chairs.html">
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