Character Formatting

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:

Try it and see!

Character Formatting

The tags in the following table are used to specify different fonts. Some of the tags are describe the function of their contents (and let the browser pick how that function is to be displayed). Other tags explicitly call for a particular type of font. For example the emphasis tags <em> and </em> are functional because they say that the enclosed text should be emphasised, but don't say how to do it. Usually a browser will set the text in italic type. The italic tags <i> and </i> explicitly say to use italic type.

TagsFunctionExample
<em> ... </em>EmphasisThis is emphasised!
<i> ... </i>ItalicThis is italic.
<strong> ... </strong>Strong emphasis!!!It is SO important that you study these notes!!!
<b> ... </b>BoldfaceAlright, maybe not that important.
<code> ... </code>Computer code example.System.out.println("Hello World!");
<tt> ... </tt>Typewriter font.The quick red fox jumped over the lazy brown cow.
<u> ... </u>Underline.Underlining everything looks bad! You will irritate the reader!


QUESTION 14:

Do you think

<b><i>Bold Italic Type</i></b>

will work?