HTML table code


There are a number of HTML features that can not be created with Internet Assistant. To use these functions you will need to switch to the HTML source view and edit the HTML code created by Internet Assistant. It is suggested that you create a basic table first and then edit the HTML code generated.
When you switch to the HTML Source view (select HTML Source from the View menu) you will notice a small toolbar like the example shown on the right. Clicking the pencil button will switch back to the WYSIWYG view. The other button will Auto Format your HTML code to display tags in different colours (HTML Elements in bold black, HTML Attributes in dark red and Attribute values in dark blue) from the text that you have entered like the example below. This can make it easier to check the HTML code in your web page.
edit toolbar

auto format

In this example we will look at changing the cell widths of the above table from a fixed width to a percentage. This can be useful when you want a table to appear differently in browsers running under different screen resolutions. At present each of cells widths is given as a set number of pixels above (151, 75, 151). This can be changed to percentages of the total table width - for example 25%, 50% and 25%. It is then necessary to specify the relative percentage of the total browser screen that the table will fill - 60% in this example. The modified HTML code will now look like the example below and the table will display in the browser as a relative not a fixed size (see below).

new code

Browser view

browser view

There are a large number of other HTML tags which can be checked in any HTML reference book or on the Internet. Some of the common attributes for tables are listed below for reference.

ALIGN=CENTER | LEFT | RIGHT

BACKGROUND=string

BGCOLOR=color

BORDER=integer

BORDERCOLOR=color

BORDERCOLORDARK=color

BORDERCOLORLIGHT=color

CELLPADDING=string

CELLSPACING=string

COLS=string

FRAME=ABOVE | BELOW | BORDER | BOX | INSIDES | LHS | RHS | VOID | VSIDES

HEIGHT=string

CLASS=string

ID=string

LANG=string

LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT

RULES=ALL | COLS | GROUPS | NONE | ROWS

STYLE=string

TITLE=string

WIDTH=string

BackNext