1. To group related form items, fill in the blank.
<field___>
That's correct. Well done!
The correct code:
set
Press Tab or click button to advance to next exercise.
2. To group related form items, fill in the blank.
<_____set>
That's correct. Well done!
The correct code:
field
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. What is the opening tag to display text describing the form elements in the group?
That's correct. Well done!
The correct code:
<legend>
Press Tab or click button to advance to next exercise.
4. Code the opening tag that is directly above a legend tag.
That's correct. Well done!
The correct code:
<fieldset>
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 opening fieldset and legend tags.
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 opening and closing tags for grouping related form elements.
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 description for the form elements in a group. The text is "address". Include the closing tag.
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code the closing tag for grouping form elements.
That's correct. Well done!
The correct code:
</fieldset>
Press Tab or click button to advance to next exercise.
9. Code the closing tag for code that displays a word or more to describe a form group.
That's correct. Well done!
The correct code:
</legend>
Press Tab or click button to advance to next exercise.
10. You're grouping form elements and adding "Personal" as a description. Code the first 2 lines. Include the closing tag for "Personal".
That's correct. Well done!
The correct code:
<fieldset>
<legend>Personal</legend>
Press Tab or click button to advance to next exercise.
11. Code a group description. Make up the text. Include the closing tag.
That's correct. Well done!
Example:
<legend>Work info</legend>
Press Tab or click button to advance to next exercise.
12. Code the opening tag for grouping. Follow with a single radio button. The radio button gets a name, value, and label. The label is coded the easy way. Make up the name, value, and label text.
That's correct. Well done!
Example:
<fieldset>
<label><input type="radio" name="gender"
value="female">Gender</label>
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: 30 seconds. Code a description for the form elements in a group. The text is "address". Include the closing tag.
Press Tab or click button to check answer.
Correct code:
<legend>address</legend>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 15 seconds. Code the closing tag for grouping form elements.
Press Tab or click button to check answer.
The correct code:
</fieldset>
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. Code the closing tag for code that displays a word or more to describe a form group.
Press Tab or click button to check answer.
The correct code:
</legend>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 40 seconds. You're grouping form elements and adding "Personal" as a description. Code the first 2 lines. Include the closing tag for "Personal".
Press Tab or click button to check answer.
The correct code:
<fieldset>
<legend>Personal</legend>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 30 seconds. Code a group description. Make up the text. Include the closing tag.
Press Tab or click button to check answer.
Example:
<legend>Work info</legend>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 80 seconds. Code the opening tag for grouping. Follow with a single radio button. The radio button gets a name, value, and label. The label is coded the easy way. Make up the name, value, and label text.
Press Tab or click button to check answer.
Example:
<fieldset>
<label><input type="radio" name="gender"
value="female">Gender</label>
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