Download HTML 4 for Dummies (ISBN - 0764589172) PDF

TitleHTML 4 for Dummies (ISBN - 0764589172)
TagsFor Dummies
LanguageEnglish
File Size8.3 MB
Total Pages434
Table of Contents
                            HTML 4 For Dummies, 5th Edition
	About the Authors
	Authors’ Acknowledgments
	Contents at a Glance
	Table of Contents
	Introduction
		About This Book
		How to Use This Book
		Three Presumptuous Assumptions
		How This Book Is Organized
		Icons Used in This Book
		Where to Go from Here
	Part I: Getting to Know (X) HTML
		Chapter 1: The Least You Need to Know about HTML and the Web
			Web Pages in Their Natural Habitat
			Anatomy of a URL
			(X) HTML’s Component Parts
			Parts Is Parts: What Web Pages Are Made Of
		Chapter 2: Creating and Viewing a Web Page
			Before You Get Started
			Creating a Page from Scratch
			Editing an Existing Web Page
			Posting Your Page Online
		Chapter 3: Proper Planning Prevents Poor Page Performance
			Planning Your Site
			Hosting Your Web Site
	Part II: Formatting Web Pages with (X) HTML
		Chapter 4: Creating (X) HTML Document Structure
			Establishing a Document Structure
			Labeling Your (X) HTML Document
			Adding a Document Header
			Creating the (X) HTML Document Body
			Marvelous Miscellany
		Chapter 5: Text and Lists
			Formatting Text
			Controlling Text Blocks
			Organizing Information
			Text Controls and Annotation
			Marvelous Miscellany
		Chapter 6: Linking to Online Resources
			Basic Links
			Customizing Links
			Marvelous Miscellany
		Chapter 7: Finding and Using Images
			The Role of Images in a Web Page
			Creating Web-Friendly Images
			Adding an Image to a Web Page
			Images That Link
			Marvelous Miscellany
	Part III: Taking Precise Control Over Web Pages
		Chapter 8: Introducing Cascading Style Sheets
			Advantages of Style Sheets
			CSS Structure and Syntax
			Using Different Kinds of Style Sheets
			Understanding the Cascade
		Chapter 9: Using Cascading Style Sheets
			Managing Layout, Positioning, and Appearance
			Multimedia
			Marvelous Miscellany
		Chapter 10: Getting Creative with Colors and Fonts
			Color Values
			Color Definitions
			Fonts
		Chapter 11: Using Tables for Stunning Pages
			What Tables Can Do for You
			Table Basics
			Sketching Your Table
			Constructing Basic Tables
			Adding Spans
			Populating Table Cells
			Testing Your Table
			Table-Making Tips
			Marvelous Miscellany
	Part IV: Integrating Scripts with HTML
		Chapter 12: Scripting Web Pages
			What JavaScript Can Do for Your Pages
		Chapter 13: The Nuts and Bolts of JavaScript
			Including Scripts in Web Pages
			Using the Same Script on Multiple Pages
			Exploring the JavaScript Language
			Events and Event Handling
			Document Object Model (DOM)
			Marvelous Miscellany
			References and Resources
		Chapter 14: Working with Forms
			Uses for Forms
			Creating Forms
			Processing Data
			Designing User-Friendly Forms
			Marvelous Miscellany
		Chapter 15: Fun with Client-Side Scripts
			Adding Rollovers to Your Pages
			Displaying Dynamic Content on Your Page
			Displaying Pop-up Windows
			Working with Cookies
			Marvelous Miscellany
	Part V: HTML Projects
		Chapter 16: The About Me Page
			Overview and Design Considerations
			Page Markup
		Chapter 17: The eBay Auction Page
			Designing Your Auction Page
			Presentation Issues to Consider
			Using a Template for Presenting Your Auction Item
		Chapter 18: A Company Site
			Issues to Consider When Designing Your Site
			Basic Elements of a Company’s Web Site
		Chapter 19: A Product Catalog
			Dissecting a Product Catalog
			Choosing a Shopping Cart
			Page Markup
	Part VI: The Part of Tens
		Chapter 20: Ten Cool HTML Tools
			HTML Editors
			Graphics Tools
			Link Checkers
			HTML Validators
			FTP Clients
			Swiss Army Knives
		Chapter 21: Ten HTML Do’s and Don’ts
			Concentrate on Content
			Go Easy on the Graphics, Bells, Whistles, and Hungry Dinosaurs
			Create Well-Formulated HTML and Test
			Keep It Interesting After It’s Built!
		Chapter 22: Ten Ways to Exterminate Web Bugs
			Avoid Dead Ends and Spelling Faux Pas
			Keep Your Perishables Fresh!
			Check Your Site, and Then Check It Again!
			Let User Feedback Feed Your Site
	Part VII: Appendixes
		Appendix A: Deprecated (X) HTML Elements and Attributes
		Appendix B: Shorthand and Aural CSS Properties
		Appendix C: Glossary
	Index
                        
Document Text Contents
Page 1

by Ed Tittel and Mary C. Burmeister

HTML 4
FOR

DUMmIES


5TH EDITION

01_589172 ffirs.qxd 4/22/05 3:21 PM Page iii


C1.jpg

Page 2

01_589172 ffirs.qxd 4/22/05 3:21 PM Page ii

Page 217

Figure 11-8:
The

cellspacing
attribute

increases
the width of
the border.

Figure 11-7:
The

cellpadding
attribute

increases
the space

within each
cell.

197Chapter 11: Using Tables for Stunning Pages

17_589172 ch11.qxd 4/22/05 3:39 PM Page 197

Page 218

Working with cellpadding and cellspacing to get your table layout just right
can be a bit of a headache. Sometimes you need to create empty cells to help
control layout. Although this trick is a bit of a workaround, many designers
use it. You just

1. Create a cell.

2. Fill the cell with either

• <br />

• A spacer image (a transparent .gif that is 1 x 1 pixel) with which
you can manipulate the width

CSS
You can use CSS to control cell padding and spacing between cells.

Within cells
To control the padding within cells, you use the padding property, like so:

selector {padding: value;}

The value for the padding property must be defined by an absolute or rela-
tive length, or percentage.

To set the padding of a table cell, use the following style declaration:

td {padding: 10px;}

The padding property can be used with most (X)HTML elements. For example,
if you created a footer and assigned it a class name, you can define padding for
the element using the following style rule:

.footer { padding: 5px;}

Between cells
You can control the spacing between your cells using the border-spacing
property:

selector {border-spacing: value;}

The value for the border-spacing property must be defined by an absolute
or relative length, or percentage:

To set the padding of a table cell, use the following style declaration:

td {padding: 10px;}

198 Part III: Taking Precise Control Over Web Pages

17_589172 ch11.qxd 4/22/05 3:39 PM Page 198

Page 433

Available wherever books are sold. For more information or to order direct: U.S. customers visit www.dummies.com or call 1-877-762-2974.
U.K. customers visit www.wileyeurope.com or call 0800 243407. Canadian customers visit www.wiley.ca or call 1-800-567-4797.

Get smart @ dummies.com®
• Find a full list of Dummies titles

• Look into loads of FREE on-site articles

• Sign up for FREE eTips e-mailed to you weekly

• See what other products carry the Dummies name

• Shop directly from the Dummies bookstore

• Enter to win new prizes every month!

Also available:
�Alzheimer’s For Dummies

0-7645-3899-3
�Asthma For Dummies

0-7645-4233-8
�Controlling Cholesterol For Dummies

0-7645-5440-9
�Depression For Dummies

0-7645-3900-0
�Dieting For Dummies

0-7645-4149-8
�Fertility For Dummies

0-7645-2549-2

�Fibromyalgia For Dummies
0-7645-5441-7

�Improving Your Memory For Dummies
0-7645-5435-2

�Pregnancy For Dummies †
0-7645-4483-7

�Quitting Smoking For Dummies
0-7645-2629-4

�Relationships For Dummies
0-7645-5384-4

�Thyroid For Dummies
0-7645-5385-2

HEALTH & SELF-HELP

0-7645-6820-5 *† 0-7645-2566-2

Also available:
�Algebra For Dummies

0-7645-5325-9
�British History For Dummies

0-7645-7021-8
�Calculus For Dummies

0-7645-2498-4
�English Grammar For Dummies

0-7645-5322-4
�Forensics For Dummies

0-7645-5580-4
�The GMAT For Dummies

0-7645-5251-1
�Inglés Para Dummies

0-7645-5427-1

�Italian For Dummies
0-7645-5196-5

�Latin For Dummies
0-7645-5431-X

�Lewis & Clark For Dummies
0-7645-2545-X

�Research Papers For Dummies
0-7645-5426-3

�The SAT I For Dummies
0-7645-7193-1

�Science Fair Projects For Dummies
0-7645-5460-3

�U.S. History For Dummies
0-7645-5249-X

EDUCATION, HISTORY, REFERENCE & TEST PREPARATION

0-7645-5194-9 0-7645-4186-2

* Separate Canadian edition also available
† Separate U.K. edition also available

37_589172 bob.qxd 4/22/05 4:04 PM Page 413

Page 434

Check out the Dummies Specialty Shop at www.dummies.com for more information!

Do More with D
ummies

Products for the
Rest of Us!

From hobbies to health,
discover a wide

variety of fun products

DVDs/Videos • Music CDs • Games
Consumer Electronics • Software

Craft Kits • Culinary Kits • and More!

37_589172 bob.qxd 4/22/05 4:04 PM Page 414

Similer Documents