HTML for the World Wide Web

Front Cover
Peachpit Press, 2003 - Computers - 480 pages
13 Reviews
Annotation The indispensable guide to the constantly evolving lingua franca of the Web. 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 up20020926d to reflect newer browsers and the changing use of HTML. As both the Web itself and the browsers used to navigate it mature, work-arounds that compensate for the myriad factors that affect Web page appearances no longer cut it. Users expect Web pages to look beautiful regardless-and with the fifth edition of this popular Visual QuickStart Guide,readers can make theirWeb pages comply. By following the generously illustrated, step-by-step instructions that are the hallmark of the VQS series, readers will be creating beautiful code that works consistently across browser versions and platforms (including hand-held devices and cell phones) in no time. This updated edition includes a new section on foreign-language and multilingual Web sites as well as lots of coverage on how the use of HTML is changing. What hasn't changed, however, is the book's popular format: Task-oriented, step-by-step instruction that builds on the reader's growing knowledge plus info-packed appendixes, a comprehensive index, and plenty of screen shots and code examples make this a must-have reference. For anyone interested in knowing HTML-from those just getting their feet wet (no prior HTML knowledge is required) to professional Web site developers. Elizabeth Castrohas written numerous books, including the best-selling Perl and CGI for the World Wide Web: Visual QuickStart Guide, XML for the World Wide Web: Visual QuickStart Guide, and the four previous editions of this best-selling title.
  

What people are saying - Write a review

User ratings

5 stars
2
4 stars
5
3 stars
4
2 stars
1
1 star
1

LibraryThing Review

User Review  - sweetiegherkin - LibraryThing

This book was required reading for one of my courses (an introduction to information technology for those of us who aren't exactly tech-savvy). This semester I was particularly overworked so I gave up ... Read full review

LibraryThing Review

User Review  - JessieP73 - LibraryThing

I read chapters 1-12 and 15-17, which covered HTML code, laying out a page, CSS stylesheets, forms, tables, and basic editing. Castro explanations of why and how are very easy to understand, with ... Read full review

Selected pages

Contents

Web Page Building Blocks
25
Elements Attributes and Values
26
A Web Pages Text Content
30
Links Images and Other NonText Content
31
File Names
32
URLs
33
HTML vs XHTML
36
Versions flavors and DOCTYPE
38
Choosing Which Borders to Display
237
Controlling Line Breaks in a Cell
239
Speeding up Table Display
240
Frames
241
Creating a Simple Frameset
242
Creating Frames in Columns
244
Creating Frames in Rows and Columns
245
Combining Framesets
246

The Default Display of XHTML
40
Adding Style to Your Web Pages
41
When Rules Collide
42
A Propertys Value
44
Working with Web Page Files
47
Designing Your Site
48
Creating a New Web Page
49
Saving Your Web Page
50
About Microsoft Word and Web Pages
52
Specifying a Default or Home Page
53
Editing Web Pages
54
Organizing Files
55
Viewing Your Page in a Browser
56
The Inspiration of Others
57
Basic XHTML Structure
59
Starting Your Web Page
60
Creating the Foundation
62
Declaring the Encoding
63
Creating a Title
64
Creating Section Headers
65
Starting a New Paragraph
66
Naming Elements
67
Breaking up a Page into Divisions
68
Creating Inline Spans
69
Creating a Line Break
70
Adding Comments
71
Labeling Elements in a Web Page
72
Basic XHTML Formatting
73
Making Text Bold or Italic
74
Changing the Size of Text
75
Using a Monospaced Font
76
Using Preformatted Text
77
Quoting Text
78
Creating Superscripts and Subscripts
80
Marking Changed Text
81
Explaining Abbreviations
82
Creating Web Images
83
About Images for the Web
84
Getting Images
89
The Save for Web Command
90
Making Images Smaller
92
Creating Transparency
93
Saving Images with Transparency
94
Simulating Transparency
95
Using Mostly Browser Safe Colors
96
Reducing the Number of Colors
98
Showing Images Progressively
99
Blurring Images to Aid JPEG Compression
100
Creating Animated GIFs
101
Using Images
103
Inserting Images on a Page
104
Offering Alternate Text
105
Specifying Size for Speedier Viewing
106
Scaling an Image
108
Linking Thumbnails to Images
109
Making Images Float
110
Stopping Elements from Wrapping
112
Adding Space around an Image
113
Aligning Images
114
Adding Horizontal Rules
115
Links
117
Creating a Link to Another Web Page
118
Creating Anchors
120
Linking to a Specific Anchor
121
Targeting Links to Specific Windows
122
Setting the Default Target
123
Creating Other Kinds of Links
124
Creating Keyboard Shortcuts for Links
126
Setting the Tab Order for Links
127
Using Images to Label Links
128
Dividing an Image into Clickable Regions
129
Creating a ClientSide Image Map
130
Using a ServerSide Image Map
132
Creating Styles
133
Constructing a Style Rule
134
Constructing Selectors
135
Selecting Elements by Name
136
Selecting Elements by Class or ID
137
Selecting Elements by Context
138
Selecting Link Elements Based on Their State
141
Selecting Part of an Element
142
Selecting Elements Based on Attributes
144
Specifying Groups of Elements
145
Combining Selectors
146
Applying Styles
147
Creating an External Style Sheet
148
Linking External Style Sheets
149
Offering Alternate Style Sheets
150
Creating an Internal Style Sheet
151
Importing External Style Sheets
152
Applying Styles Locally
153
The Importance of Location
154
Adding Comments to Style Rules
155
Formatting with Styles
157
Choosing a Font Family
158
Embedding Fonts on a Page
159
Creating Italics
160
Applying Bold Formatting
161
Setting the Font Size
162
Setting the Line Height
164
Setting All Font Values at Once
165
Setting the Text Color
166
Changing the Texts Background
167
Controlling Spacing
168
Adding Indents
169
Setting White Space Properties
170
Aligning Text
171
Changing the Text Case
172
Using Small Caps
173
Decorating Text
174
Layout with Styles
175
Structuring Your Pages
176
The Box Model
177
Displaying and Hiding Elements
178
Positioning Elements Absolutely
179
Affixing an Element to the Browser Window
180
Offsetting Elements In the Natural Flow
181
Changing the Background
182
Changing the Foreground Color
184
Changing the Cursor
185
Setting the Border
186
Adding Padding around an Element
188
Setting the Margins around an Element
189
Setting the Height or Width for an Element
190
Positioning Elements in 3D
192
Determining Where Overflow Should Go
193
Making Elements Float
194
Controlling Where Elements Float
195
Aligning Elements Vertically
196
Style Sheets for Printing
197
Using MediaSpecific Style Sheets
198
How Print Style Sheets Differ
199
Controlling Page Breaks
200
Other Print Specific CSS Properties
201
Lists
203
Creating Ordered and Unordered Lists
204
Choosing Your Markers Bullets
206
Choosing Where to Start List Numbering
207
Using Custom Markers
208
Controlling Where Markers Hang
209
Setting All ListStyle Properties at Once
210
Creating Definition Lists
211
Styling Nested Lists
212
Tables
215
Mapping Out Your Page
216
Creating a Simple Table
217
Adding a Border
218
Setting the Width
220
Centering a Table on the Page
222
Wrapping Text around a Table
223
Combining Tables
224
Aligning a Cells Contents
226
Changing the Background
228
Controlling the Space
230
Spanning a Cell across Columns
232
Spanning a Cell across Rows
233
Dividing Your Table into Column Groups
234
Dividing the Table into Horizontal Sections
236
Creating an Inline Frame
248
Adjusting a Frames Margins
249
Showing or Hiding Scroll Bars
250
Adjusting the Color of the Borders
251
Adjusting the Frame Borders
252
Keeping Visitors from Resizing Frames
254
Targeting Links to Particular Frames
255
Targeting Links to Special Spots
256
Changing the Default Target
257
Nesting Framesets
258
Offering Alternatives to Frames
259
Embedding Content with Objects
260
Making Frames More Accessible
262
Forms
263
About CGI Scripts
264
Getting a Script
266
Using the Scripts Included with This Book
267
Preparing a Script
268
Creating a Form
269
Sending Form Data via Email
270
Using a Form Hosting Service
271
Creating Text Boxes
272
Creating Password Boxes
273
Creating Radio Buttons
274
Creating Checkboxes
275
Creating Menus
276
Creating Larger Text Areas
278
Allowing Visitors to Upload Files
279
About Hidden Fields
280
Adding Hidden Fields to a Form
281
Creating the Submit Button
282
Resetting the Form
284
Using an Image to Submit Data
286
Organizing the Form Elements
287
Formally Labeling Form Parts
288
Setting the Tab Order in a Form
289
Adding Keyboard Shortcuts
290
Disabling Form Elements
291
Keeping Elements from Being Changed
292
Multimedia
293
Of Plugins and Players
294
Getting Players for Your Visitors
296
Getting Multimedia Files
297
Embedding QuickTime Movies
298
Scaling a QuickTime Movie
300
Looping a QuickTime Movie
301
Putting QuickTime Sounds on a Page
302
Hiding QuickTime Sounds
303
Embedding Windows Media Player Files
304
Inserting Java Applets
306
Embedding Other Multimedia Files
307
Linking to Multimedia Files
308
Creating an Automatic Slide Show
309
Creating a Marquee
310
Adding Background Sound
311
Scripts
313
Adding an Automatic Script
314
Calling an External Automatic Script
315
Triggering a Script
316
Creating a Button that Executes a Script
318
Adding Alternate Information
319
Hiding Scripts from Older Browsers
320
Hiding Scripts from XML Parsers
321
Setting the Default Scripting Language
322
JavaScript Essentials
323
Adding the Current Date and Time
324
Changing a Links Status Label
325
Changing Multiple Frames with One Link
326
Keeping Frames in Their Framesets
327
Changing an Image When a Visitor Points
328
Loading Images into Cache
330
Controlling a New Windows Size
331
Symbols and NonEnglish Characters
333
About Character Encodings
334
Saving Your Page with the Proper Encoding
336
Editing a Page with the Proper Encoding
337
Declaring Your Pages Character Encoding
338
Adding Characters from Outside the Encoding
340
Specifying Your Pages Language
342
Formatting The Old Way
343
Choosing Default Characteristics for Text
344
Formatting Bits of Text
346
Another Way to Choose Default Colors
348
Changing the Color of Links
349
Striking Out or Underlining Text
350
Making Text Blink
351
Layout The Old Way
353
Using Background Color
354
Using Background Images
355
Centering Elements on a Page
356
Specifying the Margins
357
Keeping Lines Together
358
Creating Discretionary Line Breaks
359
Specifying the Space Between Paragraphs
360
Creating Indents
361
Creating Indents with Lists
362
Creating Blocks of Space
363
Using Pixel Shims
364
Creating Columns
365
Positioning Elements with Layers
366
WML Web Pages for Mobile Devices
369
Preparing Your Server
370
Starting Your WML Page
371
Creating a Card
372
Creating Basic Content
373
Including an Image
374
Creating a Table
375
Creating a Link
376
Programming Buttons
378
Creating Conditional Actions
380
Scheduling an Action
381
Making a Call
382
Setting and Using Variables
383
Creating Input Boxes
384
Creating Menus
386
Processing Data from Visitors
388
Creating Elements on Multiple Pages
390
Restricting Access to a Deck
391
Testing WML Pages
392
Testing and Debugging Web Pages
393
Validating Your Code
394
HTML
395
XHTML
396
CSS
397
Testing Your Page
398
When the Browser Displays the Code
400
When Images Dont Appear
401
Differences from Browser to Browser
402
When Nothing Appears in Netscape 4
403
Still Stuck?
404
Publishing Your Pages on the Web
405
Finding a Host for Your Site
406
Getting Your Own Domain Name
407
Transferring Files to the Server
408
Transferring Files to AOL
412
Getting People to Visit
415
About Keywords
416
Explicitly Listing Keywords
417
Providing a Description of Your Page
418
Controlling Other Information
419
Keeping Visitors Away
420
Keeping Pages From Being Archived
421
Creating a Crawler Page
422
Submitting Your Site to a Search Engine
424
Improving Your Ranking by Getting Linked
425
Writing Pages That Are Easy to Index
426
Other Techniques for Publicizing Your Site
427
XHTML Elements and Attributes
429
CSS Properties and Values
439
Intrinsic Events
447
XHTML Symbols and Characters
449
Hexadecima
459
XHTML Tools
461
XHTML Editors
462
Images and Graphics
464
Index
465
Colophon
480
Copyright

Common terms and phrases

References to this book

All Book Search results »

About the author (2003)

Elizabeth Castro has written numerous books, including the best-selling Perl and CGI for the World Wide Web: Visual QuickStart Guide, XML for the World Wide Web: Visual QuickStart Guide, and the four previous editions of this best-selling title.

Bibliographic information