e, two, three" aligned at the bottom of the table.

<TABLE BORDER CELLPADDING="8" CELLSPACING="4">

<TR><TH> English </TH><TH> Spanish </TH><TH> German </TH></TR>

<TR><TD> one     </TD><TD> uno     </TD><TD> ein    </TD></TR>

<TR><TD> two     </TD><TD> dos     </TD><TD> zwei   </TD></TR>

<TR><TD> three   </TD><TD> tres    </TD><TD> drei   </TD></TR>

<CAPTION ALIGN="BOTTOM"> <B>Table 1</B>: Tables are as easy as one, two, three

</CAPTION>

</TABLE>

_IMG SRC="tags3a13.gif" HEIGHT=237 WIDTH=377>

See also

CAPTION, TD, TH, TR.


TD (table data)

Navigator 1.1

The TD tag specifies text that is table data. Place the TD tag within the TABLE tag.

Syntax

<TD "
ALIGN="CENTER"|"LEFT"|"RIGHT"
BGCOLOR="
value"
COLSPAN="
value"
NOWRAP="
value"
ROWSPAN="
value"
VALIGN="BASELINE"|"BOTTOM"|"MIDDLE"|"TOP"
>
...
</TD>

ALIGN specifies the horizontal placement of the table. The value can be

BGCOLOR="value" changes the color of the background of the table cell created by the TD tag. The color value is a hexadecimal red-green-blue triplet, or a color name. See Appendix B, "Color values."Navigator 3.0

COLSPAN="value" indicates the number of columns the cell spans.

NOWRAP specifies that the lines within a cell cannot be broken (i.e. are not word wrapped).

ROWSPAN="value" indicates the number of rows the cell spans.

VALIGN specifies the vertical placement of the text within a cell:

Used within

TABLE

Example

See the example for TABLE.

See also

CAPTION, TABLE, TH, TR.


TEXTAREA (text field on a form)

The TEXTAREA tag defines a multiline input field on an HTML form. A textarea field lets the user enter words, phrases, or numbers.

The following figure shows a textarea element: _IMG SRC="tags3a14.gif" HEIGHT=260 WIDTH=466>

Scrollbars appear if the text in the textarea element exceeds the number of columns or rows in the box.

To begin a new line in a textarea element, use a new paragraph. For example, the following textarea element contains two lines, a blank line, then one line:

<FORM>

<B>Description:</B>

<BR><TEXTAREA NAME="item_description" ROWS="6" COLS="55">

This is the first line.

This is the second line.



This is the last line.

</TEXTAREA>

</FORM>

_IMG SRC="tags3a15.gif" HEIGHT=199 WIDTH=379>

Syntax

<TEXTAREA
COLS="
value"                                                                                                               required
NAME="textareaName"                                                                                                               required
ONBLUR="blurJScode"
ONCHANGE="
changeJScode"
ONFOCUS="
focusJScode"
ONSELECT="
selectJScode"
ROWS="
integer"
WRAP="OFF"|"HARD"|"SOFT"
>
textToDisplay
</TEXTAREA>

COLS="value" defines the width (number of characters per line) the textarea can accommodate without scrolling.

NAME="textareaName" specifies the name of the textarea element. This value is the name portion of the name=value pair sent to the server when the form is submitted. The name is not displayed on the form.

ONBLUR="blurJScode" specifies JavaScript code to execute when the textarea element loses focus. See the JavaScript Guide for information on event handlers.

ONCHANGE="changeJScode" specifies JavaScript code to execute when the textarea element loses focus and its value has been modified. See the JavaScript for information on event handlers.

ONFOCUS="focusJScode specifies JavaScript code to execute when a user clicks the textarea element or tabs to it. See the JavaScript Guide for information on event handlers.

ONSELECT="selectJScode" specifies JavaScript code to execute when a user selects some of the text in the textarea element. See the JavaScript Guide for information on event handlers.

ROWS="integer" defines the height (number of rows) the textarea can accommodate without scrolling.

textToDisplay specifies the label to display in the textarea.

WRAP specifies whether lines longer than the textarea's column width wrap to the next line. Navigator 2.0. The value can be:

Used within

FORM

Example

The following example creates a textarea element that is 6 rows long and 55 columns wide. The textarea field appears immediately below the word "Description:". When the form loads, the textarea element contains several lines of data, including one blank line.

<FORM>

<B>Description:</B>

<BR><TEXTAREA NAME="item_description" ROWS="6" COLS="55">

Our storage ottoman provides an attractive way to

store lots of CDs and videos--and it's versatile

enough to store other things as well.



It can hold up to 72 CDs under the lid and 20 videos

in the drawer below.

</TEXTAREA>

</FORM>

_IMG SRC="tags3a16.gif" HEIGHT=192 WIDTH=377>

See also

FORM


TH (table heading)

Navigator 1.1

The TH tag specifies a table heading.

Syntax

<TH
ALIGN="CENTER"|"LEFT"|"RIGHT"
BGCOLOR="
color"
COLSPAN="
value"
NOWRAP
ROWSPAN="
value"
VALIGN="BASELINE"|"BOTTOM"|"MIDDLE"|"TOP"
>
...
</TH>

ALIGN specifies the horizontal placement of the table:

BGCOLOR="color" changes the color of the background of the table heading. This color can be overridden by a BGCOLOR tag in the TD tags within the scope of the TH tag. The color value is a hexadecimal red-green-blue triplet, or a color name. See Appendix B, "Color values."Navigator 3.0

COLSPAN="value" indicates the number of columns the cell spans.

NOWRAP specifies that the lines within a cell cannot be broken (in other words, are not word wrapped).

ROWSPAN indicates the number of rows the cell spans.

VALIGN specifies the vertical placement of the text within a cell:

Used within

TABLE

Example

See the example for TABLE.

See also

CAPTION, TABLE, TD, TR.


TITLE (document title)

The TITLE tag specifies the title of the document. Generally this title appears in the title bar of the browser window. In addition, the title can be used by automated web search tools to locate an applicable document. If a title is not provided, by default the filename or URL of the document is displayed in the title bar.

Syntax

<TITLE>...</TITLE>

Used within

HEAD

Example

<HTML>

<HEAD>

<TITLE>

Mozilla teaches HTML in three easy steps.

</TITLE>

<BODY>

</BODY>

</HTML>

_IMG SRC="tags3a17.gif" HEIGHT=75 WIDTH=377>

Navigator 1.1


TR (table row)

The TR tag specifies a table row.

Syntax

<TR
ALIGN="CENTER"|"LEFT"|"RIGHT"
BGCOLOR="
color"
VALIGN="BASELINE"|"BOTTOM"|"MIDDLE"|"TOP"
>
...
</TR>

ALIGN specifies the horizontal placement of the table:

BGCOLOR="color" changes the color of the background of the table row created by the TR tag. This color can be overridden by a BGCOLOR tag in the TD tags within the scope of the TR tag. The value of color is a hexadecimal red-green-blue triplet, or a color name. See Appendix B, "Color values."Navigator 3.0

VALIGN specifies the vertical placement of the text within a cell:

Used within

TABLE

Example

See the example for TABLE.

See also

CAPTION, TABLE, TD, TH.


TT (type writer font)

The TT tag displays text in the fixed-width (typewriter) font, as determined in Options|General Preferences.

Syntax

<TT>...</TT>

Example

To run the program, type <TT>xyz</TT> at the command prompt, and then press <KYBD>ENTER</KYBD>.

_IMG SRC="tags3a18.gif" HEIGHT=89 WIDTH=377>

See also

CODE, PRE, KEYBD


U (underline)

Navigator 3.0

The U tag underlines the text it delimits, causing all text within its scope to have a solid underline drawn along the common baseline of the text.

Syntax

<U>...</U>

See also

S, STRIKE


UL (unordered list)

The UL tag defines an unordered list. These items, each begun by the <LI> tag, can contain multiple paragraphs. Just separate the paragraphs with the P paragraph tag.

Syntax

<UL TYPE="CIRCLE"|"DISC"|"SQUARE">

TYPE defines the type of bullet used for each list item, depending on the type of list the item is in: Navigator 1.1

Example

See the example for DL.

See also

DIR, DL, MENU, OL


WBR (word break)

Navigator 1.1

The WBR tag marks a spot where a line break can take place. It is advisory, as contrasted with the BR and NOBR tags.

The WBR tag does not require a closing tag.

Syntax

<WBR>

Example

<NOBR>

Line breaks are not ordinarily inserted into the text contained within a

&lt;NOBR&gt; block, which can produce some awkwardly long lines.

<WBR>

If the text contains a &lt;WBR&gt; tag, however, it marks a location
where the insertion of a line break is permitted.

</NOBR>

_IMG SRC="tags3a19.gif" HEIGHT=100 WIDTH=589>

See also

BR, NOBR


XMP (sequence of literal characters)

The XMP tag defines a sequence of literal characters, such as example text. The text is displayed in the fixed-width font, as determined in Options|General Preferences. Netscape Navigator ignores all HTML tags within the scope of the XMP tag.

Syntax

<XMP>...</XMP>

Example

<XMP>

The <XMP> tag is similar to the <PRE> tag except that HTML tags inside
an <XMP> block are displayed rather than interpreted.

</XMP>

_IMG SRC="tags3a20.gif" HEIGHT=78 WIDTH=590>