1. The first character of an opening link tag is <. What is the second character?
That's correct. Well done!
The correct code:
a
Press Tab or click button to advance to next exercise.
2. The first characters of an opening link tag are <a plus a space. What are the next four characters?
That's correct. Well done!
The correct code:
href
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. What is the closing link tag?
That's correct. Well done!
The correct code:
</a>
Press Tab or click button to advance to next exercise.
4. In the following code, what is the anchor?
<a href="loris.com">loris site</a>
That's correct. Well done!
The correct answer:
loris site
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 code a link to Wikipedia.
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 a link to me.html on the same website and same directory. The anchor is myself.
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 opening tag for a link to the page products.html that's in the catalog subdirectory.
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code the first part of an opening link tag, ending with the equal sign.
That's correct. Well done!
The correct code:
<a href=
Press Tab or click button to advance to next exercise.
9. Code the closing link tag.
That's correct. Well done!
The correct code:
</a>
Press Tab or click button to advance to next exercise.
10. Code an opening link tag. It links to the page x.html on the same site and in the same directory.
That's correct. Well done!
The correct code:
<a href="x.html">
Press Tab or click button to advance to next exercise.
11. Code an anchor of your choice
That's correct. Well done!
Example:
Our Store
Press Tab or click button to advance to next exercise.
12. Code a complete link, including opening tag, anchor, and closing tag. The page is in a different subdirectory. Choose your own subdirectory, page name, and anchor.
That's correct. Well done!
Example:
<a href="catalog/products.html">Our products</a>
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 the opening tag for a link to the page products.html that's in the catalog subdirectory.
Press Tab or click button to check answer.
The correct code:
<a href="catalog/products.html">
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 part of an opening link tag, ending with the equal sign.
Press Tab or click button to check answer.
The correct code:
<a href=
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 10 seconds. Code the closing link tag.
Press Tab or click button to check answer.
Code the closing link tag.
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 an opening link tag. It links to the page x.html on the same site and in the same directory.
Press Tab or click button to check answer.
The correct code:
<a href="x.html">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 25 seconds. Code an anchor of your choice
Press Tab or click button to check answer.
Example:
Our Store
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 50 seconds. Code a complete link, including opening tag, anchor, and closing tag. The page is in a different subdirectory. Choose your own subdirectory, page name, and anchor.
Press Tab or click button to check answer.
Example:
<a href="catalog/products.html">Our products</a>
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