IVAN STANTON

Computer Nerd

Learn HTML 1.4: Addendum

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:

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

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>