1. What is the specification that provides a word or a few words that describe the image?
That's correct. Well done!
The correct answer:
alt
Press Tab or click button to advance to next exercise.
2. Fill in the blank.
<img src="cat.jpg" ____"my cat">
That's correct. Well done!
The correct code:
alt=
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. The image is going to display 50 pixels wide by 75 pixels high. Fill in the blank.
<img src="cat.jpg" _______________>
That's correct. Well done!
The correct code:
width="50" height="75"
Press Tab or click button to advance to next exercise.
4. If an image is 100 pixels wide by 50 pixels high, what is the ideal height for display? Answer with a number.
That's correct. Well done!
The correct answer:
50
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 image tag.<
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 for bldg1.gif with some text that says "building 1" that the browser may display if the image display fails.
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 for bldg1.gif, to display 150 pixels wide and 100 pixels high.
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code an image tag, including dimensions. Make up the image source, type, and dimensions.
That's correct. Well done!
Example:
<img src="vase.png" width="150" height="100">
Press Tab or click button to advance to next exercise.
9. Code an image tag, including text that may display if the image doesn't. Make up the image source, type, and text.
That's correct. Well done!
Example:
<img src="ic17.jpg" alt="storefront">
Press Tab or click button to advance to next exercise.
10. Code an image tag, including text that may display if the image doesn't, plus dimensions. The image is square. Make up the image source, type, text, and dimensions.
That's correct. Well done!
Example:
<img src="flower.jpg" alt="rose" width="150"
height="150">
Press Tab or click button to advance to next exercise.
11. Code an image tag, including text that may display if the image doesn't, plus dimensions. The image displays as 15 pixels by 15 pixels. Make up the image source, type, and text.
That's correct. Well done!
Example:
<img src="icon2.gif" alt="Email" width="15"
height="15">
Press Tab or click button to advance to next exercise.
12. Code an image tag, including text that may display if the image doesn't, plus display dimensions. The image is 400 pixels by 200 pixels, but is to be displayed half that size. Make up the image source, type, and text.
That's correct. Well done!
Example:
<img src="pic1.jpg" alt="truck" width="200"
height="100">
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: 50 seconds. Code an image tag for bldg1.gif, to display 150 pixels wide and 100 pixels high.
Press Tab or click button to check answer.
The correct code:
<img src="bldg1.gif" width="150" height="100">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 45 seconds. Code an image tag, including dimensions. Make up the image source, type, and dimensions.
Press Tab or click button to check answer.
Example:
<img src="vase.png" width="150" height="100">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 40 seconds. Code an image tag, including text that may display if the image doesn't. Make up the image source, type, and text.
Press Tab or click button to check answer.
Example:
<img src="ic17.jpg" alt="storefront">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 60 seconds. Code an image tag, including text that may display if the image doesn't, plus dimensions. The image is square. Make up the image source, type, text, and dimensions.
Press Tab or click button to check answer.
Example:
<img src="flower.jpg" alt="rose" width="150"
height="150">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 60 seconds. Code an image tag, including text that may display if the image doesn't, plus dimensions. The image displays as 15 pixels by 15 pixels. Make up the image source, type, and text.
Press Tab or click button to check answer.
Example:
<img src="icon2.gif" alt="Email" width="15"
height="15">
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. Code an image tag, including text that may display if the image doesn't, plus display dimensions. The image is 400 pixels by 200 pixels, but is to be displayed half that size. Make up the image source, type, and text.
Press Tab or click button to check answer.
Example:
<img src="pic1.jpg" alt="truck" width="200"
height="100">
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