Note: When you enter an incorrect answer (not that you ever will), it's nothing to worry about. I'll always come back to the question later and give you a do-over. You'll really, really learn when you try, try again. And sometimes the third time's the charm.
If a question is too easy for you to bother with, you always have the option to skip it, with credit. Boredom is not part of the curriculum here.
These exercises were created by Mark Myers and Tim Miller.
Click button to begin the exercises.
1. The file that creates a webpage is made up of nothing but ______. Answer with one word.
That's correct. Well done!
The correct answer:
text
Press Tab or click button to advance to next exercise.
2. When you name the file that creates a webpage, what are the last 5 characters of the filename?
That's correct. Well done!
The correct answer:
.html
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. When you name a file that creates styles for a webpage, what are the last 4 characters of the filename?
That's correct. Well done!
The correct answer:
.css
Press Tab or click button to advance to next exercise.
4. What type of program—Chrome, Firefox, Internet Explorer, and Safari are examples—assembles a webpage from HTML and CSS files? Answer with one word.
That's correct. Well done!
The correct answer:
browser
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 form a valid URL that points to the about page at fun.com.
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.
You can see the name of a webpage's HTML file in the browser's _______ ___ (2 words).
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.
What portion of the following URL is the file name?
http://www.asmarterwaytolearn.com/html-css/1.html
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. If the following URL appears in the browser's address bar, what is the name of the file that most likely created the page?—
http://www.asmarterwaytolearn.com
That's correct. Well done!
The correct answer:
index.html
Press Tab or click button to advance to next exercise.
9. Type the illegal character in this document name—
l8ost planet.html
That's correct. Well done!
The correct response was to type a space.
Press Tab or click button to advance to next exercise.
10. Make up a legal file name for a webpage.
That's correct. Well done!
The correct answer:
It can be any combination of alphabet (lowercase preferred)
and number characters, plus the underline
character if you wish, but no spaces.
It must end with dot html.
Example: bear_tracks2.html
Press Tab or click button to advance to next exercise.
11. Make up another legal file name for a webpage.
That's correct. Well done!
The correct answer:
It can be any combination of alphabet (lowercase preferred)
and number characters, plus the underline
character if you wish, but no spaces.
It must end with dot html.
Press Tab or click button to advance to next exercise.
12. Typically, an HTML file is stored on the web host's _______ (1 word).
That's correct. Well done!
The correct answer:
server
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. What portion of the following URL is the file name?
http://www.asmarterwaytolearn.com/html-css/1.html
Press Tab or click button to check answer.
The correct answer:
1.html
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. If the following URL appears in the browser's address bar, what is the name of the file that most likely created the page?—
http://www.asmarterwaytolearn.com
Press Tab or click button to check answer.
The correct answer:
index.html
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 5 seconds. Type the illegal character in this document name—
l8ost planet.html
Press Tab or click button to check answer.
The correct response was to type a space.
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. Make up a legal file name for a webpage.
Press Tab or click button to check answer.
The correct answer:
It can be any combination of alphabet (lowercase preferred)
and number characters, plus the underline
character if you wish, but no spaces.
It must end with dot html.
Example: bear_tracks2.html
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 20 seconds. Make up another legal file name for a webpage.
Press Tab or click button to check answer.
The correct answer:
It can be any combination of alphabet (lowercase preferred)
and number characters, plus the underline
character if you wish, but no spaces.
It must end with dot html.
Example: bear_tracks2.html
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 15 seconds. Typically, an HTML file is stored on the web host's _______ (1 word).
Press Tab or click button to check answer.
The correct answer:
server
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.
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19
1
0