Web Design in a Nutshell: A Desktop Quick Reference

Web Design in a Nutshell: A Desktop Quick Reference

3.5 7
by Jennifer Niederst Robbins
     
 

View All Available Formats & Editions

This guide contains the nitty-gritty on everything users need to know to design web pages. It's the good stuff, without the fluff, written and organized so that answers can be found quickly. This completely revised and expanded second edition is chock-full of information about the wide range of front-end technologies and techniques from which Web designers and

See more details below

Overview

This guide contains the nitty-gritty on everything users need to know to design web pages. It's the good stuff, without the fluff, written and organized so that answers can be found quickly. This completely revised and expanded second edition is chock-full of information about the wide range of front-end technologies and techniques from which Web designers and authors must draw.

Editorial Reviews

Library Journal
Niederst discusses everything a web designer needs, from basic principles and HTML to designing for multiple browsers, cascading style sheets, and XML. For a working web designer this book will be an invaluable quick reference, and it is written well enough that someone just starting out on the web could also use it. Highly recommended for all libraries.
Booknews
Includes discussions of the Web environment, monitors, and browsers; a complete reference to HTML and Server Side Includes, containing browser support for every tag and attribute; chapters on creating GIF, JPEG, and PNG graphics, and designing with the Web Palette; information on multimedia and interactivity, including audio, video, Flash, Shockwave, and JavaScript; a tutorial and reference on Cascading Style Sheets; and appendices on detailing HTML tags, attributes, deprecated and proprietary tags, and CSS compatibility. This is not a source for programming, scripting, or server functions, but is geared to all levels of expertise, including the lack thereof. Annotation c. Book News, Inc., Portland, OR (booknews.com)

Product Details

ISBN-13:
9780596001964
Publisher:
O'Reilly Media, Incorporated
Publication date:
10/01/1901
Series:
In a Nutshell (O'Reilly) Series
Edition description:
Second Edition
Pages:
640
Product dimensions:
6.30(w) x 9.12(h) x 1.47(d)

Read an Excerpt

Chapter 13: Tables

HTML tags for creating tables were originally developed for presenting rows and columns of tabular data, but designers quickly co-opted them as a valuable tool for controlling the layout of web pages. Tables allow you to create columns of text, hold white space between elements, and restrict the dimensions of the page's content in ways other HTML formatting tags can't.

The HTML 4.01 specification on tables is a great deal more complex than the previous 3.2 standard. It makes an effort to bring context and structure to table data as well as to provide systems for incremental display during download and display on nonvisual display agents (such as speech- and Braille-based browsers). To read what the HTML 4.01 specification has to say about tables, see the W3C's site at http://www.w3c.org/TR/html4/struct/tables.html.

Summary of Table Tags

In this section, browser support for each tag is noted to the right of the tag name. Browsers that do not support the tag are grayed out. Tag usage is indicated below the tag name. Start and end tags are required unless otherwise noted. "Deprecated" means that the tag or attribute is currently supported but is due to be phased out of the HTML specification and is discouraged from use (usually in favor of similar style sheet controls). The attributes listed for each tag reflect those in common use. A more thorough listing of attributes for each tag, according to the HTML 4.01 specification, appears in Appendix A.

<caption>

NN 2, 3, 4, 6 MSIE 2, 3, 4, 5, 5.5, 6 HTML 4.01 WebTV Opera5

<caption>...</caption>

Provides a brief summary of the table's contents or purpose. The caption must immediately follow the <table> tag and precede all other tags. The width of the caption is determined by the width of the table. The caption's position as displayed in the browser can be controlled with the align attribute (or valign in MSIE).

Attributes
align=top|bottom|left|right
Deprecated. Positions the caption relative to the table. The default is top .

valign=top|bottom
Internet Explorer 3.0 and higher only. Positions the caption above or below the table ( top is the default).


<col>

NN 2, 3, 4, 6 MSIE 2, 3, 4, 5, 5.5, 6 HTML 4.01 WebTV Opera5

<col> (no end tag)

Specifies properties for a column (or group of columns) within a column group ( <colgroup> ). Columns can share attributes (such as text alignment) without being part of a formal structural grouping.

Column groups and columns were introduced by Internet Explorer 3.0 and are now proposed by the HTML 4.01 specification as a standard way to label table structure. They may also be useful in speeding table display (i.e., the columns can be displayed incrementally without waiting for the entire contents of the table).

Attributes
align=left|right|center|justify|char
Deprecated. Specifies alignment of text in the cells of a column. The default value is left .

char= character
Specifies a character along which the cell contents will be aligned when align is set to char . The default character is a decimal point (language-appropriate). This attribute is generally not supported by current browsers.

charoff= length
Specifies the offset distance to the first alignment character ( char ) on each line. If a line doesn't use an alignment character, it should be horizontally shifted to end at the alignment position. This attribute is generally not supported by current browsers.

span= number
Specifies the number of columns "spanned" by the <col> element. The default value is 1. All columns indicated in the span are formatted according to the attribute settings in <col> .

valign=top|middle|bottom|baseline
Deprecated. Specifies the vertical alignment of text in the cells of a column.

width= pixels, percentage, n *
Specifies the width of each column spanned by the <col> element. Width can be measured in pixels or percentages, or defined as a relative size ( * ). For example, 2* sets the column two times wider than the other columns; 0* sets the column width at the minimum necessary to hold the column's contents. width in the <col> tag overrides the width settings of the containing <colgroup> element.


<colgroup>

NN 2, 3, 4, 6 MSIE 2, 3, 4, 5, 5.5, 6 HTML 4.01 WebTV Opera5

<colgroup>...</colgroup> (end tag optional)

Creates a column group, a structural division within a table that can be appointed attributes with style sheets or HTML. A table may include more than one column group. The number of columns in a group is specified either by the value of the span attribute or by a tally of columns <col> within the group. Its end tag is optional.

Column groups and columns were introduced by Internet Explorer 3.0 and are now proposed by the HTML 4.0 specification as a standard way to label table structure. They may also be useful in speeding the table display (i.e., the columns can be displayed incrementally without waiting for the entire contents of the table).

Attributes
align=left|right|center|justify|char
Deprecated. Specifies the alignment of text in the cells of a column group. The default value is left .

char= character
Specifies a character along which the cell contents will be aligned when align is set to char . The default character is a decimal point (language-appropriate). This attribute is generally not supported by current browsers.

charoff= length
Specifies the distance to the first alignment character ( char ) on each line. If a line doesn't use an alignment character, it should be horizontally shifted to end at the alignment position. This attribute is generally not supported by current browsers.

span= number
Specifies the number of columns in a column group. If span is not specified, the default is 1.

valign=top|middle|bottom|baseline
Deprecated. Specifies the vertical alignment of text in the cells of a column group. The default is middle .

width= pixels, percentage, n *
Specifies a default width for each column in the current column group. Width can be measured in pixels, percentages, or defined as a relative size ( * ). 0* sets the column width at the minimum necessary to hold the column's contents.


<table>

NN 2, 3, 4, 6 MSIE 2, 3, 4, 5, 5.5, 6 HTML 4.01 WebTV Opera5

<table>...</table>

Defines the beginning and end of a table. The end tag is required, and its omission may cause the table not to render in some browsers....

Read More

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >