Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

120 LESSON 6: Working with Links


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
    file.

  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).


Exercises



  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 dis-
    cuss the same topic and create links to those pages, too. Good luck!

Free download pdf