Learn HTML 1.4: Addendum

11/23/18 - An addendum to Learn HTML, containing tables and basic styling

Previous article

Addendum: Tables

Tables are useful for placing things side-to-side, or just for use as a table.

To create a table, use the <table> tag. Each row is defined with <tr>, and within rows, columns are defined with <td>.

An example of a table:

        <td>Row 1 Column 1</td>
        <td>Row 1 Column 2</td>
        <td>Row 2 Column 1</td>
        <td>Row 2 Column 2</td>

The table should look like this:

Row 1 Column 1 Row 1 Column 2
Row 2 Column 1 Row 2 Column 2

Addendum: Centering and Fonts

The following two attributes are deprecated because of the advent of CSS, but you may still find them useful.

Centering text is as easy as putting it in a <center> tag. For example:

<center><h1>Centered Header</h1></center>

Changing text fonts is done with a <font> tag. The font tag has the size, color, and face (font) attributes. size is the font size relative to the default; color is the text color; face is the font.

For example, to make a green heading using the "Segoe UI" font:

<font face="Segoe UI" color=green size=2>Green Segoe Header</font>