|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
<TD>, <TH> Type: Container Function: Defines a cell in a table. <TH> creates a header cell whose contents will be rendered in boldface and with a centered horizontal alignment. <TD> creates a regular data cell whose contents are aligned flush left and in a normal font weight. Vertical alignment for both types of cells is MIDDLE by default. Syntax: <TD ALIGN=LEFT|RIGHT|CENTER|JUSTIFY|CHAR VALIGN=TOP|MIDDLE|BOTTOM|BASELINE CHAR=alignment_character CHAROFF=alignment_character_offset NOWRAP ROWSPAN=number_of_rows COLSPAN=number_of_columns ABBR=header_cell_abbreviation AXIS=list_of_category_names HEADERS=list_of_ID headers SCOPE=ROW|COL|ROWGROUP|COLGROUP> or <TH ALIGN=LEFT|RIGHT|CENTER|JUSTIFY|CHAR VALIGN=TOP|MIDDLE|BOTTOM|BASELINE CHAR=alignment_character CHAROFF=alignment_character_offset NOWRAP ROWSPAN=number_of_rows COLSPAN=number_of_columns ABBR=cell_abbreviation AXIS=list_of_category_names HEADERS=list_of_ID headers SCOPE=ROW|COL|ROWGROUP|COLGROUP> Attributes: Both the <TH> and <TD> tags can take the following attributes:
Example: <TR VALIGN=BOTTOM> <TH>Column 1 - center/bottom alignment</TH> <TD VALIGN=MIDDLE>Column 2 - left/middle alignment</TD> <TD ALIGN=JUSTIFY>Column 3 - justify/bottom alignment</TD> <TD COLSPAN=2>Columns 4 and 5 - left/bottom alignment</TD> </TR> Form TagsHTML forms are a Web surfers gateway to interactive content. Forms collect information from a user, and then a script or program on a Web server uses the information to compose a custom response to the form submission. For all the form controls that are available to you as a document author, you need to know surprisingly few tags to produce them. These tags, together with some new tags introduced in the HTML 4.0 recommendation that improve form accessibility for the disabled, are covered in this section. See Forms, p. 233. <FORM> Type: Container Function: Contains the text and tags that compose an HTML form (see Figure 3.18).
Syntax: <FORM ACTION=URL_of_processing_script METHOD=GET|POST TARGET=frame_name ENCTYPE=MIME_type_of_file_to_upload ACCEPT-CHARSET=acceptable_character_sets ACCEPT=acceptable_MIME_types> ... </FORM> The <FORM> tag and its attributes are sometimes referred to as the form header. Attributes: The <FORM> tag takes the following attributes:
Example: <FORM ACTION=/shopping_cart.cfm METHOD=POST TARGET=response> ... </FORM> Related Tags: The following tags are valid only when used between the <FORM> and </FORM> tags: <INPUT>, <SELECT>, <OPTION>, <OPTGROUP>, <TEXTAREA>, <BUTTON>, <LABEL>, <FIELDSET>, and <LEGEND>. Each of these tags is described in this section. <INPUT> Type: Standalone Function: Places one of the following form controls:
Syntax: <!-- Text and password fields --> <INPUT TYPE=TEXT|PASSWORD NAME=field_name VALUE=default_value SIZE=field_size MAXLENGTH=maximum_input_length DISABLED READONLY> or <!-- Hidden field --> <INPUT TYPE=HIDDEN NAME=field_name VALUE=field_value> or <!-- Checkbox --> <INPUT TYPE=CHECKBOX NAME=field_name VALUE=field_value CHECKED DISABLED> or <!-- Radio button --> <INPUT TYPE=RADIO NAME=field_name VALUE=field_value CHECKED DISABLED> or <!-- File upload --> <INPUT TYPE=FILE NAME=field_name VALUE=default_value ACCEPT=acceptable_MIME_types DISABLED> or <!-- Image-based button --> <INPUT TYPE=IMAGE SRC=URL_of_image_file ALT=text_description ALIGN=TOP|MIDDLE|BOTTOM|LEFT|RIGHT USEMAP=map_name DISABLED> or <!-- Scripted button --> <INPUT TYPE=BUTTON VALUE=button_label onclick=script_name DISABLED> or <!-- Submit/reset button --> <INPUT TYPE=SUBMIT|RESET VALUE=button_label DISABLED>
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |