1. This is the beginning of a tag that allows the user to click an image to go to Stack Overflow. Type the next 9 characters.
<a href="http://www.stackoverflow.com">_________
That's correct. Well done!
The correct code:
<img src=
Press Tab or click button to advance to next exercise.
2. Type the first 8 characters of a tag that allows the user to click an image to go to another page.
That's correct. Well done!
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.
3. Code the first tag for a clickable image that takes the user to x.com.
That's correct. Well done!
The correct code:
<a href="http://www.x.com">
Press Tab or click button to advance to next exercise.
4. Code the second tag for a clickable image, x.jpg that's in the current directory. Don't include any specifications besides the image file name.
That's correct. Well done!
The correct code:
<img src="x.jpg">
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 clickable image.
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 clickable image that takes the user to cats.com. Code all three tags. The image is kitten.jpg, in the current subdirectory. Don't specify anything but the image file name.
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 a clickable image that takes the user to faq.html on the same site. The image is faq.gif, in the current directory. Besides the image file name, specify alternative text "faq"
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code a clickable image that takes the user to peeps.html on the current site. Code all three tags. Make up the image name and file type. Don't bother with any image specs.
That's correct. Well done!
Example:
<a href="peeps.html"><img src="people.png"></a>
Press Tab or click button to advance to next exercise.
9. Code a clickable image that takes the user to the index page at x.com. Code all three tags. The image is in the current directory. Make up the image name and file type. Don't bother with any image specs.
That's correct. Well done!
The correct code:
<a href="http://www.x.com"><img src="x_logo.png"></a>
Press Tab or click button to advance to next exercise.
10. Code a clickable image that takes the user to the anchor "top" on the current page. Code all three tags. The image is in the "images" subdirectory. Make up the image name and file type. Don't bother with any image specs.
That's correct. Well done!
The correct code:
<a href="#top"><img src="images/top.gif"></a>
Press Tab or click button to advance to next exercise.
11. Code a clickable image that takes the user to products.html on the current site. Code all three tags. The image is in the "pics" subdirectory. Make up the image name and file type. Don't bother with any image specs.
That's correct. Well done!
The correct code:
<a href="products.html"><img src="pics/products_icon.png"></a>
Press Tab or click button to advance to next exercise.
12. Code a clickable image that takes the user to a page, your choice of name, on the current site. Code all three tags. The image is in the current directory. Make up the image name and file type as well as alternative text and width and height.
That's correct. Well done!
Example:
<a href="about_us.html"><img src="us.jpg" alt="
Just us" width="100" height="100"></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: 55 seconds. Code a clickable image that takes the user to faq.html on the same site. The image is faq.gif, in the current directory. Besides the image file name, specify alternative text "faq"
Press Tab or click button to check answer.
The correct code:
<a href="faq.html"><img src="faq.gif" alt="faq"></a>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 50 seconds. Code a clickable image that takes the user to peeps.html on the current site. Code all three tags. Make up the image name and file type. Don't bother with any image specs.
Press Tab or click button to check answer.
Example:
<a href="peeps.html"><img src="people.png"></a>
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. Code a clickable image that takes the user to the index page at x.com. Code all three tags. The image is in the current directory. Make up the image name and file type. Don't bother with any image specs.
Press Tab or click button to check answer.
The correct code:
<a href="http://www.x.com"><img src="x_logo.png"></a>
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. Code a clickable image that takes the user to the anchor "top" on the current page. Code all three tags. The image is in the "images" subdirectory. Make up the image name and file type. Don't bother with any image specs.
Press Tab or click button to check answer.
The correct code:
<a href="#top"><img src="images/top.gif"></a>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 65 seconds. Code a clickable image that takes the user to products.html on the current site. Code all three tags. The image is in the "pics" subdirectory. Make up the image name and file type. Don't bother with any image specs.
Press Tab or click button to check answer.
The correct code:
<a href="products.html"><img src="pics/products_icon.png"></a>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 85 seconds. Code a clickable image that takes the user to a page, your choice of name, on the current site. Code all three tags. The image is in the current directory. Make up the image name and file type as well as alternative text and width and height.
Press Tab or click button to check answer.
Example:
<a href="about_us.html"><img src="us.jgp" alt="Just us" width="100"
height="100"></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