HTML XHTML and CSS All In One For Dummies 2nd
Edition Andy Harris pdf available
https://ebookfinal.com/download/html-xhtml-and-css-all-in-one-for-
dummies-2nd-edition-andy-harris/
★★★★★
4.7 out of 5.0 (19 reviews )
PDF Instantly Ready
ebookfinal.com
HTML XHTML and CSS All In One For Dummies 2nd Edition Andy
Harris Pdf Download
EBOOK
Available Formats
■ PDF eBook Study Guide Ebook
EXCLUSIVE 2025 ACADEMIC EDITION – LIMITED RELEASE
Available Instantly Access Library
We believe these products will be a great fit for you. Click
the link to download now, or visit ebookfinal
to discover even more!
HTML XHTML and CSS Bible 5th Edition Steven M. Schafer
https://ebookfinal.com/download/html-xhtml-and-css-bible-5th-edition-
steven-m-schafer/
HTML XHTML and CSS Bible 5th ed Edition Steven M. Schafer
https://ebookfinal.com/download/html-xhtml-and-css-bible-5th-ed-
edition-steven-m-schafer/
Beginning HTML with CSS and XHTML Modern Guide and
Reference 1st Edition David Schultz
https://ebookfinal.com/download/beginning-html-with-css-and-xhtml-
modern-guide-and-reference-1st-edition-david-schultz/
Macs All in One For Dummies 2nd Edition Joe Hutsko
https://ebookfinal.com/download/macs-all-in-one-for-dummies-2nd-
edition-joe-hutsko/
iPhone 5 All in One For Dummies 2nd Edition Joe Hutsko
https://ebookfinal.com/download/iphone-5-all-in-one-for-dummies-2nd-
edition-joe-hutsko/
HTML5 For Dummies Quick Reference 1st Edition Andy Harris
https://ebookfinal.com/download/html5-for-dummies-quick-reference-1st-
edition-andy-harris/
HTML5 Game Development For Dummies 1st Edition Andy Harris
https://ebookfinal.com/download/html5-game-development-for-
dummies-1st-edition-andy-harris/
Dogs All in One For Dummies 1st Edition Consumer Dummies
https://ebookfinal.com/download/dogs-all-in-one-for-dummies-1st-
edition-consumer-dummies/
C 2010 All in One For Dummies Bill Sempf
https://ebookfinal.com/download/c-2010-all-in-one-for-dummies-bill-
sempf/
HTML XHTML and CSS All In One For Dummies 2nd
Edition Andy Harris Digital Instant Download
Author(s): Andy Harris
ISBN(s): 9780470537558, 0470537558
Edition: 2
File Details: PDF, 17.69 MB
Year: 2010
Language: english
spine=2.16”
Programming Languages/HTML
You too can become a Valuable bonus
e rsions of HTML!
tools on CD-ROM!
Covers HTM L5 and prior v 2nd Edition
Web wizard! Here’s how to go
from simple pages to super sites 2nd Edition
HTML, XHTML ,
HTML, XHTML,
Contemplating your first dip into Web page creation, or Open the book and find:
ready to take your sites to the next level? All you need are
• The basics of building XHTML
these eight minibooks. Newbies can start at the beginning documents
& CSS
for a complete understanding of basic page creation with
HTML5, XHTML, and CSS. If you’ve been there and done • What to do with selectors,
classes, and styles
that, jump ahead to managing data with MySQL, building
& CSS
AJAX connections, and more!
ALL- IN - ONE
• How to build flexible layouts
N E
• Lay the foundation — build the skeleton of your pages with
XHTML, use CSS to add color and formatting, and create dynamic
• Tips on using HTML5
A L L- I N - O
• Secrets of managing files and
buttons or menus
directories
• Serve it up — move to the server and use PHP to program
responses to Web requests or connect to databases • All about SQL coding
• Manage data — set up a secure data server and create a reliable • AJAX essentials and how to
and trustworthy data back-end for your site add events with jQuery
• Explore AJAX — learn the essentials of AJAX, how to add events • The advantages of a Content
and animation, and cool ways to use the UI library Management System
• Create super sites — understand clients and servers, work with
content management systems, and more
Bonus CD Includes
Firefox browser plus valuable extensions and plugins
Aptana programmer’s editor that simplifies the process
XAMPP, an easy-to-install server package
Visit the companion Web site at www.dummies.com/
Making Everything Easier!™
Go to Dummies.com®
for videos, step-by-step examples,
how-to articles, or to shop!
81 BOOKS
IN
• Creating the HTML/XHTML Foundation
• Styling with CSS
go/htmlxhtmlandcssaiofd2e for code and other
• Using Positional CSS
supporting materials • Client-Side Programming with JavaScript®
• Server-Side Programming with PHP
$39.99 US / $47.99 CN / £27.99 UK
• Managing Data with MySQL®
• Into the Future with AJAX
ISBN 978-0-470-53755-8
Andy Harris taught himself programming because it was fun. Today he • Moving from Pages to Sites
teaches computer science, game development, and Web programming at
the university level; is a technology consultant for the state of Indiana; and
Valuable bonus programs on CD-ROM
has helped people with disabilities to form their own Web development
companies.
Harris Andy Harris
spine=2.16”
Get More and Do More at Dummies.com ®
Start with FREE Cheat Sheets
Cheat Sheets include
pps
• Checklists
• Charts
• Common Instructions
• And Other Good Stuff!
To access the Cheat Sheet created specifically for this book, go to
Mobile A
www.dummies.com/cheatsheet/htmlxhtmlandcss
Get Smart at Dummies.com
Dummies.com makes your life easier with 1,000s
of answers on everything from removing wallpaper
to using the latest version of Windows.
Check out our
• Videos
• Illustrated Articles
There’s a Dummies App for This and That
• Step-by-Step Instructions
With more than 200 million books in print and over 1,600 unique
Plus, each month you can win valuable prizes by entering titles, Dummies is a global leader in how-to information. Now
our Dummies.com sweepstakes. * you can get the same great Dummies information in an App. With
Want a weekly dose of Dummies? Sign up for Newsletters on topics such as Wine, Spanish, Digital Photography, Certification,
• Digital Photography and more, you’ll have instant access to the topics you need to
• Microsoft Windows & Office know in a format you can trust.
• Personal Finance & Investing
• Health & Wellness To get information on all our Dummies apps, visit the following:
• Computing, iPods & Cell Phones
www.Dummies.com/go/mobile from your computer.
• eBay
• Internet www.Dummies.com/go/iphone/apps from your phone.
• Food, Home & Garden
Find out “HOW” at Dummies.com
*Sweepstakes not currently available in all countries; visit Dummies.com for official rules.
HTML, XHTML,
& CSS
ALL-IN-ONE
FOR
DUMmIES
‰
2ND EDITION
01_9780470537558-ffirs.indd i 10/7/10 8:24 PM
01_9780470537558-ffirs.indd ii 10/7/10 8:24 PM
HTML, XHTML,
& CSS
ALL-IN-ONE
FOR
DUMmIES
‰
2ND EDITION
by Andy Harris
01_9780470537558-ffirs.indd iii 10/7/10 8:24 PM
Disclaimer: This eBook does not include ancillary media that was packaged with the
printed version of the book.
HTML, XHTML, & CSS All-in-One For Dummies®, 2nd Edition
Published by
Wiley Publishing, Inc.
111 River Street
Hoboken, NJ 07030-5774
www.wiley.com
Copyright © 2011 by Wiley Publishing, Inc., Indianapolis, Indiana
Published by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or
by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permit-
ted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written
permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the
Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600.
Requests to the Publisher for permission should be addressed to the Permission Department, John Wiley
& Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://
www.wiley.com/go/permissions.
Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the
Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, Making Everything
Easier, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or
its affiliates in the United States and other countries, and may not be used without written permission. All
other trademarks are the property of their respective owners. Wiley Publishing, Inc. is not associated with
any product or vendor mentioned in this book.
LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO
REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF
THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITH-
OUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE
CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE ADVICE AND STRATEGIES
CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH THE
UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR
OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF
A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE
AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZA-
TION OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE
OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES
THE INFORMATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT
MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS
WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND
WHEN IT IS READ.
For general information on our other products and services, please contact our Customer Care
Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002.
For technical support, please visit www.wiley.com/techsupport.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may
not be available in electronic books.
Library of Congress Control Number: 2010937814
ISBN: 978-0-470-53755-8
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
01_9780470537558-ffirs.indd iv 10/7/10 8:24 PM
About the Author
Andy Harris began his teaching life as a special education teacher. As he was
teaching young adults with severe disabilities, he taught himself enough com-
puter programming to support his teaching habit with freelance program-
ming. Those were the exciting days when computers started to have hard
drives, and some computers began communicating with each other over an
arcane mechanism some were calling the Internet.
All this time Andy was teaching computer science part time. He joined the
faculty of the Indiana University-Purdue University Indianapolis Computer
Science department in 1995. He serves as a Senior Lecturer, teaching the
introductory courses to freshmen as well as numerous courses on Web
development, general programming, and game programming. As manager
of the Streaming Media Laboratory, he developed a number of online video-
based courses, and worked on a number of international distance education
projects including helping to start a computer science program in Tetevo,
Macedonia FYR.
Andy is the author of several other computing books including JavaScript For
Dummies, Flash Game Programming For Dummies, and Game Programming:
the L Line. He invites your comments and questions at andy@aharris
books.net. You can visit his main site and find a blog, forum, and links to
other books at http://www.aharrisbooks.net.
01_9780470537558-ffirs.indd v 10/7/10 8:24 PM
01_9780470537558-ffirs.indd vi 10/7/10 8:24 PM
Dedication
I dedicate this book to Jesus Christ, my personal savior, and to Heather, the
joy in my life. I also dedicate this project to Elizabeth, Matthew, Jacob, and
Benjamin. I love each of you.
Author’s Acknowledgments
Thank you first to Heather. Even though I type all the words, this book is a
real partnership, like the rest of our life. Thanks for being my best friend and
companion. Thanks also for doing all the work it takes for us to sustain a
family when I’m in writing mode.
Thank you to Mark Enochs. It’s great to have an editor who gets me, and
who’s willing to get excited about a project. I really enjoy working with you.
Thanks very much to Katie Feltman. It’s fun to see how far a few wacky ideas
have gone. Thanks for continuing to believe in me, and for helping me to
always find an interesting new project.
Thank you to the copy editors: first and foremost, I thank Brian Walls for his
all his hard work in making this edition presentable. Thanks also go to Teresa
Artman, John Edwards, and Melba Hopper for their help. I appreciate your
efforts to make my geeky mush turn into something readable. Thanks for
improving my writing.
A special thanks to Jeff Noble for his technical editing. I appreciate your vigi-
lance. You have helped to make this book as technically accurate as possible.
Thank you to the many people at Wiley who contribute to a project like
this. The author only gets to meet a few people, but so many more are
involved in the process. Thank you very much for all you’ve done to help
make this project a reality.
Thanks to Chris McCulloh for all you did on the first edition, and I thank you
for your continued friendship.
A big thank you to the open source community which has created so many
incredible tools and made them available to all. I’d especially like to thank the
creators of Firefox, Firebug, Aptana, HTML Validator, the Web Developer tool-
bar, Ubuntu and the Linux community, Notepad++, PHP, Apache, jQuery, and
the various jQuery plugins. This is an amazing and generous community effort.
I’d finally like to thank the IUPUI computer science family for years of support
on various projects. Thank you especially to all my students, current and
past. I’ve learned far more from you than the small amount I’ve taught. Thank
you for letting me be a part of your education.
01_9780470537558-ffirs.indd vii 10/7/10 8:24 PM
Publisher’s Acknowledgments
We’re proud of this book; please send us your comments through our online registration form
located at http://dummies.custhelp.com. For other comments, please contact our Customer
Care Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002.
Some of the people who helped bring this book to market include the following:
Acquisitions, Editorial, and Media Composition Services
Development Project Coordinators: Katherine Crocker,
Senior Project Editor: Mark Enochs Lynsey Stanford
Senior Acquisitions Editor: Katie Feltman Layout and Graphics: Carl Byers,
Copy Editors: Brian Walls, Teresa Artman, Timothy C. Detrick
John Edwards, Melba Hopper Proofreaders: Lauren Mandelbaum,
Technical Editor: Jeff Noble Christine Sabooni
Editorial Manager: Leah Cameron Indexer: BIM Indexing & Proofreading Services
Media Development Project Manager: Special Help: Tonya Cupp,
Laura Moss-Hollister Colleen Totz Diamond
Media Development Assistant Project
Manager: Jenny Swisher
Media Development Assistant Producer:
Shawn Patrick
Editorial Assistant: Amanda Graham
Sr. Editorial Assistant: Cherie Case
Cartoons: Rich Tennant
(www.the5thwave.com)
Publishing and Editorial for Technology Dummies
Richard Swadley, Vice President and Executive Group Publisher
Andy Cummings, Vice President and Publisher
Mary Bednarek, Executive Acquisitions Director
Mary C. Corder, Editorial Director
Publishing for Consumer Dummies
Diane Graves Steele, Vice President and Publisher
Composition Services
Debbie Stailey, Director of Composition Services
01_9780470537558-ffirs.indd viii 10/7/10 8:24 PM
Contents at a Glance
Introduction ................................................................ 1
Book I: Creating the HTML/XHTML Foundation .............. 7
Chapter 1: Sound HTML Foundations ............................................................................. 9
Chapter 2: It’s All about Validation ............................................................................... 19
Chapter 3: Choosing Your Tools .................................................................................... 41
Chapter 4: Managing Information with Lists and Tables ............................................ 65
Chapter 5: Making Connections with Links .................................................................. 83
Chapter 6: Adding Images ............................................................................................... 93
Chapter 7: Creating Forms ............................................................................................ 121
Chapter 8: The Future of HTML: HTML 5 .................................................................... 141
Book II: Styling with CSS ......................................... 157
Chapter 1: Coloring Your World .................................................................................. 159
Chapter 2: Styling Text .................................................................................................. 177
Chapter 3: Selectors, Class, and Style ......................................................................... 201
Chapter 4: Borders and Backgrounds ......................................................................... 219
Chapter 5: Levels of CSS................................................................................................ 239
Book III: Using Positional CSS .................................. 257
Chapter 1: Fun with the Fabulous Float ...................................................................... 259
Chapter 2: Building Floating Page Layouts ................................................................. 279
Chapter 3: Styling Lists and Menus ............................................................................. 299
Chapter 4: Using Alternative Positioning .................................................................... 317
Book IV: Client-Side Programming with JavaScript ..... 335
Chapter 1: Getting Started with JavaScript ................................................................ 337
Chapter 2: Making Decisions with Conditions ........................................................... 359
Chapter 3: Loops and Debugging ................................................................................. 373
Chapter 4: Functions, Arrays, and Objects................................................................. 395
Chapter 5: Talking to the Page ..................................................................................... 423
Chapter 6: Getting Valid Input...................................................................................... 445
Chapter 7: Animating Your Pages ................................................................................ 467
02_9780470537558-ftoc.indd ix 10/7/10 8:26 PM
Book V: Server-Side Programming with PHP .............. 499
Chapter 1: Getting Started on the Server .................................................................... 501
Chapter 2: PHP and XHTML Forms.............................................................................. 519
Chapter 3: Control Structures ...................................................................................... 539
Chapter 4: Working with Arrays .................................................................................. 559
Chapter 5: Using Functions and Session Variables ................................................... 579
Chapter 6: Working with Files and Directories .......................................................... 591
Chapter 7: Connecting to a MySQL Database............................................................. 613
Book VI: Managing Data with MySQL ....................... 635
Chapter 1: Getting Started with Data .......................................................................... 637
Chapter 2: Managing Data with SQL ............................................................................ 665
Chapter 3: Normalizing Your Data ............................................................................... 691
Chapter 4: Putting Data Together with Joins ............................................................. 705
Book VII: Into the Future with AJAX ......................... 729
Chapter 1: AJAX Essentials ........................................................................................... 731
Chapter 2: Improving JavaScript and AJAX with jQuery .......................................... 747
Chapter 3: Animating jQuery ........................................................................................ 771
Chapter 4: Using the jQuery User Interface Toolkit .................................................. 797
Chapter 5: Improving Usability with jQuery............................................................... 823
Chapter 6: Working with AJAX Data ............................................................................ 843
Book VIII: Moving from Pages to Sites ....................... 867
Chapter 1: Managing Your Servers .............................................................................. 869
Chapter 2: Planning Your Sites .................................................................................... 895
Chapter 3: Introducing Content Management Systems ............................................ 915
Chapter 4: Editing Graphics ......................................................................................... 941
Chapter 5: Taking Control of Content ......................................................................... 961
Appendix A: What’s on the CD .................................. 979
Index ...................................................................... 985
02_9780470537558-ftoc.indd x 10/7/10 8:26 PM
Table of Contents
Introduction ................................................................. 1
No Experience Necessary ............................................................................... 2
Great for Advanced Folks, Too! ..................................................................... 2
Use Any Computer........................................................................................... 3
Don’t Buy Any Software .................................................................................. 3
How This Book Is Organized .......................................................................... 4
New for the Second Edition ............................................................................ 5
Icons Used in This Book ................................................................................. 6
What’s Next?..................................................................................................... 6
Book I: Creating the HTML/XHTML Foundation ............... 7
Chapter 1: Sound HTML Foundations . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Creating a Basic Page ...................................................................................... 9
Understanding the HTML in the Basic Page............................................... 11
Meeting Your New Friends, the Tags .......................................................... 12
Setting Up Your System ................................................................................ 15
Displaying file extensions ................................................................... 15
Setting up your software ..................................................................... 16
Chapter 2: It’s All about Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Somebody Stop the HTML Madness! .......................................................... 19
XHTML to the rescue........................................................................... 20
There’s XHTML and there’s good XHTML ........................................ 21
Building an XHTML Document..................................................................... 22
Don’t memorize all this! ...................................................................... 22
The DOCTYPE tag ................................................................................ 22
The xmlns attribute ............................................................................. 23
The meta tag ......................................................................................... 23
You validate me ................................................................................... 23
Validating Your Page ..................................................................................... 25
Aesop visits W3C ................................................................................. 27
Showing off your mad skillz ................................................................ 35
Using Tidy to repair pages.................................................................. 37
02_9780470537558-ftoc.indd xi 10/7/10 8:26 PM
xii HTML, XHTML, & CSS All-in-One For Dummies, 2nd Edition
Chapter 3: Choosing Your Tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
What’s Wrong with the Big Boys? ............................................................... 41
Alternative Web Development Tools .......................................................... 43
The features you need on your computer ........................................ 43
Building a basic toolbox...................................................................... 43
Picking a Text Editor ..................................................................................... 44
Tools to avoid unless you have nothing else ................................... 44
A noteworthy editor: Notepad++ ....................................................... 45
The old standards: VI and Emacs ...................................................... 46
Other text editors ................................................................................ 49
The Web Developer’s Browser .................................................................... 49
A little ancient history ......................................................................... 49
Overview of the prominent browsers ............................................... 50
Other notable browsers ...................................................................... 52
The bottom line in browsers .............................................................. 53
Tricking Out Firefox ...................................................................................... 53
Validating your pages with HTML Validator .................................... 54
Using the Web Developer toolbar...................................................... 55
Using Firebug ........................................................................................ 57
Using a Full-Blown IDE .................................................................................. 58
Introducing Aptana .............................................................................. 58
Customizing Aptana............................................................................. 60
Introducing Komodo Edit ............................................................................. 62
Chapter 4: Managing Information with Lists and Tables . . . . . . . . . . .65
Making a List and Checking It Twice ........................................................... 65
Creating an unordered list .................................................................. 65
Creating ordered lists.......................................................................... 67
Making nested lists .............................................................................. 69
Building the definition list .................................................................. 72
Building Tables .............................................................................................. 74
Defining the table ................................................................................. 75
Spanning rows and columns............................................................... 77
Avoiding the table-based layout trap ................................................ 80
Chapter 5: Making Connections with Links . . . . . . . . . . . . . . . . . . . . . .83
Making Your Text Hyper............................................................................... 83
Introducing the anchor tag ................................................................. 84
Comparing block-level and inline elements...................................... 85
Analyzing an anchor ............................................................................ 86
Introducing URLs ................................................................................. 86
Making Lists of Links ..................................................................................... 88
Working with Absolute and Relative References ...................................... 89
Understanding absolute references .................................................. 89
Introducing relative references.......................................................... 89
02_9780470537558-ftoc.indd xii 10/7/10 8:26 PM
Table of Contents xiii
Chapter 6: Adding Images. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93
Adding Images to Your Pages ...................................................................... 93
Adding links to images ........................................................................ 94
Adding inline images using the <img> tag ........................................ 96
Choosing an Image Manipulation Tool ....................................................... 98
An image is worth 3.4 million words! ................................................ 98
Introducing IrfanView ........................................................................ 101
Choosing an Image Format ......................................................................... 102
BMP...................................................................................................... 102
JPG/JPEG ............................................................................................. 102
GIF ........................................................................................................ 103
PNG ...................................................................................................... 105
Summary of Web image formats ...................................................... 106
Manipulating Your Images.......................................................................... 106
Changing formats in IrfanView ......................................................... 106
Resizing your images ......................................................................... 108
Enhancing image colors .................................................................... 109
Using built-in effects .......................................................................... 110
Other effects you can use ................................................................. 115
Batch processing ............................................................................... 115
Using Images as Links ................................................................................. 117
Creating thumbnail images ............................................................... 118
Creating a thumbnail-based image directory ................................. 120
Chapter 7: Creating Forms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121
You Have Great Form .................................................................................. 121
Forms must have some form ............................................................ 123
Organizing a form with fieldsets and labels ................................... 123
Building Text-Style Inputs .......................................................................... 126
Making a standard text field ............................................................. 126
Building a password field.................................................................. 127
Making multi-line text input.............................................................. 128
Creating Multiple Selection Elements ....................................................... 130
Making selections .............................................................................. 130
Building check boxes......................................................................... 132
Creating radio buttons ...................................................................... 134
Pressing Your Buttons ................................................................................ 136
Making input-style buttons ............................................................... 137
Building a Submit button .................................................................. 138
It’s a do-over: The Reset button ....................................................... 138
Introducing the <button> tag ........................................................... 139
Chapter 8: The Future of HTML: HTML 5. . . . . . . . . . . . . . . . . . . . . . . . .141
Can’t We Just Stick with XHTML? .............................................................. 141
Using the HTML 5 doctype ............................................................... 142
Browser support for HTML 5 ........................................................... 142
Validating HTML 5 ............................................................................. 142
02_9780470537558-ftoc.indd xiii 10/7/10 8:26 PM
xiv HTML, XHTML, & CSS All-in-One For Dummies, 2nd Edition
Semantic Elements ...................................................................................... 142
Using New Form Elements .......................................................................... 144
Using Embedded Fonts ............................................................................... 147
Audio and Video Tags ................................................................................. 149
The Canvas Tag............................................................................................ 152
Other Promising Features .......................................................................... 155
Limitations of HTML 5................................................................................. 156
Book II: Styling with CSS .......................................... 157
Chapter 1: Coloring Your World. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159
Now You Have an Element of Style ........................................................... 159
Setting up a style sheet ..................................................................... 161
Changing the colors ........................................................................... 162
Specifying Colors in CSS ............................................................................. 163
Using color names ............................................................................. 163
Putting a hex on your colors ............................................................ 164
Coloring by number ........................................................................... 165
Hex education..................................................................................... 165
Using the Web-safe color palette ..................................................... 167
Choosing Your Colors ................................................................................. 168
Starting with Web-safe colors .......................................................... 169
Modifying your colors ....................................................................... 169
Doing it on your own pages .............................................................. 170
Changing CSS on the fly..................................................................... 170
Creating Your Own Color Scheme ............................................................. 172
Understanding hue, saturation, and value ..................................... 172
Using the Color Scheme Designer.................................................... 173
Selecting a base hue .......................................................................... 174
Picking a color scheme ..................................................................... 175
Chapter 2: Styling Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .177
Setting the Font Family ............................................................................... 177
Applying the font-family style attribute .......................................... 179
Using generic fonts ............................................................................ 180
Making a list of fonts ......................................................................... 181
The Curse of Web-Based Fonts .................................................................. 183
Understanding the problem ............................................................. 183
Examining possible solutions ........................................................... 184
Using images for headlines ............................................................... 185
Specifying the Font Size .............................................................................. 188
Size is only a suggestion!................................................................... 188
Using the font-size style attribute .................................................... 188
Absolute measurement units ........................................................... 189
Relative measurement units ............................................................. 190
02_9780470537558-ftoc.indd xiv 10/7/10 8:26 PM
Table of Contents xv
Determining Other Font Characteristics .................................................. 191
Using font-style for italics ................................................................. 192
Using font-weight for bold ................................................................ 193
Using text-decoration ........................................................................ 194
Using text-align for basic alignment ................................................ 196
Other text attributes.......................................................................... 197
Using the font shortcut ..................................................................... 197
Working with subscripts and superscripts .................................... 199
Chapter 3: Selectors, Class, and Style . . . . . . . . . . . . . . . . . . . . . . . . . .201
Selecting Particular Segments.................................................................... 201
Defining more than one kind of paragraph ..................................... 201
Styling identified paragraphs ........................................................... 203
Using Emphasis and Strong Emphasis ...................................................... 203
Adding emphasis to the page ........................................................... 204
Modifying the display of em and strong ......................................... 204
Defining Classes ........................................................................................... 206
Adding classes to the page ............................................................... 207
Combining classes ............................................................................. 208
Introducing div and span............................................................................ 210
Organizing the page by meaning...................................................... 211
Why not make a table? ...................................................................... 212
Using Pseudo-Classes to Style Links ......................................................... 213
Styling a standard link ....................................................................... 213
Styling the link states ........................................................................ 213
Best link practices ............................................................................. 215
Selecting in Context..................................................................................... 216
Defining Multiple Styles at Once ................................................................ 217
Chapter 4: Borders and Backgrounds. . . . . . . . . . . . . . . . . . . . . . . . . . .219
Joining the Border Patrol ........................................................................... 219
Using the border attributes .............................................................. 219
Defining border styles ....................................................................... 221
Using the border shortcut ................................................................ 222
Creating partial borders.................................................................... 222
Introducing the Box Model ......................................................................... 224
Borders, margin, and padding.......................................................... 224
Positioning elements with margins and padding........................... 226
Changing the Background Image ............................................................... 228
Getting a background check ............................................................. 230
Solutions to the background conundrum ....................................... 230
Manipulating Background Images ............................................................. 234
Turning off the repeat ....................................................................... 234
Making effective gradients with repeat-x and repeat-y ................. 235
Using Images in Lists ................................................................................... 237
02_9780470537558-ftoc.indd xv 10/7/10 8:26 PM
xvi HTML, XHTML, & CSS All-in-One For Dummies, 2nd Edition
Chapter 5: Levels of CSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .239
Managing Levels of Style ............................................................................ 239
Using local styles ............................................................................... 239
Using an external style sheet ........................................................... 242
Understanding the Cascading Part of Cascading Style Sheets .............. 246
Inheriting styles ................................................................................. 247
Hierarchy of styles ............................................................................. 248
Overriding styles................................................................................ 249
Precedence of style definitions ........................................................ 250
Using Conditional Comments..................................................................... 251
Coping with incompatibility ............................................................. 251
Making Internet Explorer–specific code ......................................... 252
Using a conditional comment with CSS .......................................... 253
Checking the Internet Explorer version .......................................... 256
Book III: Using Positional CSS................................... 257
Chapter 1: Fun with the Fabulous Float . . . . . . . . . . . . . . . . . . . . . . . . .259
Avoiding Old-School Layout Pitfalls .......................................................... 259
Problems with frames ....................................................................... 259
Problems with tables ......................................................................... 260
Problems with huge images.............................................................. 261
Problems with Flash .......................................................................... 261
Introducing the Floating Layout Mechanism ........................................... 262
Using float with images ..................................................................... 263
Adding the float property ................................................................. 264
Using Float with Block-Level Elements ..................................................... 265
Floating a paragraph.......................................................................... 265
Adjusting the width ........................................................................... 267
Setting the next margin ..................................................................... 268
Using Float to Style Forms .......................................................................... 270
Using float to beautify the form ....................................................... 272
Adjusting the fieldset width.............................................................. 275
Using the clear attribute to control page layout ........................... 276
Chapter 2: Building Floating Page Layouts . . . . . . . . . . . . . . . . . . . . . .279
Creating a Basic Two-Column Design ....................................................... 279
Designing the page............................................................................. 279
Building the XHTML .......................................................................... 281
Adding preliminary CSS .................................................................... 282
Using temporary borders ................................................................. 283
Setting up the floating columns ....................................................... 285
Tuning up the borders ...................................................................... 285
Advantages of a fluid layout ............................................................. 287
02_9780470537558-ftoc.indd xvi 10/7/10 8:26 PM
Random documents with unrelated
content Scribd suggests to you:
Astronomy - Summary Sheet
Fall 2023 - Academy
Prepared by: Dr. Davis
Date: August 12, 2025
Methodology 1: Case studies and real-world applications
Learning Objective 1: Statistical analysis and interpretation
• Key terms and definitions
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Learning Objective 2: Ethical considerations and implications
• Theoretical framework and methodology
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Learning Objective 3: Critical analysis and evaluation
• Interdisciplinary approaches
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Learning Objective 4: Key terms and definitions
• Study tips and learning strategies
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
Learning Objective 5: Assessment criteria and rubrics
• Critical analysis and evaluation
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
Key Concept: Literature review and discussion
• Assessment criteria and rubrics
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
Key Concept: Practical applications and examples
• Study tips and learning strategies
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
Note: Learning outcomes and objectives
• Comparative analysis and synthesis
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Note: Interdisciplinary approaches
• Fundamental concepts and principles
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
Key Concept: Interdisciplinary approaches
• Study tips and learning strategies
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Summary 2: Problem-solving strategies and techniques
Key Concept: Literature review and discussion
• Historical development and evolution
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Example 11: Problem-solving strategies and techniques
• Practical applications and examples
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
[Figure 12: Diagram/Chart/Graph]
Key Concept: Key terms and definitions
• Comparative analysis and synthesis
- Sub-point: Additional details and explanations
- Example: Practical application scenario
Formula: [Mathematical expression or equation]
[Figure 13: Diagram/Chart/Graph]
Practice Problem 13: Key terms and definitions
• Historical development and evolution
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Note: Best practices and recommendations
• Theoretical framework and methodology
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Note: Current trends and future directions
• Best practices and recommendations
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Important: Practical applications and examples
• Fundamental concepts and principles
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Important: Comparative analysis and synthesis
• Literature review and discussion
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Remember: Historical development and evolution
• Ethical considerations and implications
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
[Figure 19: Diagram/Chart/Graph]
Important: Case studies and real-world applications
• Best practices and recommendations
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Methodology 3: Key terms and definitions
Note: Current trends and future directions
• Comparative analysis and synthesis
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Important: Comparative analysis and synthesis
• Literature review and discussion
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
Note: Statistical analysis and interpretation
• Experimental procedures and results
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Note: Ethical considerations and implications
• Interdisciplinary approaches
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Definition: Fundamental concepts and principles
• Study tips and learning strategies
- Sub-point: Additional details and explanations
- Example: Practical application scenario
Example 25: Ethical considerations and implications
• Literature review and discussion
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
[Figure 26: Diagram/Chart/Graph]
Key Concept: Literature review and discussion
• Current trends and future directions
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Definition: Current trends and future directions
• Literature review and discussion
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
Key Concept: Critical analysis and evaluation
• Problem-solving strategies and techniques
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Example 29: Experimental procedures and results
• Historical development and evolution
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Summary 4: Experimental procedures and results
Note: Theoretical framework and methodology
• Interdisciplinary approaches
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Example 31: Study tips and learning strategies
• Problem-solving strategies and techniques
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
[Figure 32: Diagram/Chart/Graph]
Remember: Ethical considerations and implications
• Experimental procedures and results
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
Remember: Best practices and recommendations
• Assessment criteria and rubrics
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
Definition: Practical applications and examples
• Learning outcomes and objectives
- Sub-point: Additional details and explanations
- Example: Practical application scenario
Formula: [Mathematical expression or equation]
[Figure 35: Diagram/Chart/Graph]
Definition: Best practices and recommendations
• Fundamental concepts and principles
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
[Figure 36: Diagram/Chart/Graph]
Note: Statistical analysis and interpretation
• Best practices and recommendations
- Sub-point: Additional details and explanations
- Example: Practical application scenario
[Figure 37: Diagram/Chart/Graph]
Note: Learning outcomes and objectives
• Research findings and conclusions
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
Note: Study tips and learning strategies
• Literature review and discussion
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
Example 39: Comparative analysis and synthesis
• Research findings and conclusions
- Sub-point: Additional details and explanations
- Example: Practical application scenario
Introduction 5: Interdisciplinary approaches
Key Concept: Historical development and evolution
• Research findings and conclusions
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Note: Current trends and future directions
• Study tips and learning strategies
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Key Concept: Historical development and evolution
• Case studies and real-world applications
- Sub-point: Additional details and explanations
- Example: Practical application scenario
Formula: [Mathematical expression or equation]
Note: Experimental procedures and results
• Interdisciplinary approaches
- Sub-point: Additional details and explanations
- Example: Practical application scenario
Example 44: Experimental procedures and results
• Fundamental concepts and principles
- Sub-point: Additional details and explanations
- Example: Practical application scenario
Formula: [Mathematical expression or equation]
Definition: Interdisciplinary approaches
• Literature review and discussion
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
[Figure 46: Diagram/Chart/Graph]
Note: Problem-solving strategies and techniques
• Ethical considerations and implications
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Example 47: Interdisciplinary approaches
• Comparative analysis and synthesis
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Important: Study tips and learning strategies
• Experimental procedures and results
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
Remember: Research findings and conclusions
• Historical development and evolution
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
Practice 6: Historical development and evolution
Key Concept: Best practices and recommendations
• Fundamental concepts and principles
- Sub-point: Additional details and explanations
- Example: Practical application scenario
- Note: Important consideration
Formula: [Mathematical expression or equation]
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
Let us accompany you on the journey of exploring knowledge and
personal growth!
ebookfinal.com