HTML

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.
Historical topic: Java appletsModern web browsers do not run Java applets. The Applet API was deprecated for removal before Java 25 and was removed in Java 26. Treat applet examples on this page as historical object-oriented/GUI examples; for new desktop interfaces use Swing where appropriate or JavaFX/OpenJFX.

Answer:

Yes... but if the file does not include an applet nothing will be displayed.

HTML

Files that have the file extension "html" are expected to contain a description of a Web page using a notation called hypertext markup language. This language describes the page layout in functional roles, and leaves the exact layout up to the browser. For example the following part of an "html" file says that the characters between the <p> and the </p> are to be formatted as a paragraph, but exactly how the paragraph is laid out is up to the browser.

<p>
It began one day in
summer about thirty years ago,
and it happened to four children.
Jane was the oldest 
and Mark was the only boy, 
and between them they ran everything.
</p>

Here is what your current Web browser does for that paragraph:

It began one day in summer about thirty years ago, and it happened to four children. Jane was the oldest and Mark was the only boy, and between them they ran everything.

The <p> and </p> are examples of HTML tags that describe the layout of a page. Often tags come in matched pairs that are used to show the start and end of something. If tag like <something> has a matching tag, the matching tag will look like </something> . The "markup" of the phrase hypertext markup language means that you describe the functional role of each part of the file, but the browser decides how to implement that role. For example, the functional role of the text between <p> and </p> is that of a paragraph.

QUESTION 10:

When your Web browser displayed the example paragraph, did it faithfully follow how the text was divided into lines?