Basic Table

Below is the code for the basic triple table. Copy and then paste directly into your custom html box.

The table exactly as seen here will show. You can then change the widths, colors, words, borders, cellpads, cellspaces, and upload your images as desired.

A Note About Tables

The <table> element is not deprecated but using it for layout is often discouraged.

Because of several shortcomings, people started adopting CSS based methods when browser support increased.

One the other hand, tables have several advantages - columns can resize automatically so the table always fills different screen widths. Cell borders and background colors can enhance readability.

<table width="90%" border="2" align="center" cellpadding="2" cellspacing="8" bgcolor="maroon">
<tr><td>

<table width="100%" border="2" align="center" cellpadding="2" cellspacing="8" bgcolor="green">
<tr><td>

<table width="100%" border="2" align="center" cellpadding="2" cellspacing="8" bgcolor="navy">
<tr><td>

<table width="100%" border="2" align="center" cellpadding="15" cellspacing="8" bgcolor="beige">
<tr><td>

Your text or images go here. The box will grow with your contents.

</td></tr></table>

</td></tr></table>

</td></tr></table>

</td></tr></table>


No comments:

Post a Comment