NEW PERSPECTIVES ON CREATING WEB PAGES WITH HTML, XHTML, AND XML teaches students how to create simple to complex Web sites from scratch using HTML, XHTML, and XML.
Author(s): Patrick Carey
Edition: 3
Publisher: Cengage Learning
Year: 2009
Language: English
Pages: 1003
Front Cover......Page 1
Title Page......Page 4
Copyright......Page 5
Brief Contents
......Page 10
Table of Contents......Page 12
Preface......Page 6
Tutorial 1 Developing a Web Page: Creating a Product Page for a Startup Company......Page 20
Exploring the History of the World Wide Web......Page 21
Introducing HTML......Page 23
Creating an HTML Document......Page 27
Session 1.1 Quick Check......Page 34
Working with Block-Level Elements......Page 35
Marking a List......Page 41
Exploring Other Block-Level Elements......Page 46
Working with Inline Elements......Page 48
Session 1.2 Quick Check......Page 52
Using Element Attributes......Page 53
Working with Empty Elements......Page 56
Working with Character Sets and Special Characters......Page 61
Session 1.3 Quick Check......Page 67
Key Terms......Page 68
Review Assignments......Page 69
Case Problems......Page 71
Quick Check Answers......Page 77
Tutorial 2 Developing a Web Site: Creating a Web Site for Digital Photography Enthusiasts......Page 80
Exploring Web Site Structures......Page 81
Creating a Hypertext Link......Page 86
Specifying a Folder Path......Page 88
Session 2.1 Quick Check......Page 92
Linking to Locations within Documents......Page 93
Working with Linked Images and Image Maps......Page 100
Linking to Resources on the Internet......Page 108
Using the Link Element......Page 121
Working with Metadata......Page 122
Session 2.3 Quick Check......Page 125
Key Terms......Page 126
Review Assignments......Page 127
Case Problems......Page 129
Quick Check Answers......Page 136
Reality Check......Page 138
Tutorial 3 Working with Cascading Style Sheets: Designing a Web Site......Page 140
Introducing CSS......Page 141
Using an Embedded Style Sheet......Page 145
Using an External Style Sheet......Page 146
Understanding Cascading Order......Page 151
Working with Color in HTML and CSS......Page 154
Defining Text and Background Colors......Page 157
Working with Fonts and Text Styles......Page 159
Working with Images......Page 172
Setting the Image Size......Page 175
Formatting Backgrounds......Page 176
Background Image Options......Page 178
Session 3.2 Quick Check......Page 180
Floating an Element......Page 181
Working with the Box Model......Page 184
Controlling Page Layout with div Containers......Page 193
Setting the Display Style......Page 199
Session 3.3 Quick Check......Page 203
Key Terms......Page 204
Review Assignments......Page 205
Case Problems......Page 207
Quick Check Answers......Page 216
Tutorial 4 Creating Special Effects with CSS: Adding Advanced Styles to a Web Site......Page 218
Working with Selector Patterns......Page 219
Applying Styles to Lists......Page 226
Working with Classes......Page 232
Using Pseudo-Classes and Pseudo-Elements......Page 234
Positioning Objects with CSS......Page 241
Working with Overflow and Clipping......Page 253
Stacking Elements......Page 257
Working with Different Media......Page 258
Hiding Elements......Page 264
Using Print Styles......Page 267
Working with Page Breaks......Page 269
Session 4.3 Quick Check......Page 274
Key Terms......Page 275
Review Assignments......Page 276
Case Problems......Page 279
Quick Check Answers......Page 288
Tutorial 5 Working with Web Tables: Creating a Radio Program Schedule......Page 290
Introducing Web Tables......Page 291
Spanning Rows and Columns......Page 298
Creating a Table Caption......Page 303
Marking Row Groups......Page 305
Marking Column Groups......Page 307
Adding a Table Summary......Page 309
Formatting Tables with HTML Attributes......Page 311
Formatting Tables with CSS......Page 318
Applying Table Styles to Other Page Elements......Page 330
Session 5.2 Quick Check......Page 331
Using Tables for Page Layout......Page 332
Exploring the Controversy over Table Layouts......Page 343
Creating a Rounded Box Using div Containers......Page 345
Session 5.3 Quick Check......Page 349
Key Terms......Page 350
Review Assignments......Page 351
Case Problems......Page 353
Quick Check Answers......Page 361
Reality Check......Page 363
Tutorial 6 Working with Web Forms: Creating a Donation Form......Page 364
Introducing Web Forms......Page 365
Creating a Web Form......Page 367
Creating a Field Set......Page 370
Creating Input Boxes......Page 372
Adding Field Labels......Page 374
Working with Form Styles and HTML Attributes......Page 376
Session 6.1 Quick Check......Page 384
Creating Option Buttons......Page 385
Creating a Selection List......Page 389
Working with Check Boxes......Page 397
Working with Text Area Controls......Page 399
Session 6.2 Quick Check......Page 403
Working with Form Buttons......Page 404
Working with Hidden Fields......Page 409
Working with Form Attributes......Page 410
Using the mailto Action......Page 412
Key Terms......Page 413
Review Assignments......Page 414
Case Problems......Page 417
Quick Check Answers......Page 426
Tutorial 7 Working with Multimedia: Enhancing a Web Site with Sound, Video,and Applets......Page 428
Introducing Multimedia......Page 429
Exploring Digital Audio......Page 432
Working with Embedded Objects......Page 436
Working with ActiveX Components......Page 443
Creating Background Sound......Page 448
Session 7.1 Quick Check......Page 449
Exploring Digital Video......Page 450
Working with Flash......Page 453
Exploring QuickTime Video......Page 458
Exploring Windows Media Player......Page 462
Introducing the embed Element......Page 465
Nesting Embedded Objects......Page 467
Session 7.2 Quick Check......Page 472
Introducing Java......Page 473
Working with Java Applets......Page 474
Exploring the Applet Element......Page 482
Embedding Other Objects......Page 483
Key Terms......Page 485
Review Assignments......Page 486
Case Problems......Page 488
Quick Check Answers......Page 495
Tutorial 8 Designing a Web Site with Frames: Using Frames to Organize a Web Site......Page 498
Introducing Frames......Page 499
Planning Your Frames......Page 501
Creating a Frameset......Page 502
Formatting a Frame......Page 509
Working with Frames and Links......Page 513
Using Reserved Target Names......Page 517
Using the noframes Element......Page 521
Working with Frame Borders......Page 525
Creating Inline Frames......Page 528
Key Terms......Page 533
Review Assignments......Page 534
Case Problems......Page 536
Quick Check Answers......Page 542
Tutorial 9 Working with XHTML: Creating a Well-Formed, Valid Document......Page 544
Introducing XHTML......Page 545
Creating Well-Formed Documents......Page 549
Creating Valid XHTML Documents......Page 551
Setting the XHTML Namespace......Page 558
Testing under XHTML Transitional......Page 561
Testing under XHTML Strict......Page 566
Using Style Sheets and XHTML......Page 571
Key Terms......Page 573
Review Assignments......Page 574
Case Problems......Page 575
Quick Check Answers......Page 580
Tutorial 10 Programming with JavaScript: Hiding E-Mail Addresses on a Library Web Site......Page 582
Introducing JavaScript......Page 583
Working with the Script Element......Page 588
Writing Output to a Web Document......Page 590
Understanding JavaScript Syntax......Page 594
Session 10.1 Quick Check......Page 596
Working with Variables......Page 597
Creating a JavaScript Function......Page 602
Creating a Function to Return a Value......Page 607
Session 10.2 Quick Check......Page 608
Accessing an External JavaScript File......Page 609
Commenting JavaScript Code......Page 613
Debugging Your JavaScript Programs......Page 616
Session 10.3 Quick Check......Page 622
Key Terms......Page 623
Review Assignments......Page 624
Case Problems......Page 626
Quick Check Answers......Page 632
Reality Check......Page 634
Additional Case 1 Creating a Music School Web Site......Page 636
Additional Case 2 Creating a Culinary Web Site......Page 644
Additional Case 3 Creating an Online Newsletter......Page 650
Tutorial 11 Creating an XML Document: Developing a Document for a Cooking Web Site......Page 652
Introducing XML......Page 653
Exploring the Concepts Behind XML......Page 654
Creating an XML Document......Page 658
Session 11.1 Quick Check......Page 662
Working with Elements......Page 663
Working with Attributes......Page 670
Using Character and Entity References......Page 672
Understanding Text Characters and Whitespace......Page 674
Processing an XML Document......Page 677
Formatting XML Data with CSS......Page 681
Inserting a Processing Instruction......Page 683
Tutorial Summary......Page 686
Key Terms......Page 687
Review Assignments......Page 688
Case Problems......Page 690
Quick Check Answers......Page 695
Tutorial 12 Working with Namespaces: Combining XML Vocabularies in a Compound Document......Page 698
Combining XML Vocabularies......Page 699
Working with Namespaces......Page 707
Working with Attributes......Page 712
Session 12.1 Quick Check......Page 713
Adding a Namespace to a Style Sheet......Page 714
Combining Standard Vocabularies......Page 719
Adding XML to an HTML Document......Page 720
Session 12.2 Quick Check......Page 729
Key Terms......Page 730
Review Assignments......Page 731
Case Problems......Page 733
Quick Check Answers......Page 739
Tutorial 13 Validating Documents with DTDs: Working with Document Type Definitions......Page 742
Creating a Valid Document......Page 743
Declaring Document Elements......Page 749
Working with Child Elements......Page 752
Declaring Attributes......Page 757
Working with Attribute Types......Page 759
Working with Attribute Defaults......Page 764
Validating an XML Document......Page 766
Session 13.2 Quick Check......Page 771
Working with General Entities......Page 772
Working with Parameter Entities......Page 776
Inserting Comments into a DTD......Page 781
Creating Conditional Sections......Page 782
Working with Unparsed Data......Page 783
Validating Standard Vocabularies......Page 785
Session 13.3 Quick Check......Page 787
Key Terms......Page 788
Review Assignments......Page 789
Case Problems......Page 791
Quick Check Answers......Page 798
Tutorial 14 Validating Documents with Schemas: Exploring the XML Schema Vocabulary......Page 800
Introducing XML Schema......Page 801
Starting a Schema File......Page 804
Understanding Simple and Complex Types......Page 806
Defining a Simple Type Element......Page 807
Defining an Attribute......Page 808
Defining a Complex Type Element......Page 809
Indicating Required Attributes......Page 817
Specifying the Number of Child Elements......Page 819
Applying a Schema to an Instance Document......Page 820
Validating with Built-In Data Types......Page 823
Deriving Customized Data Types......Page 830
Deriving Data Types Using Regular Expressions......Page 839
Session 14.2 Quick Check......Page 845
Working with Named Types......Page 846
Designing a Schema .......Page 848
Associating a Schema with a Namespace......Page 853
Validating a Compound Document......Page 859
Session 14.3 Quick Check......Page 865
Key Terms......Page 866
Review Assignments......Page 867
Case Problems......Page 870
Quick Check Answers......Page 879
Reality Check......Page 882
Appendix A: Color Names and Color Values......Page 884
Appendix B: HTML Character Entities......Page 890
Appendix C: Placing a Document on the World Wide Web......Page 898
Appendix D: Making the Web More Accessible......Page 900
Graphics and Images......Page 901
Color......Page 903
Image Maps......Page 905
Tables......Page 906
Scripts, Applets and Plug-ins......Page 909
Web Forms......Page 910
Timed Responses......Page 911
Understanding the Web Accessibility Initiative......Page 912
Checking Your Web Site for Accessibility......Page 916
Appendix E: HTML and XHTML Elements and Attributes......Page 918
Form Attributes......Page 919
Core Events......Page 920
Internet Explorer Data Events......Page 921
Internet Explorer Events......Page 922
HTML and XHTML Elements and Attributes......Page 923
Appendix F: Cascading Style Sheets......Page 942
Pseudo-Elements and Pseudo-Classes......Page 943
Miscellaneous Syntax......Page 945
Units......Page 946
Attributes and Values......Page 947
Appendix G: JavaScript Objects, Properties, Methods, and Event Holders......Page 956
Appendix H: JavaScript Operators, Keywords, and Syntactical Elements......Page 980
Cookies, the Web Server, and CGI Scripts......Page 984
Working with the Cookie Property......Page 985
Reading a Cookie......Page 986
Encoding Cookies......Page 987
Glossary/Index......Page 988