1. The three common image-file extensions are ___, gif, and png.
That's correct. Well done!
The correct answer:
jpg
Press Tab or click button to advance to next exercise.
2. The three common image-file extensions are jpg, ___, and png.
That's correct. Well done!
The correct answer:
gif
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. The three common image-file extensions are jpg, gif, and ___.
That's correct. Well done!
The correct answer:
png
Press Tab or click button to advance to next exercise.
4. A file with the extension ___ is usually best for photographs.
That's correct. Well done!
The correct answer:
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 an image tag. The file is in the images 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 image tag. The first part of the file name is "logo". The image is transparent, but is not a png file. The image file is in the same directory as the HTML file.
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 image tag. The image file is in the same directory as the HTML file. The image is transparent but isn't a gif. The first part of the file name is "pic1".
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code an image tag for an image that's animated. The first part of the image name is "jump". The file is in the same directory as the HTML file.
That's correct. Well done!
The correct code:
<img src="jump.gif">
Press Tab or click button to advance to next exercise.
9. Code an image tag for an illustration with many subtle colors. The first part of the image name is "sunset". The file is in the same directory as the HTML file.
That's correct. Well done!
The correct code:
<img src="sunset.jpg">
Press Tab or click button to advance to next exercise.
10. Code an image tag for a simple illustration, using either of the appropriate file types. Choose your own file name. The file is in the same directory as the HTML file.
That's correct. Well done!
Example:
<img src="bug.gif">
Press Tab or click button to advance to next exercise.
11. Code an image tag for a photograph, using the appropriate file type. The image file is in a subdirectory named "pics". Choose your own file name.
That's correct. Well done!
Example:
<img src="pics/headquarters.jpg">
Press Tab or click button to advance to next exercise.
12. Code an image tag. Choose your own subdirectory, image file name, and file type.
That's correct. Well done!
Example:
<img src="images/racecar.jpg">
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. Code an image tag. The image file is in the same directory as the HTML file. The image is transparent but isn't a gif. The first part of the file name is "pic1".
Press Tab or click button to check answer.
The correct code:
<img src="pic1.png">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 20 seconds. Code an image tag for an image that's animated. The first part of the image name is "jump". The file is in the same directory as the HTML file.
Press Tab or click button to check answer.
The correct code:
<img src="jump.gif">
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. Code an image tag for an illustration with many subtle colors. The first part of the image name is "sunset". The file is in the same directory as the HTML file.
Press Tab or click button to check answer.
The correct code:
<img src="sunset.jpg">
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 image tag for a simple illustration, using either of the appropriate file types. Choose your own file name. The file is in the same directory as the HTML file.
Press Tab or click button to check answer.
Example:
<img src="bug.gif">
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 image tag for a photograph, using the appropriate file type. The image file is in a subdirectory named "pics". Choose your own file name.
Press Tab or click button to check answer.
Example:
<img src="pics/headquarters.jpg">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 30 seconds. Code an image tag. Choose your own subdirectory, image file name, and file type.
Press Tab or click button to check answer.
Example:
<img src="images/racecar.jpg">
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