|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
<MAP> Type: Container Function: Contains HTML tags that define the clickable regions (hot regions) of an imagemap. Syntax: <MAP NAME=map_name> ... hot region definitions go here ... </MAP> Attributes: The NAME attribute gives the map information a unique name so it can be referenced by the USEMAP attribute in the <IMG> tag that places the imagemap graphic. Example: <MAP NAME=navigation> <AREA SHAPE=RECT COORDS=23,47,58,68" HREF=search.html> <AREA SHAPE=CIRCLE COORDS=120,246,150,246" HREF=about.html> ... </MAP> With the imagemap data defined by the map named navigation, you would reference the map in an <IMG> tag as follows: <IMG SRC=navigation.gif USEMAP=#navigation> If the map were stored in a file different from the documents HTML file, you would reference it this way: <IMG SRC=navigation.gif USEMAP=maps.html#navigation> Related Tags: The <AREA> tag is used to define the individual hot regions in the imagemap. The named map is referenced by the USEMAP attribute of the <IMG> tag. <AREA> Type: Standalone Function: Defines a hot region in a client-side imagemap. Syntax: <AREA SHAPE=RECT|CIRCLE|POLY|DEFAULT COORDS=coordinate_list HREF=URL_of_linked_document TARGET=frame_name ALT=text_alternative TABINDEX=tab_order_position NOHREF ACCESSKEY=key_letter> Attributes: The <AREA> tag takes a number of attributes, including
Example: <MAP NAME=main> <AREA SHAPE=POLY COORDS=35,80,168,99,92,145" HREF=profile.html> <AREA SHAPE=CIRCLE COORDS=288,306,288,334" HREF=feedback.html> <AREA SHAPE=DEFAULT HREF=index.html> </MAP> Related Tags: <AREA> tags are allowable only between <MAP> and </MAP> tags. Table TagsHTML table tags are not only a great way to present information, but a useful layout tool as well (see Figure 3.17). HTML 4.0 expands the table tags in several important ways:
This section looks at all the table-related tags and their many attributes. See Tables, p. 183. <TABLE> Type: Container Function: Contains all HTML tags that compose a table. Syntax: <TABLE ALIGN=LEFT|CENTER|RIGHT BORDER=thickness_in_pixels BGCOLOR=color WIDTH=pixels_or_percentage_of_browser_width COLS=number_of_columns CELLPADDING=pixels CELLSPACING=pixels FRAME=outer_border_rendering RULES=inner_border_rendering SUMMARY=description_of_table_contents_and_structure> ... </TABLE> Attributes: The <TABLE> tag can take the following attributes to modify how the table is presented:
|
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. |