1. You embed another site's page in your page using an ______.
That's correct. Well done!
The correct answer:
iframe
Press Tab or click button to advance to next exercise.
2. What are the three characters that replace the asterisks?
<iframe ***
That's correct. Well done!
The correct code:
src
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. What are the two characters that replace the asterisks?
<iframe src**
That's correct. Well done!
The correct code:
="
Press Tab or click button to advance to next exercise.
4. What are the five characters that replace the asterisks?
<iframe src="http://www.asmarterwaytolearn.com/vid2.html" *****
That's correct. Well done!
The correct code:
width
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 an opening iframe 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 opening iframe tag, through the first quotation mark.
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 the rest of the tag. The iframe is wider than it is high. The numbers are 300 and 200.
<iframe src="x.com/y.html"
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code three lines to float iframes right.
That's correct. Well done!
The correct code:
iframe {
float: right;
}
Press Tab or click button to advance to next exercise.
9. Code an opening iframe tag, stopping at the end of the URL (including the closing quotation mark). Make up the URL. The domain is a .com. The page is a .html.
That's correct. Well done!
Example:
<iframe src="http://www.x.com/y.html"
Press Tab or click button to advance to next exercise.
10. Code both iframe tags. Don't type any space between them.
That's correct. Well done!
The correct code:
<iframe></iframe>
Press Tab or click button to advance to next exercise.
11. Code a complete iframe tag, making everything up. The domain is a .com. The page is a .html.
That's correct. Well done!
Example:
<iframe src="http://www.x.com/y.html" width="350"
height="150">
Press Tab or click button to advance to next exercise.
12. Code both iframe tags, making everything up. The domain is a .com. The page is a .html.
That's correct. Well done!
Example:
<iframe src="http://www.x.com/y.html" width="350"
height="150"></iframe>
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: 20 seconds. Code the rest of the tag. The iframe is wider than it is high. The numbers are 300 and 200.
<iframe src="x.com/y.html"
Press Tab or click button to check answer.
The correct code:
width="300" height="200">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 30 seconds. Code three lines to float iframes right.
Press Tab or click button to check answer.
The correct code:
iframe {
float: right;
}
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 opening iframe tag, stopping at the end of the URL (including the closing quotation mark). Make up the URL. The domain is a .com. The page is a .html.
Press Tab or click button to check answer.
Example:
<iframe src="http://www.x.com/y.html"
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 20 seconds. Code both iframe tags. Don't type any space between them.
Press Tab or click button to check answer.
The correct code:
<iframe></iframe>
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 a complete iframe tag, making everything up. The domain is a .com. The page is a .html.
Press Tab or click button to check answer.
Example:
<iframe src="http://www.x.com/y.html" width="350"
height="150">
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 70 seconds. Code both iframe tags, making everything up. The domain is a .com. The page is a .html.
Press Tab or click button to check answer.
Example:
<iframe src="http://www.x.com/y.html" width="350"
height="150"></iframe>
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