1. The most common way to create a navbar is to start by coding a ____. (a 4-letter word)
That's correct. Well done!
The correct answer:
list
Press Tab or click button to advance to next exercise.
2. What type of list do you use to make a navbar? (One word)
That's correct. Well done!
The correct answer:
unordered
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. If this is going to be a navbar, there's a mistake here. Type the tag that must replace the incorrect tag.
<div id="nav">
<ol>
<li><a href="us.html">About Us</a></li>
That's correct. Well done!
The correct code:
<ul>
Press Tab or click button to advance to next exercise.
4. A menu item is Products. It links to prod.html. Code the line that creates it. Don't indent.
That's correct. Well done!
The correct code:
<li><a href="prod.html">Products</a></li>
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 menu item.
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 HTML for a div whose ID is "main_menu".
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 first two HTML lines of a menu. The div ID is "navbar".
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Code the first three HTML lines of a navbar. Make up the id, name of the menu item, and link.
That's correct. Well done!
Example:
<div id="nav">
<ul>
<li><a href="me.html">About Me</a></li>
Press Tab or click button to advance to next exercise.
9. Code a 1-item navbar, starting with the div. Include closing tags. Make up what you need to.
That's correct. Well done!
Example:
<div id="navigation">
<ul>
<li><a href="home.html">Home</a></li>
</ul>
</div>
Press Tab or click button to advance to next exercise.
10. Fill in the blank to eliminate bullets from a list.
list-style-type: ____;
That's correct. Well done!
The correct code:
none
Press Tab or click button to advance to next exercise.
11. Fill in the blank to eliminate bullets from a list.
______________: none;
That's correct. Well done!
The correct code:
list-style-type
Press Tab or click button to advance to next exercise.
12. Eliminate bullets from a list inside a div. Make up the div ID.
That's correct. Well done!
Example:
div#navbar ul {
list-style-type: none;
}
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 first two HTML lines of a menu. The div ID is "navbar".
Press Tab or click button to check answer.
The correct code:
<div id="navbar">
<ul>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 70 seconds. Code the first three HTML lines of a navbar. Make up the id and name of the menu item.
Press Tab or click button to check answer.
Example:
<div id="nav">
<ul>
<li><a href="me.html">About Me</a></li>
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 85 seconds. Code a 1-item navbar, starting with the div. Include closing tags. Make up what you need to.
Press Tab or click button to check answer.
Example:
<div id="navigation">
<ul>
<li><a href="home.html">Home</a></li>
</ul>
</div>
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 to eliminate bullets from a list.
list-style-type: ____;
Press Tab or click button to check answer.
The correct code:
none
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 15 seconds. Fill in the blank to eliminate bullets from a list.
______________: none;
Press Tab or click button to check answer.
The correct code:
list-style-type
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 45 seconds. Eliminate bullets from a list inside a div. Make up the div ID.
Press Tab or click button to check answer.
Example:
div#navbar ul {
list-style-type: none;
}
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