1. Fill in the blank to create a link to the heading.
<h2 ___"product_section">
That's correct. Well done!
The correct code:
id=
Press Tab or click button to advance to next exercise.
2. Fill in the blank to create a link to the section named #top.
<a href=______>Read all about our claim to fame.</a>
That's correct. Well done!
The correct code:
"#top"
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 to link to the paragraph with the id "pets"
<a href=______>
That's correct. Well done!
The correct code:
"#pets"
Press Tab or click button to advance to next exercise.
4. Fill in the blank to link to the section of the faq page named "cost"
<a href="faq.html_____>
That's correct. Well done!
The correct code:
#cost"
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 a link.
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.
Create the opening tag for a link to the heading with the id "cat"
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.
Create a div that allows the following code to link to it.
<a href="#bug">About the bug</a>
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code the opening tag for a heading of the second-largest size. Code it so that it can be linked to. Make up the you-know-what.
That's correct. Well done!
Example:
<h2 id="wow">
Press Tab or click button to advance to next exercise.
9. Create the opening tag for a link to a div. Make up the you-know-what.
That's correct. Well done!
Example:
<a href="#wow">
Press Tab or click button to advance to next exercise.
10. Code a paragraph, including opening closing tags and some text. Code it so that it can be linked to.
That's correct. Well done!
Example:
<p id="main">The medium is the message.</p>
Press Tab or click button to advance to next exercise.
11. Code a complete link, including text and closing tag, to a heading with the id "top"
That's correct. Well done!
Example:
<a href="#top">Go to top</a>
Press Tab or click button to advance to next exercise.
12. Code a complete heading of the smallest size, including some text and closing tag, that can be linked to.
That's correct. Well done!
Example:
<h6 id="disclaimer">Not responsible</h6>
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: 15 seconds. Create a div that allows the following code to link to it.
<a href="#bug">About the bug</a>
Press Tab or click button to check answer.
The correct code:
<div id="bug">
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 opening tag for a heading of the second-largest size. Code it so that it can be linked to. Make up the you-know-what.
Press Tab or click button to check answer.
Example:
<h2 id="wow">
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. Create the opening tag for a link to a div. Make up the you-know-what.
Press Tab or click button to check answer.
Example:
<a href="#wow">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 45 seconds. Code a paragraph, including opening closing tags and some text. Code it so that it can be linked to.
Press Tab or click button to check answer.
Example:
<p id="main">The medium is the message.</p>
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 complete link, including text and closing tag, to a heading with the id "top"
Press Tab or click button to check answer.
Example:
<a href="#top">Go to top</a>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 40 seconds. Code a complete heading of the smallest size, including some text and closing tag, that can be linked to.
Press Tab or click button to check answer.
Example:
<h6 id="disclaimer">Not responsible</h6>
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