Skeleton Web Page

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:

A browser will regard the text as one paragraph. Blank lines and extra spaces are ignored. Your browser formats the paragraph like this:

I had called upon my friend Sherlock Holmes upon the second morning after Christmas, with the intention of wishing him the compliments of the season. He was lounging upon the sofa in a purple dressing-gown, a pipe-rack within his reach upon the right, and a pile of crumpled morning papers, evidently newly studied, near at hand.

Skeleton Web Page

A skeleton Web page looks like this:

<html>

<head>
</head>

<body>
</body>
  
</html>

Use lower case for the tags. Your spacing and indenting is ignored.

The entire Web page is bracketed between the tags <html> and </html>. The head of the Web page is contained between <head> and </head>. The head of a Web page contains information about the page, such as its title.

The main content of the page is its body, contained between <body> and </body>. Here is where all your paragraphs of text and applets are put.

QUESTION 6:

(Thought question: ) Could a Web page have more than one body?