Summary

- Task-based approach teaches readers how to combine HTML and CSS to create sharp, consistent Web pages regardless of monitor size, browser, platform, or viewing device. - Comprehensive coverage of the transition from HTML to XHTML, including the differences between the languages. - Packed with tips, techniques, and illustrations--all updated to reflect newer browsers and the changing use of HTML.

Table of Contents

Introduction.

The Internet, the Web, and HTML. Open but Not Equal. The Browser Wars. The Push for Standards. The Real World. What Should Your Use? How This Books Works. The HTML VQS Web Site.

Creating a Link to Another Web Page. Creating Anchors. Linking to a Specific Anchor. Targeting Links to Specific Windows. Setting the Default Target. Creating Other Kinds of Links. Creating Keyboard Shortcuts for Links. Setting the Tab Order for Links. Using Images to Label Links. Dividing and Image into Clickable Regions. Creating a Client-Side Image Map. Using a Server-Side Image Map.

8. Creating Styles.

Constructing a Style Rule. Constructing Selectors. Selecting Elements by Name. Selecting Elements by Class or ID. Selecting Elements by Context. Selecting Link Elements Based on Their State. Selecting Part of an Element. Selecting Elements Based on Attributes. Specifying Groups of Elements. Combining Selectors.

Structuring Your Pages. The Box Model. Displaying and Hiding Elements. Positioning Elements Absolutely. Affixing an Element to the Browser Window. Offsetting Elements in the Natural Flow. Changing the Background. Changing the Foreground Color. Changing the Cursor. Setting the Border. Adding Padding around an Element. Setting the Margins around an Element. Setting the Height or Width for an Element. Positioning Elements in 3D. Determining Where Overflow Should Go. Making Elements Float. Controlling Where Elements Float. Aligning Elements Vertically.

Mapping Out Your Page. Creating a Simple Table. Adding a Border. Setting the Width. Centering a Table on the Page. Wrapping Text around a Table. Combining Tables. Aligning a Cell's Contents. Changing the Background. Controlling the Space. Spanning a Cell across Columns. Spanning a Cell across Rows. Dividing Your Table into Column Groups. Dividing the Table into Horizontal Sections. Choosing Which Borders to Display. Controlling Line Breaks in a Cell. Speeding up Table Display.

About CGI Scripts. Getting a Script. Using the Scripts Included with This Book. Preparing a Script. Creating a Form. Sending Form Data via E-mail. Using a Form Hosting Service. Creating Text Boxes. Creating Password Boxes. Creating Radio Buttons. Creating Checkboxes. Creating Menus. Creating Larger Text Areas. Allowing Visitors to Upload Files. About Hidden Fields. Adding Hidden Fields to a Form. Creating the Submit Button. Resetting the Form. Using an Image to Submit Data. Organizing the Form Elements. Formally Labeling Form Parts. Setting the Tab Order in a Form. Adding Keyboard Shortcuts. Disabling Form Elements. Keeping Elements from Being Changed.

Adding the Current Date and Time. Changing a Link's Status Label. Changing Multiple Frames with One Link. Keeping Frames in Their Framesets. Changing an Image When a Visitor Points. Loading Images into Cache. Controlling a New Window's Size.

20. Symbols and Non-English Characters.

About Character Encodings. Saving Your Page with the Proper Encoding. Editing a Page with the Proper Encoding. Declaring Your Page's Character Encoding. Adding Character from Outside the Encoding. Specifying Your Page's Language.

21. Formatting: The Old Way.

Choosing Default Characteristics for Text. Formatting Bits of Text. Another Way to Choose Default Colors. Changing the Color of Links. Striking Out or Underlining Text. Making Text Blink.