Tag

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 group of sentences in written material typically separated from other groups by typographic means.

Tag

You know what a paragraph is, of course. Notice that the definition describes the functional role of a paragraph but does not describe how a paragraph is displayed. In HTML a paragraph is placed between two tags:

<p>  
paragraph goes here
</p>

A tag is used to mark the role of part of the page's content. Tags start with < and end with >. In between are symbols that describe the role. For example, "p" stands for "paragraph."

To be compatible with modern HTML, use a small letter "p" in the <p>. Most browsers will also let you use a capital "P" but this is a deprecated feature. (Deprecated means Once OK, but no longer acceptable.) You don't have to start the tag in column one. Here is a small Web page containing a single paragraph (and some other necessary tags which we will get to in a moment):

Now click to see what this HTML does.

A new browser window will appear with your HTML inside. To exit the window, click on its 'close' button. (Unfortunately, this does not work with all browsers. If it does not work with yours try a different browser).

QUESTION 4:

Add another paragraph to this Web page. (Just click after the </p> and start typing.) Don't forget the <p> and </p> tags. (If you forget these tags, things will probably work OK, but practice doing things right.)