1. Trang chủ
  2. » Công Nghệ Thông Tin

HTML & XML for Beginners ppt

417 986 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 417
Dung lượng 14,16 MB

Nội dung

cover cover next page > Cover title : HTML & XML for Beginners author : Morrison, Michael. publisher : isbn10 | asin : 0735611890 print isbn13 : 9780735611894 ebook isbn13 : 9780585486727 language : subject publication date : lcc : ddc : subject : cover next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%20HTML%20&%20XML%20for%20Beginners/files/cover.html [06.10.2009 2:01:44] page_i < previous page page_i next page > Page i HTML & XML for beginners MICHAEL MORRISON < previous page page_i next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%20HTML%20&%20XML%20for%20Beginners/files/page_i.html [06.10.2009 2:01:45] page_ii < previous page page_ii next page > Page ii PUBLISHED BY Microsoft Press A Division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright © 2001 by Michael Morrison All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. Library of Congress Cataloging-in-Publication Data Morrison, Michael, 1970- HTML and XML for Beginners / Michael Morrison. p. cm. Includes index. ISBN 0-7356-1189-0 1. HTML (Document markup language) 2. XML (Document markup language) I. Title. QA76.76.H94 M68 2001 005.7'2 dc21 2001030415 Printed and bound in the United States of America. 1 2 3 4 5 6 7 8 9 QWE 6 5 4 3 2 1 Distributed in Canada by Penguin Books Canada Limited. A CIP catalogue record for this book is available from the British Library. Microsoft Press books are available through booksellers and distributors worldwide. For further information about international editions, contact your local Microsoft Corporation office or contact Microsoft Press International directly at fax (425) 936-7329. Visit our Web site at mspress.microsoft.com. Send comments to mspinput@microsoft.com. ClearType, FrontPage, JScript, Microsoft, the Microsoft Internet Explorer logo, Microsoft Press, the Office logo (puzzle design), Outlook, PhotoDraw, the Reader logo, Visual Basic, Windows, and Windows Media are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Other product and company names mentioned herein may be the trademarks of their respective owners. Some of the example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred. Acquisitions Editor: Casey Doyle Project Editor: Aileen Wrothwell Technical Editor: James Johnson Body Part No. X08-04475 < previous page page_ii next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%20HTML%20&%20XML%20for%20Beginners/files/page_ii.html [06.10.2009 2:01:45] page_iii < previous page page_iii next page > Page iii To Sonny West, who so generously allowed his son Rick and me to play and learn on his Apple II computer back when a mouse was still just a furry little animal. < previous page page_iii next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%20HTML%20&%20XML%20for%20Beginners/files/page_iii.html [06.10.2009 2:01:46] page_iv < previous page page_iv next page > Page iv This page intentionally left blank. < previous page page_iv next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%20HTML%20&%20XML%20for%20Beginners/files/page_iv.html [06.10.2009 2:01:46] page_v < previous page page_v next page > Page v Contents Acknowledgments xvi Part 1 Getting Started with HTML Chapter 1 HTML Essentials 2 What Is HTML? 3 Your Pen Pal, the Web Browser 3 Putting on Your HTML X-Ray Glasses 4 Why Do I Need to Know HTML? 5 Inside a Web Page 6 The Brains of a Web Page 8 Jesse "The Body" Ventura and HTML 8 Common HTML Tags and Attributes 9 Writing Your First Web Page in HTML 11 Honor Thyself 12 Adding a Splash of Color 12 Tell Me Something About Yourself 13 Listing Your Activities 14 The Finished Page 15 Publishing Your First Web Page 16 Conclusion 21 Chapter 2 Formatting Text 22 Organizing Text 23 Text and the Head of a Page 23 A Body Full of Text 24 < previous page page_v next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%20HTML%20&%20XML%20for%20Beginners/files/page_v.html [06.10.2009 2:01:46] page_vi < previous page page_vi next page > Page vi Basic Text Formatting: The Look or the Meaning? 26 Content-Based Text Formatting 28 Physical Text Formatting 29 VH-1 and The List 31 Unordered Lists 31 Ordered Lists 32 Definition Lists 34 One Last Comment 35 Conclusion 36 Chapter 3 Dressing Up Pages with Images 37 The Scoop on Images 37 Working with Images 39 Displaying Inline Images 40 Formatting Images 41 Tweaking the Size of Images 42 Giving Images Room to Breathe 43 Building Walls Around Images 44 Aligning Images 44 Linking to External Images 46 Using Background Images 48 Using Animated Images 50 Conclusion 50 Chapter 4 Connecting Pages with Hyperlinks 51 What Is a Hyperlink? 52 Understanding URLs 53 Host Names and URLs 54 Dissecting a URL 54 URLs and Web Resources 55 Working with the <a> Tag 56 Linking to Web Pages 57 < previous page page_vi next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%20HTML%20&%20XML%20for%20Beginners/files/page_vi.html [06.10.2009 2:01:47] page_vii < previous page page_vii next page > Page vii Linking to Other Resources 57 Practical Linking with the <a> Tag 58 Anchor Hyperlinks 59 Conclusion 62 Part 2 Beyond the Basics Chapter 5 Visual Navigation with Image Maps 64 Image Map Basics 64 Two Approaches to Image Maps 66 Let the Server Do the Work 67 Maybe the Client Needs Some Responsibility 67 Using Image Map Development Tools 69 Coding Image Maps by Hand 71 Creating the Map 71 Associating the Map with an Image 74 Constructing a Practical Image Map 74 Conclusion 77 Chapter 6 Organizing Pages with Tables 78 Table Basics 79 Getting to Know the Table Tags 81 Drawing Borders Around Tables 82 Heading Up Your Tables 83 Spanning Cells 84 Setting the Size of Tables 84 Digging Deeper into Table Formatting 86 Aligning Tables 86 Giving Tables Some Space 88 Dressing Up Tables with Colors and Images 90 Revisiting Borders 93 < previous page page_vii next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%20HTML%20&%20XML%20for%20Beginners/files/page_vii.html [06.10.2009 2:01:47] page_viii < previous page page_viii next page > Page viii Using Tables for Page Layout 94 Working Out the Design 94 Putting the Table Together 95 Adding the Content 96 Conclusion 97 Chapter 7 Gathering Information with Forms 98 Understanding Forms 98 Processing Forms with Scripts 102 Using Scripts 102 Finding Scripts 103 Borrowing Scripts 104 Getting to Know Form Controls 104 The Text Box and Password Box Controls 105 The Text Area Control 106 The Check Box Control 107 The Radio Button Control 108 The Menu Control 109 The Button Controls 111 Creating Forms 112 Establishing the Form's Action 112 Laying Out the Controls 113 The Complete Form 115 Testing the Form 116 Advanced Form Tips and Tricks 118 Creating Read-Only Controls 118 Hiding Controls 119 Organizing Controls into Field Sets 119 Setting the Tab Order of Controls 120 Providing Keyboard Shortcuts 121 Conclusion 122 < previous page page_viii next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%20HTML%20&%20XML%20for%20Beginners/files/page_viii.html [06.10.2009 2:01:47] page_ix < previous page page_ix next page > Page ix Chapter 8 Integrating Multimedia with Your Web Pages 123 Understanding Plug-ins and Helper Applications 124 Working with Sound 126 Creating Your Own Sounds 127 Finding Sounds 128 Adding Sounds to Your Pages 129 Working with Video 135 Creating Your Own Videos 135 Finding Videos 136 Adding Videos to Your Pages 136 Tinkering with Streaming Media 140 Preparing Multimedia Files for Streaming 140 Linking to Streaming Multimedia Files 144 Other Types of Multimedia 145 Conclusion 146 Chapter 9 Graphical Tools and HTML 147 Why Use a Graphical Tool? 148 Getting Acquainted with Graphical Tools 148 Image Editing Tools 149 Image Map Tools 152 Web Page Design Tools 153 HTML Editors 155 Working with HTML in FrontPage 156 Using Different Views 157 Creating Tables 160 Creating Image Maps 162 Publishing Your Pages 162 Conclusion 162 < previous page page_ix next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%20HTML%20&%20XML%20for%20Beginners/files/page_ix.html [06.10.2009 2:01:48] [...]... Chapter 19 XHTML: XML Meets HTML The Significance of XHTML The Problem with HTML The XHTML Solution The Leap from HTML to XHTML The Need to Accept XHTML The Three XHTML DTDs Document Validation Requirements Declaring an XHTML DTD and Namespace Validating an XHTML Document Creating an XHTML Document Converting to XHTML XHTML Conversion Guidelines Converting an HTML Document to XHTML An Alternative HTML Conversion... beginning to adopt a new standard for Web pages known as XHTML XHTML is a more structured form of HTML XHTML is based on XML, which you will learn about in Chapter 16, "Understanding XML. " Many people expect the language XHTML to someday alleviate many of the inconsistencies associated with how browsers display HTML You'll learn about XHTML in Chapter 19, "XHTML: XML Meets HTML. " I told you techies love... file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%2 0HTML% 2 0&% 2 0XML% 2 0for% 2 0Beginners/ files/page_xiii .html [06.10.2009 2:01:49] page_xiv < previous page page_xiv Page xiv The Practical Side of XML Conclusion Chapter 18 Styling XML with XSL Style Sheets and XML Understanding XSL Applying XSL to XML Documents Peeking Inside a Style Sheet Drilling for Data with Patterns Transforming Information with Templates Constructing... file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%2 0HTML% 2 0&% 2 0XML% 2 0for% 2 0Beginners/ files/page_xiv .html [06.10.2009 2:01:50] page_xv < previous page page_xv Page xv Part 6 Appendixes Appendix A HTML Quick Reference Structural Tags Text Tags List Tags Table Tags Form Tags Miscellaneous Tags Appendix B HTML Resources on the Web Microsoft's Web Workshop Webmonkey HTML Goodies HTML Help The HTML Writer's Guild World Wide... family who are responsible for keeping me sane when I'm not staring at a computer screen with a glazed look on my face < previous page page_xvi next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%2 0HTML% 2 0&% 2 0XML% 2 0for% 2 0Beginners/ files/page_xvi .html [06.10.2009 2:01:50] page_1 < previous page page_1 Page 1 Part 1 Getting Started with HTML Chapter 1 HTML Essentials Chapter 2 Formatting Text Chapter 3 Dressing... document that is coded in HTML < previous page page_8 next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%2 0HTML% 2 0&% 2 0XML% 2 0for% 2 0Beginners/ files/page_8 .html [06.10.2009 2:01:54] page_9 < previous page page_9 next page > Page 9 Figure 1-2 Every Web page consists of a head and a body, identified by the and tags, which are enclosed within the tags Common HTML Tags and Attributes Now... file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%2 0HTML% 2 0&% 2 0XML% 2 0for% 2 0Beginners/ files/page_x .html [06.10.2009 2:01:48] page_xi < previous page page_xi Page xi Chapter 12 Using Styles to Format Text Assessing Cascading Style Sheets Text Styles Working with Font Styles Setting Individual Font Properties Setting Font Properties as a Group Putting the Font Styles Together Dressing Up Text with Style Altering the Spacing of Text Using Styles for. .. Connecting Pages with Hyperlinks < previous page next page > 2 22 37 51 page_1 next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%2 0HTML% 2 0&% 2 0XML% 2 0for% 2 0Beginners/ files/page_1 .html [06.10.2009 2:01:51] page_2 < previous page page_2 next page > Page 2 Chapter 1 HTML Essentials Web fact for the day A 1999 study of 25,500 words from a standard English-language dictionary found that 93 percent of them have been... begin to take the mystery out of HTML by showing you how simple it is to create your first Web page The idea is to start now doing real things with HTML whether that's building the next Amazon.com or simply a Web site to immortalize your salamander < previous page page_2 next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%2 0HTML% 2 0&% 2 0XML% 2 0for% 2 0Beginners/ files/page_2 .html [06.10.2009 2:01:51] page_3... 213 214 216 216 218 218 220 223 223 224 225 225 227 page_xi next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%2 0HTML% 2 0&% 2 0XML% 2 0for% 2 0Beginners/ files/page_xi .html [06.10.2009 2:01:48] page_xii < previous page page_xii Page xii Part 4 Adding Interactivity to Your Pages Chapter 14 Dynamic HTML DHTML Basics The Least You Need to Know About Scripts Scripting Languages Using Scripts in Web Pages Responding . page > Page i HTML & XML for beginners MICHAEL MORRISON < previous page page_i next page > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%2 0HTML% 20&%2 0XML% 2 0for% 2 0Beginners/ files/page_i .html. > file:///Z|/_==%CF%CE%C8%D1%CA==/%20h%2 0HTML% 20&%2 0XML% 2 0for% 2 0Beginners/ files/page_v .html [06.10.2009 2:01:46] page_vi < previous page page_vi next page > Page vi Basic Text Formatting:

Ngày đăng: 22/03/2014, 16:20

TỪ KHÓA LIÊN QUAN

w