Table Headings

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:

Seems to work.

Table Headings

Tables are easier to understand when their columns have headings, such as the following:

Element Characteristic Color
Barium Yellow
Boron Green
Sodium Yellow
Strontium Red

The headings are in a row, which looks like any row except each item in the row is bracketed by the tags <th> and </th> (for "Table Heading"). Usually this results in the item apearing in bold font and centered within its cell. Add headings to this table:

Now click to see what the HTML does.

QUESTION 7:

Change all the tags for one element from <td> and </td> to <th> and </th>. Is it possible to have more than one row of table headings?