HTML and CSS Reference
In-Depth Information
1. What two things do you need to create a link in HTML?
2. What's a relative pathname? Why is it advantageous to use them?
3. What's an absolute pathname?
4. What's an anchor, and what is it used for?
5. Besides HTTP (web page) URLs, what other kinds are there?
Quiz Answers
1. To create a link in HTML, you need the name or URL of the file or page to which
you want to link, and the text that your readers can select to follow the link.
2. A relative pathname points to a file, based on the location that's relative to the cur-
rent file. Relative pathnames are portable, meaning that if you move your files else-
where on a disk or rename a directory, the links require little or no modification.
3. An absolute pathname points to a page by starting at the top level of a directory
hierarchy and working downward through all intervening directories to reach the
4. An anchor marks a place that you can link to inside a web document. A link on the
same page or on another page can then jump to that specific location instead of the
top of the page.
5. Other types of URLs are FTP URLs (which point to files on FTP servers); file
URLs (which point to a file contained on a local disk); and mailto URLs (which
are used to send electronic mail).
1. Remember the list of topics that you created in Lesson 5 in the first exercise?
Create a link to the page you created in Lesson 5's second exercise (the page that
described one of the topics in more detail).
2. Now, open the page that you created in Lesson 5's second exercise, and create a
link back to the first page. Also, find some pages on the World Wide Web that
discuss the same topic and create links to those pages, too. Good luck!
Search WWH ::

Custom Search