Links

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to previous page   go to home page   go to next page        

Answer:

Yes. The entire list item will be nicely indented.

Links

It is the hyperlinks between Web pages that form the Web-like structure of the Web. In the picture, each rectangle represents a Web page. Each arrow represents a link:

Web Structure

The "links" between pages are not physical links (i.e. they are not physical wires or any other sort of direct connection). A link is established from one page to another when the first page includes the "address" of the second page. This is done with the anchor tag. For example, the following might be the tag in PageA.html to link it to PageB.html if both pages were in the same directory on the same hard disk:

<a href="PageB.html"> Click Here to go to Page B </a>

A Web address is called a URL for Uniform Resource Locator. If a Web page links to a page on a different computer a full URL must be used. For the moment, assume that the pages in the picture all reside in the same disk directory (so the file name alone will work as a Web address).

QUESTION 6:

If PageB.html is to link to PageC.html (which is in the same disk directory) what tag should PageB.html contain?

<a href=_____________> Click Here to go to Page C </a>