1. You must include two different audio file formats in your audio. One ends in .ogg. The other ends in ____.
That's correct. Well done!
The correct answer:
.mp3
Press Tab or click button to advance to next exercise.
2. You must include two different audio file formats in your audio. One ends in .mp3. The other ends in ____.
That's correct. Well done!
The correct answer:
.ogg
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. The first line of an audio tag that specifies that controls are to be displayed is...
<_____ controls>
That's correct. Well done!
The correct code:
audio
Press Tab or click button to advance to next exercise.
4. Fill in the blank.
<source ___="twinkle.ogg">
That's correct. Well done!
The correct code:
src
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 the first two lines to embed audio.
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 the first line of an audio embed, specifying that controls are to be displayed.
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. Don't forget to indent. When the exercise is complete, I'll turn the exercise number green.
Code the next line. Indent it.
<audio controls>
<source src="eek.ogg">
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code the first line of an audio embed that plays the audio automatically, with controls displayed.
That's correct. Well done!
The correct code:
<audio controls autoplay>
Press Tab or click button to advance to next exercise.
9. Code the first line that specifies an audio file. The file is named drumroll. Don't indent.
That's correct. Well done!
The correct code:
<source src="drumroll.ogg">
Press Tab or click button to advance to next exercise.
10. Code all four lines of an audio embed that doesn't display controls or autoplay. Make up the audio file names.
That's correct. Well done!
Example:
<audio>
<source src="laugh.ogg">
<source src="laugh.mp3">
</audio>
Press Tab or click button to advance to next exercise.
11. Code an automatically playing audio with no controls. Make up the file names.
That's correct. Well done!
Example:
<audio autoplay>
<source src="boom.ogg">
<source src="boom.mp3">
</audio>
Press Tab or click button to advance to next exercise.
12. Code an audio embed. Your choice of features and file names.
That's correct. Well done!
Example:
<audio controls>
<source src="boo.ogg">
<source src="boo.mp3">
</audio>
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: 25 seconds. Code the next line. Indent it.
<audio controls>
<source src="eek.ogg">
Press Tab or click button to check answer.
The correct code:
<source src="eek.mp3">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 25 seconds. Code the first line of an audio embed that plays the audio automatically, with controls displayed.
Press Tab or click button to check answer.
The correct code:
<audio controls autoplay>
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 the first line that specifies an audio file. The file is named drumroll. Don't indent.
Press Tab or click button to check answer.
The correct code:
<source src="drumroll.ogg">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 70 seconds. Code all four lines of an audio embed that doesn't display controls or autoplay. Make up the audio file names.
Press Tab or click button to check answer.
Example:
<audio>
<source src="laugh.ogg">
<source src="laugh.mp3">
</audio>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 80 seconds. Code an automatically playing audio with no controls. Make up the file names.
Press Tab or click button to check answer.
Example:
<audio autoplay>
<source src="boom.ogg">
<source src="boom.mp3">
</audio>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 75 seconds. Code an audio embed. Your choice of features and file names.
Press Tab or click button to check answer.
Example:
<audio controls>
<source src="boo.ogg">
<source src="boo.mp3">
</audio>
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