1. Fill in the blank.
<input type=_____ value="Submit this form">
That's correct. Well done!
The correct code:
"submit"
Press Tab or click button to advance to next exercise.
2. Fill in the blank.
_________="submit" value="Submit this form">
That's correct. Well done!
The correct code:
<input type
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. Fill in the blank.
input type="submit" _____"Submit this form">
That's correct. Well done!
The correct code:
value=
Press Tab or click button to advance to next exercise.
4. The button says "Send email". Fill in the blank.
<input type="submit" __________________
That's correct. Well done!
The correct code:
value="Send email">
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 submit button.
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 submit button that says "Go".
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 submit button that says "Send"
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code the first 19 characters of a tag that specifies an image as a submit button.
That's correct. Well done!
The correct code:
<input type="image"
Press Tab or click button to advance to next exercise.
9. The image file, btn.png, is in the same directory as the HTML file. Fill in the blank.
<input type="image" ______________ alt="Submit"
width="72" height="18">
That's correct. Well done!
The correct code:
src="btn.png"
Press Tab or click button to advance to next exercise.
10. Fill in the blank.
<input type="image" src="btn.png" ___="Submit"
width="72" height="18">
That's correct. Well done!
The correct code:
alt
Press Tab or click button to advance to next exercise.
11. Fill in the blank. Make up the numbers.
<input type="image" src="btn.png"
alt="Submit" ________________
That's correct. Well done!
Example:
width="150" height="50">
Press Tab or click button to advance to next exercise.
12. Code the entire tag for a submit button that's an image. Make everything up.
That's correct. Well done!
Example:
<input type="image" src="btn.png"
alt="Submit" width="75" height="33">
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 a submit button that says "Send"
Press Tab or click button to check answer.
The correct code:
<input type="submit" value="Send">
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 the first 19 characters of a tag that specifies an image as a submit button.
Press Tab or click button to check answer.
The correct code:
<input type="image"
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 15 seconds. The image file, btn.png, is in the same directory as the HTML file. Fill in the blank.
<input type="image" ______________ alt="Submit"
width="72" height="18">
Press Tab or click button to check answer.
The correct code:
src="btn.png"
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 10 seconds. Fill in the blank.
<input type="image" src="btn.png" ___="Submit"
width="72" height="18">
Press Tab or click button to check answer.
The correct code:
alt
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. Fill in the blank. Make up the numbers.
<input type="image" src="btn.png"
alt="Submit" ________________
Press Tab or click button to check answer.
Example:
width="150" height="50">
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 the entire tag for a submit button that's an image. Make everything up.
Press Tab or click button to check answer.
Example:
<input type="image" src="btn.png" alt="Submit"
width="75" height="33">
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