List Practice

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... it is possible to nest lists many levels deep.

List Practice

Here is our list of lists:

  • Reds
    • red
    • pink
    • hotpink
    • lightpink
  • Oranges
    • orange
    • orangered
  • Yellows
    • yellow
    • goldenrod
    • darkgoldenrod

Try to change the following HTML to create that list:

This may take a couple of trys. To speed things up, use "copy" and "paste" from the browser edit menu to manipulate the text in the box. Then click   to see what the HTML does.

QUESTION 4:

After you get it working, delete one of the inner </ul> tags and notice the effect.