ebook img

HTML, XHTML & CSS QuickSteps PDF

225 Pages·2009·9.084 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview HTML, XHTML & CSS QuickSteps

HTML, XHTML & CSS QuickSteps About the Author Guy Hart-Davis is the author of more than 50 computer books, including PC QuickSteps, Second Edition, Mac OS X Leopard QuickSteps, and How to Do Everything: iPod, iTunes & iPhone, Fifth Edition. HTML, XHTML & CSS QuickSteps GUY HART-DAVIS New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto Copyright © 2010 by The McGraw-Hill Companies. All rights reserved. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher. ISBN: 978-0-07-163318-5 MHID: 0-07-163318-9 The material in this eBook also appears in the print version of this title: ISBN: 978-0-07-163317-8, MHID: 0-07-163317-0. All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the bene- fit of the trademark owner, with no intention of infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps. McGraw-Hill eBooks are available at special quantity discounts to use as premiums and sales promotions, or for use in corporate training programs. To contact a representative please e-mail us at [email protected]. Information has been obtained by McGraw-Hill from sources believed to be reliable. However, because of the possibility of human or mechanical error by our sources, McGraw-Hill, or others, McGraw-Hill does not guarantee the accuracy, adequacy, or completeness of any information and is not responsible for any errors or omissions or the results obtained from the use of such information. TERMS OF USE This is a copyrighted work and The McGraw-Hill Companies, Inc. (“McGraw-Hill”) and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hill’s prior consent. You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right to use the work may be terminated if you fail to comply with these terms. THE WORK IS PROVIDED “AS IS.” McGRAW-HILL AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. McGraw-Hill and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free. Neither McGraw-Hill nor its licensors shall be liable to you or anyone else for any inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting therefrom. McGraw-Hill has no responsibility for the content of any information accessed through the work. Under no circumstances shall McGraw-Hill and/or its licensors be liable for any indirect, incidental, special, punitive, consequential or similar damages that result from the use of or inability to use the work, even if any of them has been advised of the possibility of such damages. This limitation of liability shall apply to any claim or cause whatsoever whether such claim or cause arises in contract, tort or otherwise. This book is dedicated with thanks to Roger Stewart. This page intentionally left blank Contents at a Glance Chapter 1 Creating Your First Web Pages with HTML and XHTML ....1 Begin and organize your website, choose HTML tools, create web 1 pages, and describe and check your web pages. Chapter 2 Choosing a Web Host and Getting Your Own Website ... 27 Understand the basics of the Web; choose a web host or ISP; plan, 2 design, and create your site; and transfer it to the Web. Chapter 3 S tructuring Web Pages and Applying Manual Formatting ................................. 45 Apply manual formatting, create lists, apply indents and alignment, 3 use inline styles, and work with the style attribute. Chapter 4 Adding Graphics to Your Web Pages..................... 67 Create or acquire graphics files, add and format inline graphics, 4 place background graphics, and create an HTML signature file. Chapter 5 Adding Links ........................................................... 81 Link to another web page or the same page, create links that download 5 files or send e-mail, create imagemaps, and add audio and video. Chapter 6 Creating Tables ....................................................... 97 Create a table, add rows and columns, format table borders, format 6 and group cells, and create nested tables. Chapter 7 Creating Frames ...................................................119 Create frameset documents and component documents, lay out the 7 frames, add alternative text, and create inline frames. Chapter 8 A pplying Formatting Using Cascading Style Sheets .............................135 Create style rules; create embedded and external style sheets; set alignment, indents, margins, and line height; and create floating 8 two-column and three-column layouts. Chapter 9 C reating Web Pages Using the Microsoft Office Applications .............159 Configure web options, insert hyperlinks, and create web pages 9 using Word or from your spreadsheets and presentations. Chapter 10 Using Forms and Scripts ......................................183 Create forms to collect information, create a login form, and use 1 0 scripts in your web pages. Index .........................................................................................201 Windows XP QuHicTkMStLe,p XsHTMStLo &ri nCgS ISn fQourmicakStiotenps vviiii This page intentionally left blank Contents Acknowledgments.. .....................................................................xv Introduction ............................................................................. xvii Chapter 1 Creating Your First Web Pages with HTML and XHTML ...................................................1 1 Understanding Tools for Creating HTML ......................................................2 Understand HTML, XML, XHTML, and HTML 5 ..............................................2 HTML ..................................................................................................................2 XML ......................................................................................................................3 XHTML ................................................................................................................3 HTML 5 ...............................................................................................................3 Organizing Your Site .........................................................................................4 Which Version of HTML Should You Use? ....................................................4 Get Started with Your Website ...............................................................................4 Create a Folder for Your Website .....................................................................4 Open Notepad ....................................................................................................5 Understanding the DOCTYPE Declaration ...................................................6 Create a Web Page and Adding Content to It ......................................................6 Create the Page’s Structure ...............................................................................6 Understanding the Header and the Body ......................................................8 Add Header and Body Tags .............................................................................8 Add Content to the Page ..................................................................................9 Apply Formatting ............................................................................................14 Add a Picture ....................................................................................................14 Add Hyperlinks and Tags, and Reloading Pages .............................................16 Add a Hyperlink ..............................................................................................16 Create Linked Files ..........................................................................................18 Describe Your Pages with Meta Tags ............................................................20 Reload a Page Automatically .........................................................................20 Understanding How Search Engines Work .................................................21 Redirect the Browser to Another Page ..........................................................21 Validate Your HTML and Checking Your Pages ...............................................22 Validate Your HTML with the W3C Markup Validation Service ..............22 Check Your Pages with Other Browsers .......................................................23 Chapter 2 Choosing a Web Host and Getting Your Own Website ................................. 27 2 Understand Web Basics ........................................................................................27 Understanding IPv4 and IPv6 .......................................................................28 Understand Web Clients and Servers ...........................................................28 Access a Web Page ...........................................................................................29 Understanding URLs ......................................................................................30 Choose a Web Host ...............................................................................................30 Assess Your Requirements .............................................................................30 Windows XP QuiHckTSMtLe,p XsHTMStLo r&in CgS ISnf QorumicaktSiotenps iixx

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.