Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day: Includes New HTML5 Coverage [6 ed.] 0672330962, 9780672330964

Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day, Sixth Edition is the latest edition of the origi

256 83 9MB

English Pages 764 Year 2010

Report DMCA / Copyright

DOWNLOAD PDF FILE

Table of contents :
Table of Contents......Page 5
Introduction......Page 26
What This Book Contains......Page 27
What You Need Before You Start......Page 28
Special Elements......Page 29
Workshop......Page 30
LESSON 1: Navigating the World Wide Web......Page 32
How the World Wide Web Works......Page 33
Web Browsers......Page 40
Web Servers......Page 44
Uniform Resource Locators......Page 45
Workshop......Page 46
LESSON 2: Preparing to Publish on the Web......Page 50
Anatomy of a Website......Page 51
What Do You Want to Do on the Web?......Page 53
Setting Your Goals......Page 55
Breaking Up Your Content into Main Topics......Page 56
Ideas for Organization and Navigation......Page 57
Storyboarding Your Website......Page 67
Web Hosting......Page 69
Summary......Page 71
Workshop......Page 72
LESSON 3: Introducing HTML and XHTML......Page 74
What HTML Is (And What It Isn’t)......Page 75
The Current Standard: XHTML 1.1......Page 79
What HTML Files Look Like......Page 80
Using Cascading Style Sheets......Page 86
Programs to Help You Write HTML......Page 87
Workshop......Page 89
LESSON 4: Learning the Basics of HTML......Page 92
Structuring Your HTML......Page 93
The Title......Page 95
Headings......Page 97
Comments......Page 100
Workshop......Page 103
LESSON 5: Organizing Information with Lists......Page 106
Lists: An Overview......Page 107
Numbered Lists......Page 108
Unordered Lists......Page 112
Glossary Lists......Page 115
Nesting Lists......Page 117
Other Uses for Lists......Page 119
Summary......Page 120
Workshop......Page 121
LESSON 6: Adding Links to Your Web Pages......Page 124
Creating Links......Page 125
Linking Local Pages Using Relative and Absolute Pathnames......Page 130
Links to Other Documents on the Web......Page 133
Linking to Specific Places Within Documents......Page 138
Anatomy of a URL......Page 145
Kinds of URLs......Page 148
Summary......Page 152
Workshop......Page 153
LESSON 7: Formatting Text with HTML and CSS......Page 156
Character-Level Elements......Page 157
Character Formatting Using CSS......Page 162
Preformatted Text......Page 164
Horizontal Rules......Page 167
Line Break......Page 170
Quotations......Page 172
Special Characters......Page 174
Text Alignment......Page 178
Fonts and Font Sizes......Page 180
Summary......Page 192
Workshop......Page 196
LESSON 8: Using CSS to Style a Site......Page 198
Including Style Sheets in a Page......Page 199
Selectors......Page 201
Units of Measure......Page 205
The Box Model......Page 207
CSS Positioning......Page 221
The Tag......Page 230
Links......Page 231
Workshop......Page 232
LESSON 9: Adding Images, Color, and Backgrounds......Page 236
Images on the Web......Page 237
Image Formats......Page 238
Inline Images in HTML: The Tag......Page 239
Images and Text......Page 244
Images and Links......Page 253
Other Neat Tricks with Images......Page 257
Using Color......Page 259
Image Backgrounds......Page 263
Using Images As Bullets......Page 267
What Is an Imagemap?......Page 268
Image Etiquette......Page 279
Summary......Page 280
Workshop......Page 281
LESSON 10: Building Tables......Page 284
Table Parts......Page 285
Sizing Tables, Borders, and Cells......Page 294
Table and Cell Color......Page 305
Aligning Your Table Content......Page 307
Spanning Multiple Rows or Columns......Page 312
More Advanced Table Enhancements......Page 321
How Tables Are Used......Page 328
Summary......Page 329
Workshop......Page 334
LESSON 11: Designing Forms......Page 336
Understanding Form and Function......Page 337
Using the Tag......Page 342
Using the Tag......Page 345
Creating Form Controls with the Tag......Page 346
Using Other Form Controls......Page 355
Grouping Controls with fieldset and legend......Page 365
Applying Cascading Style Sheet Properties to Form Elements......Page 368
Planning Your Forms......Page 374
Summary......Page 375
Workshop......Page 376
LESSON 12: Integrating Multimedia: Sound, Video, and More......Page 380
Embedding Video the Simple Way......Page 381
Hosting Your Own Video......Page 386
Video and Container Formats......Page 387
Converting Video to H.264......Page 388
Embedding Video Using ......Page 391
Embedding Flash Using the Tag......Page 395
The Tag......Page 400
Embedding Flash Movies Using SWFObject......Page 401
Flash Video Players......Page 403
Embedding Audio in Your Pages......Page 408
Summary......Page 410
Workshop......Page 411
LESSON 13: Advanced CSS: Page Layout in CSS......Page 414
Laying Out the Page......Page 415
The Role of CSS in Web Design......Page 428
Workshop......Page 433
LESSON 14: Introducing JavaScript......Page 436
Why Would You Want to Use JavaScript?......Page 437
The Tag......Page 439
The JavaScript Language......Page 440
The JavaScript Environment......Page 453
Events......Page 454
Summary......Page 457
Workshop......Page 458
LESSON 15: Using JavaScript in Your Pages......Page 460
Validating Forms with JavaScript......Page 461
Hiding and Showing Elements......Page 468
Adding New Content to a Page......Page 477
Workshop......Page 481
LESSON 16: Using JavaScript Libraries......Page 484
Reviewing the Popular JavaScript Libraries......Page 485
Getting Started with jQuery......Page 487
Your First jQuery Script......Page 488
Binding Events......Page 490
Modifying Styles on the Page......Page 491
Modifying Content on the Page......Page 493
Special Effects......Page 503
AJAX and jQuery......Page 505
Workshop......Page 510
LESSON 17: Working with Frames and Linked Windows......Page 514
What Are Frames?......Page 515
Working with Linked Windows......Page 516
Working with Frames......Page 523
Changing Frame Borders......Page 529
Creating Complex Framesets......Page 532
Inline Frames......Page 546
Opening Linked Windows with JavaScript......Page 548
Summary......Page 551
Workshop......Page 554
LESSON 18: Writing Good Web Pages: Do’s and Don’ts......Page 556
Standards Compliance and Web Browsers......Page 557
Writing for Online Publication......Page 563
Design and Page Layout......Page 568
Using Links......Page 571
Using Images......Page 577
Making the Most of CSS and JavaScript......Page 581
Other Good Habits and Hints......Page 583
Summary......Page 587
Workshop......Page 589
LESSON 19: Designing for the Real World......Page 592
What Is the Real World, Anyway?......Page 593
Considering User Experience Level......Page 594
Determining User Preference......Page 598
Migrating to HTML5......Page 600
What Is Accessibility?......Page 604
Alternative Browsers......Page 606
Writing Accessible HTML......Page 607
Designing for Accessibility......Page 611
Validating Your Sites for Accessibility......Page 613
Workshop......Page 615
LESSON 20: Putting Your Site Online......Page 618
What Does a Web Server Do?......Page 619
How to Find Web Hosting......Page 620
Organizing Your HTML Files for Publishing......Page 623
Publishing Your Files......Page 625
Troubleshooting......Page 628
Registering and Advertising Your Web Pages......Page 630
Site Indexes and Search Engines......Page 634
Search Engine Optimization......Page 636
Finding Out Who’s Viewing Your Web Pages......Page 637
Workshop......Page 641
LESSON 21: Taking Advantage of the Server......Page 644
How PHP Works......Page 645
Getting PHP to Run on Your Computer......Page 646
The PHP Language......Page 647
Loops......Page 655
User-Defined Functions......Page 659
Processing Forms......Page 661
Using PHP Includes......Page 672
Expanding Your Knowledge of PHP......Page 675
Other Application Platforms......Page 677
Summary......Page 678
Workshop......Page 679
LESSON 22: Content Management Systems and Publishing Platforms......Page 682
The Rise of Content Management......Page 683
Is a Content Management System Right for You?......Page 684
Types of Content Management Systems......Page 685
Working with Packaged Software......Page 689
TypePad: A Hosted Blogging Application......Page 692
WordPress......Page 694
MediaWiki......Page 699
Drupal......Page 702
Incorporating Dynamic Content from Other Sites into Your Pages......Page 707
Summary......Page 712
Workshop......Page 713
APPENDIX A: Sources for Further Information......Page 716
Browsers......Page 718
Collections of HTML and Web Development Information......Page 719
HTML Validators, Link Checkers, and Simple Spiders......Page 720
Log File Parsers......Page 721
Sound and Video......Page 722
Server-Side Scripting......Page 723
Tools and Information for Images......Page 724
Web Hosting Providers......Page 725
A......Page 726
B......Page 728
C......Page 729
D......Page 732
F......Page 734
H......Page 737
I......Page 741
J......Page 742
L......Page 743
M......Page 745
O......Page 746
P......Page 747
S......Page 749
T......Page 752
V......Page 755
W......Page 756
X,Y,Z......Page 760

Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day: Includes New HTML5 Coverage  [6 ed.]
 0672330962, 9780672330964

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
File loading please wait...
Recommend Papers