100% found this document useful (1 vote)
5 views

HTML XHTML and CSS All In One For Dummies 2nd Edition Andy Harris instant download

The document provides information about the book 'HTML, XHTML & CSS All-in-One For Dummies, 2nd Edition' by Andy Harris, which covers web development fundamentals including HTML5, CSS, and AJAX. It includes links to download the book and other related resources, as well as details about the author and the content structure of the book. Additionally, it mentions a bonus CD with useful tools and resources for web development.

Uploaded by

krokanstete
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
5 views

HTML XHTML and CSS All In One For Dummies 2nd Edition Andy Harris instant download

The document provides information about the book 'HTML, XHTML & CSS All-in-One For Dummies, 2nd Edition' by Andy Harris, which covers web development fundamentals including HTML5, CSS, and AJAX. It includes links to download the book and other related resources, as well as details about the author and the content structure of the book. Additionally, it mentions a bonus CD with useful tools and resources for web development.

Uploaded by

krokanstete
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 51

HTML XHTML and CSS All In One For Dummies 2nd

Edition Andy Harris pdf download

https://ebookfinal.com/download/html-xhtml-and-css-all-in-one-
for-dummies-2nd-edition-andy-harris/

Explore and download more ebooks or textbooks


at ebookfinal.com
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


Table of Contents xvii

Building a Three-Column Design ............................................................... 287


Styling the three-column page ......................................................... 289
Problems with the floating layout.................................................... 290
Specifying a min-height ..................................................................... 291
Building a Fixed-Width Layout ................................................................... 293
Setting up the XHTML ....................................................................... 293
Using an image to simulate true columns....................................... 294
Building a Centered Fixed-Width Layout .................................................. 295
Making a surrogate body with an all div ......................................... 296
How the jello layout works ............................................................... 298
Limitations of the jello layout .......................................................... 298

Chapter 3: Styling Lists and Menus. . . . . . . . . . . . . . . . . . . . . . . . . . . . .299


Revisiting List Styles ................................................................................... 299
Defining navigation as a list of links ................................................ 300
Turning links into buttons ................................................................ 300
Building horizontal lists .................................................................... 302
Creating Dynamic Lists ............................................................................... 304
Building a nested list ......................................................................... 304
Hiding the inner lists ......................................................................... 306
Getting the inner lists to appear on cue ......................................... 307
Building a Basic Menu System ................................................................... 310
Building a vertical menu with CSS ................................................... 312
Building a horizontal menu .............................................................. 314

Chapter 4: Using Alternative Positioning. . . . . . . . . . . . . . . . . . . . . . . .317


Working with Absolute Positioning ........................................................... 317
Setting up the HTML .......................................................................... 318
Adding position guidelines ............................................................... 318
Making absolute positioning work................................................... 319
Managing z-index ......................................................................................... 320
Handling depth ................................................................................... 320
Working with z-index ......................................................................... 322
Building a Page Layout with Absolute Positioning.................................. 322
Overview of absolute layout............................................................. 322
Writing the XHTML ............................................................................ 324
Adding the CSS ................................................................................... 324
Creating a More Flexible Layout ................................................................ 326
Designing with percentages.............................................................. 326
Building the layout............................................................................. 328
Exploring Other Types of Positioning ....................................................... 329
Creating a fixed menu system .......................................................... 330
Setting up the XHTML ....................................................................... 331
Setting the CSS values ....................................................................... 332
Determining Your Layout Scheme............................................................. 334

02_9780470537558-ftoc.indd xvii 10/7/10 8:26 PM


xviii HTML, XHTML, & CSS All-in-One For Dummies, 2nd Edition

Book IV: Client-Side Programming with JavaScript ..... 335


Chapter 1: Getting Started with JavaScript. . . . . . . . . . . . . . . . . . . . . .337
Working in JavaScript ................................................................................. 337
Choosing a JavaScript editor............................................................ 338
Picking your test browser ................................................................. 339
Writing Your First JavaScript Program ..................................................... 340
Embedding your JavaScript code .................................................... 341
Creating comments............................................................................ 342
Using the alert( ) method for output ............................................... 342
Adding the semicolon........................................................................ 342
Introducing Variables.................................................................................. 342
Creating a variable for data storage ................................................ 344
Asking the user for information ....................................................... 344
Responding to the user ..................................................................... 345
Using Concatenation to Build Better Greetings ....................................... 345
Comparing literals and variables ..................................................... 347
Including spaces in your concatenated phrases ........................... 347
Understanding the String Object ............................................................... 347
Introducing object-based programming (and cows)..................... 348
Investigating the length of a string .................................................. 348
Using string methods to manipulate text ....................................... 349
Understanding Variable Types .................................................................. 352
Adding numbers ................................................................................. 352
Adding the user’s numbers .............................................................. 353
The trouble with dynamic data ........................................................ 354
The pesky plus sign ........................................................................... 355
Changing Variables to the Desired Type .................................................. 356
Using variable conversion tools ...................................................... 356
Fixing the addInput code .................................................................. 357

Chapter 2: Making Decisions with Conditions . . . . . . . . . . . . . . . . . . .359


Working with Random Numbers ............................................................... 359
Creating an integer within a range................................................... 359
Building a program that rolls dice ................................................... 360
Using if to Control Flow .............................................................................. 361
The basic if statement ....................................................................... 362
All about conditions .......................................................................... 363
Comparison operators ...................................................................... 363
Using the else Clause .................................................................................. 364
Using if-else for more complex interaction .................................... 365
Solving the mystery of the unnecessary else ................................. 367
Using switch for More Complex Branches ............................................... 367
Creating an expression...................................................................... 368
Switching with style........................................................................... 369

02_9780470537558-ftoc.indd xviii 10/7/10 8:26 PM


Discovering Diverse Content Through
Random Scribd Documents
Solange, de M. Adolphe Aderer et G. Salvayre 41
Le Pavillon d’Armide, de M. Alexandre Beners 44
Le Prince Igor, de Borodine 44
Le Festin, de Rimsky-Korsakow 44
Bacchus, de Catulle Mendès et Jules Massenet 46
Le Vieil Aigle, de M. Raoul Gunsbourg 50
Ivan-le-Terrible, de M. N. Rimsky-Korsakow 51
La Clairière, de MM. Maurice Donnay et Lucien Descaves 54
Lauzun, de MM. Gustave Guiches et François de Nion 56
Demain, de M. P.-H. Raymond-Duval 59
Les Possédés, de M. H.-R. Lenormand 59
La Veuve Joyeuse (d’après H. Meilhac), de MM. Victor Léon
et Léon Stein; musique de Franz Léhar 61
Œuvre Posthume, de M. Alfred Mortier 64
L’Eventail de Lady Windermere, d’Oscar Wilde (adaptation
de MM. Rémon et G. Chalençon) 64
L’Assommoir, de MM. Busnach et Gastineau, d’après E. Zola 66
La Révolution Française, de MM. Arthur Bernède et Henri
Cain 68
Le Roy sans royaume, de M. Pierre Decourcelle 70
La Robe rouge, de M. Brieux 73
Suzette, de M. Brieux 75
Le Roi s’ennuie, de MM. Gaston Sorbets et Albéric Cahuet 77
Papillon, dit Lyonnais-le-Juste, de M. Louis Bénière 77
Les Emigrants, de M. Charles-Henry Hirsch 80
La Bigote, de M. Jules Renard 80
La Griffe, de M. Henry Bernstein 83
La Petite Chocolatière, de M. Paul Gavault 84
La Rampe, de M. Henri de Rothschild 87
Le Circuit, de MM. Georges Feydeau et Francis de Croisset 90
Lysistrata, de M. Maurice Donnay 92
Maison de Danses, de MM. Nozière et Charles Muller
(d’après M. Paul Reboux) 95
Jarnac, de MM. Léon Hennique et Johannès Gravier 98
Sire, de M. Henri Lavedan 101
Le Procès de Jeanne d’Arc, de M. Emile Moreau 105
Le Risque, de M. Romain Coolus 108
Comme les feuilles..., de Giuseppe Giacosa (Traduction de
Mlle Darsenne) 111
Moralité nouvelle d’un Empereur, de M. J. Rial-Faber 111
Un Ange, de M. Alfred Capus 114
Pierre et Thérèse, de M. Marcel Prévost 117
La Massière, de M. Jules Lemaître 120
Madame Margot, de MM. Emile Moreau et Clairville 121
La Barricade, de M. Paul Bourget 124
Le Danseur inconnu, de M. Tristan Bernard 127
L’Ange Gardien, de M. André Picard 130
Le Monsieur au Camélia, de M. Jean Passier 130
Le Sonate à Kreutzer, de MM. Fernand Nozière et Alfred
Savoir (d’après Tolstoï) 133
Chantecler, de M. Edmond Rostand 135
Gaby, de M. Georges Thurner 140
Antar, de M. Chékri-Ganem 142
Boubouroche, de M. Georges Courteline 144
L’Imprévu, de M. Victor Margueritte 144
Le Peintre exigeant, de M. Tristan Bernard 144
La Vierge folle, de M. Henry Bataille 147
Une femme passa..., de M. Romain Coolus 152
La Flamme, de M. Dario Niccodemi 154
1812, de M. Gabriel Nigond 156
La Beffa, de M. Sem Benelli, adaptation de M. Jean Richepin 159
Le Jeune Homme candide, de M. Pierre Mortier 162
Xantho chez les Courtisanes, de M. Jacques Richepin 162
Le Bois sacré, de M. Aman de Caillavet et Robert de Flers 164
La Bête, de M. Edmond Fleg 167
Le Phénix, de M. Raphaël Valabrègue 170
On purge Bébé, de M. Georges Feydeau 170
Le Costaud des Epinettes, de MM. Tristan Bernard et Alfred
Athis 172
Le Bois sacré, de M. Edmond Rostand 175
Coriolan, de William Shakespeare. Traduction de M. Paul
Sonniès 177
Le Songe d’un soir d’amour, de M. Henry Bataille 178
Mon Ami Teddy, de MM. André Rivoire et Lucien Besnard 180
Mademoiselle Molière, de MM. Louis Leloir et Gabriel Nigond 182
La Fille Elisa, de M. Jean Ajalbert (d’après Ed. de Goncourt) 185
Nono, de M. Sacha Guitry 185
Vidocq, Empereur des Policiers, de M. Emile Bergerat 186
Bigre! de M. Rip 189
La Fleur merveilleuse, de M. Miguel Zamacoïs 190
Bagnes d’Enfants, de MM. André de Lorde et Pierre Chaine
(d’après M. Ed. Quet) 193
Le Mariage de Mlle Beulemans, de MM. Frantz Fonson et
Fernand Wicheler 195
Un cas de Conscience, de MM. Paul Bourget et Serge Basset 197
Les Erinnyes, de Leconte de Lisle 197
Comme ils sont tous! de MM. Adolphe Aderer et Armand
Ephraïm 200
César Birotteau, de M. Emile Fabre (d’après H. de Balzac) 202
Ces Messieurs, de M. Georges Ancey 205
Le Marchand de bonheur, de M. Henry Kistemaeckers 207
Les Marionnettes, de M. Pierre Wolff 209
L’Aventurier, de M. Alfred Capus 212
Montmartre, de M. Pierre Frondaie 215
Le Carnaval des Enfants, de M. Saint-Georges-de-Bouhélier 218
Les Bleus de l’Amour, de M. Romain Coolus 220
Les Affranchis, de Mlle Marie Lenéru 222
La Fugitive, de M. André Picard 224
La Femme et le Pantin, de MM. Pierre Louys et Pierre
Frondaie 225
Les Noces de Panurge, de MM. Eugène et Edouard Adenis 227
Roméo et Juliette, de William Shakespeare. Traduction de M.
Louis de Gramont 229
Hedda Gabler, d’Henrik Ibsen. Traduction du comte Prozor 230
Le Vieil Homme, de M. Georges de Porto-Riche 232
Le Cadet de Coutras, de MM. Abel Hermant et Yves Mirande 235
Papa, de MM. de Flers et de Caillavet 237
Après Moi, de M. Henry Bernstein 239
L’Enfant de l’Amour, de M. Henry Bataille 241
L’Oiseau bleu, de M. Maurice Maeterlinck 244
L’Armée dans la Ville, de M. Jules Romains 247
Le Tribun, de M. Paul Bourget 249
La Gamine, de MM. Pierre Veber et Henri de Gorsse 252
Maman Colibri, de M. Henry Bataille 254
Rivoli, de M. René Fauchois 256
Marie-Victoire, de M. Edmond Guiraud 258
Le Goût du Vice, de M. Henri Lavedan 261
A la Nouvelle, de M. Jacques Dhur 264
Les Frères Karamazov, de MM. Jacques Copeau et Jean
Croué (d’après Dostoïevski) 267
Vers l’Amour, de Léon Gandillot 269
L’Apôtre, de M. Paul Hyacinthe-Loyson 270
Le Roi s’amuse, de Victor Hugo 272
Demain, de MM. Pataud et Olivier Garin 275
Les Transatlantiques, de MM. Abel Hermant et Franc-Nohain.
Musique de M. Claude Terrasse 277
Le Martyre de saint Sébastien, de M. Gabriele d’Annunzio 279
Cher Maître, de M. Fernand Vandérem 283
Monsieur Pickwick, de MM. Georges Duval et Robert Charvay 286
Hécube, de MM. Silvain et Jaubert 287

TABLE ALPHABÉTIQUE

ABCDEFGHIJKLMNOPQRSTUVWXYZ

A
Affranchis (les), de Mlle Lenéru, 222
Ange (un), de M. Alfred Capus, 114
Ange Gardien (l’), de M. André Picard, 130
Antar, de M. Chékri-Ganem, 142
Apôtre (l’), de M. Paul-Hyacinthe Loyson, 270
Après Moi, de M. Henri Bernstein, 239
Armée dans la Ville (l’), de M. Jules Romains, 247
Assommoir (l’), de MM. Busnach et Gatineau (d’après Emile
Zola), 66
Aventurier (l’), de M. Alfred Capus, 212
B
Bacchus, de Catulle-Mendès. Musique de Massenet, 46
Bagne d’Enfants, de MM. André de Lorde et Pierre Chaine
(d’après M. Edouard Quet), 193
Barricade (la), de M. Paul Bourget, 124
Beethoven, de M. René Fauchois, 24
Beffa (la), de Sem Benelli, adaptée par Jean Richepin, 159
Bête (la), de M. Edmond Fleg, 167
Bigote (la), de Jules Renard, 80
Bigre!, revue de M. Rip, 189
Bleus de l’Amour (les), de M. Romain Coolus, 220
Bois Sacré (le), de M. Edmond Rostand, 175
Bois Sacré (le), de MM. de Flers et de Caillavet, 164
Boubouroche, de M. Georges Courteline, 144
C
Cadet de Coutras (le), de MM. Abel Hermant et Yves
Mirande, 235
Carnaval des Enfants (le), de M. Saint-Georges de Bouhélier, 218
Cas de Conscience (un), de MM. Paul Bourget et Serge
Basset, 197
César Birotteau, de M. Emile Fabre (d’après H. de Balzac), 202
Chanteclerc, de M. Edmond Rostand, 135
Cher Maître, de M. Fernand Vandérem, 283
Circuit (le), de MM. Georges Feydeau et Francis de Croisset, 90
Clairière (la), de MM. Maurice Donnay et Lucien Descaves, 54
Comme ils sont tous, de MM. Adolphe Aderer et Armand
Ephraïm, 200
Comme les Feuilles..., de Giuseppe Giacosa. (Traduction de
Mlle Darsenne), 111
Connais-toi, de M. Paul Hervieu, 18
Coriolan, de William Shakespeare. (Traduction de M. Paul
Sonniès), 177
Costaud des Epinettes (le), de M. Tristan Bernard et Alfred
Athis, 172
D
Danseur Inconnu (le), de M. Tristan Bernard, 127
Demain, de M. P.-H. Raymond-Duval (d’après Joseph
Conrad), 59
Demain, de MM. Pataud et Olivier Garin, 275
E
Emigrants (les), de M. Charles-Henry Hirsch, 80
Enfant de l’Amour (l’), de M. Henry Bataille, 241
Erinnyes (les), de M. Leconte de Lisle, 197
Eventail de Lady Windermere (l’), d’Oscar Wilde, adaptée
par MM. Rémon et J. Chalençon, 64
Ex (l’), de M. Léon Gandillot, 15
F
Femme et le Pantin (la), de MM. Pierre Louys et Pierre
Frondaie, 225
Femme passa (une), de M. Romain Coolus, 152
Festin (le), suite de danses, 44
Fille Elisa (la), de M. J. Ajalbert (d’après Ed. de Goncourt), 185
Flamme (la), de M. Dario Niccodemi, 154
Fleur Merveilleuse (la), de M. Miguel Zamacoïs, 190
Frères Karamazow (les), de MM. Jacques Copeau et Jean
Croué (d’après Dostoïewski), 267
G
Gaby, de M. Georges Thurner, 140
Gamine (la), de M. Pierre Veber et Henry de Gorsse, 252
Glu (la), de M. Jean Richepin, 35
Goût du Vice (le), de M. Henri Lavedan, 261
Griffe (la), de M. Henry Bernstein, 83
H
Hedda Gabler, d’Henrik Ibsen (traduction du comte Prozor), 230
Hécube, de MM. Silvain et E. Jaubert, 287
I
Impératrice (l’), de M. Catulle Mendès, 26
Imprévu (l’), de M. Victor Margueritte, 144
Ivan-le-Terrible, de M. N. Rimsky-Korsakow, 51
J
Jarnac, de MM. Léon Hennique et Johannès Gravier, 98
J’en ai plein le dos de Margot, de MM. Georges Courteline et
Pierre Wolff, 11
Jeune Homme candide (le), de M. Pierre Mortier, 162
Juif Polonais (le), d’Erckmann-Chatrian, 11
L
Lauzun, de MM. Gustave Guiches et François de Nion, 56
Lysistrata, de M. Maurice Donnay, 92
M
Madame Margot, de MM. Emile Moreau et Clairville, 121
Mademoiselle Molière, de Louis Leloir et de M. Gabriel
Nigond, 182
Maison de Danses, de MM. Nozière et Charles Muller, 95
Maman Colibri, de M. Henry Bataille, 254
Marchand de bonheur (le), de M. Henry Kistemaeckers, 207
Marie-Victoire, de M. Edmond Guiraud, 258
Mariage de Mlle Beulemans (le), de MM. Frantz Fonson et
Fernand Wicheler, 195
Marionnettes (les), de M. Pierre Wolff, 209
Martyre de Saint-Sébastien (le), de M. Gabriele d’Annunzio, 279
Massière (la), de M. Jules Lemaître, 120
Messieurs (ces), de M. Georges Ancey, 205
1812, de M. Gabriel Nigond, 156
Mon Ami Teddy, de MM. André Rivoire et Lucien Besnard, 180
Monsieur au Camélia (le), de M. Jean Passier, 130
Montmartre, de M. Pierre Frondaie, 215
N
Noces de Panurge (les), de MM. Eugène et Edouard Adenis, 227
Nono, de M. Sacha Guitry, 185
Nouvelle (à la), de M. Jacques Dhur, 264
O
Œuvre Posthume, de M. Alfred Mortier, 64
Oiseau bleu (l’), de M. Maurice Maeterlinck, 244
On purge Bébé! de M. Georges Feydeau, 170
P
Papa, de MM. R. de Flers et A. de Caillavet, 237
Papillon, dit Lyonnais-le-Juste, de M. Louis Bénière, 77
Pavillon d’Armide (le), de M. A. Beners, 44
Peintre exigeant (le), de M. Tristan Bernard, 144
Petite Chocolatière (la), de M. Paul Gavault, 84
Phénix (le), de M. Raphaël Valabrègue, 170
Pickwick (Monsieur), de MM. Georges Duval et Robert
Charvay, 286
Pierre et Thérèse, de M. Marcel Prévost, 117
Possédés (les), de M. H.-R. Lenormand, 59
Prince Igor (le), de M. Borodine, 44
Procès de Jeanne d’Arc (le), de M. Emile Moreau, 105
R
Rampe (la), de M. Henry de Rothschild, 87
Refuge (le), de M. Dario Niccodemi, 32
Rencontre (la), de M. Pierre Berton, 21
Révolution Française (la), de MM. Arthur Bernède et Henri
Cain, 68
Risque (le), de M. Romain Coolus, 108
Rivoli, de M. René Fauchois, 256
Robe Rouge (la), de M. Brieux, 73
Roi Bombance (le), de M. F.-T. Marinetti, 30
Roi s’amuse (le), de Victor Hugo, 272
Roi s’ennuie (le), de MM. Gaston Sorbets et Abéric Cahuet, 77
Roméo et Juliette, de William Shakespeare. (Traduction de
Louis de Gramont), 229
Route d’Emeraude (la), de M. Jean Richepin (d’après Eugène
Demolder), 5
Roy sans Royaume (le), de M. Pierre Decourcelle, 70
S
Scandale (le), de M. Henry Bataille, 8
Sire, de M. Henri Lavedan, 101
Solange, de M. Adolphe Aderer, musique de M. Gaston
Salvayre, 41
Sonate à Kreutzer (la), de MM. Fernand Nozière et Alfred
Savoir (d’après Léon Tolstoï), 133
Songe d’un soir d’amour (le), de M. Henry Bataille, 178
Stradivarius (le), de M. Max Maurey, 37
Suzette, de M. Brieux, 75
T
Tenailles (les), de M. Paul Hervieu, 39
Transatlantiques (les), de MM. Abel Hermant et Franc-
Nohain, musique de M. Claude Terrasse, 276
Tribun (le), de M. Paul Bourget, 249
V
Veille du bonheur (la), de MM. François de Nion et J.
Buysieulx, 37
Vers l’Amour, de Léon Gandillot, 269
Veuve Joyeuse (la), de MM. Victor Léon et Léon Stein
(d’après H. Meilhac). Musique de Franz Léhar, 61
Vieil Aigle (Le), de M. Raoul Gunsbourg, 50
Vieil Homme (le), de M. Georges de Porto-Riche, 232
Vierge folle (la), de M. Henry Bataille, 147
Vidocq, Empereur des Policiers, de M. Emile Bergerat, 186
X
Xantho chez les Courtisanes, de M. Jacques Richepin, 162

IMP. KAPP, PARIS


Au lecteur.
L'orthographe d'origine a été conservée et n'a pas été
harmonisée, mais quelques erreurs clairement introduites par le
typographe ou à l'impression ont été corrigées. Ces corrections
sont soulignées en pointillés dans le texte. Placez le curseur sur le
mot pour voir l'orthographe originale.
Également, à quelques endroits la ponctuation a été corrigée.
*** END OF THE PROJECT GUTENBERG EBOOK DES SOIRS, DES
GENS, DES CHOSES... (1909-1911) ***

Updated editions will replace the previous one—the old editions will
be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States copyright in
these works, so the Foundation (and you!) can copy and distribute it
in the United States without permission and without paying
copyright royalties. Special rules, set forth in the General Terms of
Use part of this license, apply to copying and distributing Project
Gutenberg™ electronic works to protect the PROJECT GUTENBERG™
concept and trademark. Project Gutenberg is a registered trademark,
and may not be used if you charge for an eBook, except by following
the terms of the trademark license, including paying royalties for use
of the Project Gutenberg trademark. If you do not charge anything
for copies of this eBook, complying with the trademark license is
very easy. You may use this eBook for nearly any purpose such as
creation of derivative works, reports, performances and research.
Project Gutenberg eBooks may be modified and printed and given
away—you may do practically ANYTHING in the United States with
eBooks not protected by U.S. copyright law. Redistribution is subject
to the trademark license, especially commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG
LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the free


distribution of electronic works, by using or distributing this work (or
any other work associated in any way with the phrase “Project
Gutenberg”), you agree to comply with all the terms of the Full
Project Gutenberg™ License available with this file or online at
www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand, agree
to and accept all the terms of this license and intellectual property
(trademark/copyright) agreement. If you do not agree to abide by all
the terms of this agreement, you must cease using and return or
destroy all copies of Project Gutenberg™ electronic works in your
possession. If you paid a fee for obtaining a copy of or access to a
Project Gutenberg™ electronic work and you do not agree to be
bound by the terms of this agreement, you may obtain a refund
from the person or entity to whom you paid the fee as set forth in
paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only be


used on or associated in any way with an electronic work by people
who agree to be bound by the terms of this agreement. There are a
few things that you can do with most Project Gutenberg™ electronic
works even without complying with the full terms of this agreement.
See paragraph 1.C below. There are a lot of things you can do with
Project Gutenberg™ electronic works if you follow the terms of this
agreement and help preserve free future access to Project
Gutenberg™ electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright law
in the United States and you are located in the United States, we do
not claim a right to prevent you from copying, distributing,
performing, displaying or creating derivative works based on the
work as long as all references to Project Gutenberg are removed. Of
course, we hope that you will support the Project Gutenberg™
mission of promoting free access to electronic works by freely
sharing Project Gutenberg™ works in compliance with the terms of
this agreement for keeping the Project Gutenberg™ name associated
with the work. You can easily comply with the terms of this
agreement by keeping this work in the same format with its attached
full Project Gutenberg™ License when you share it without charge
with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the
terms of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.

1.E. Unless you have removed all references to Project Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project Gutenberg™
work (any work on which the phrase “Project Gutenberg” appears,
or with which the phrase “Project Gutenberg” is associated) is
accessed, displayed, performed, viewed, copied or distributed:
This eBook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this eBook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is derived


from texts not protected by U.S. copyright law (does not contain a
notice indicating that it is posted with permission of the copyright
holder), the work can be copied and distributed to anyone in the
United States without paying any fees or charges. If you are
redistributing or providing access to a work with the phrase “Project
Gutenberg” associated with or appearing on the work, you must
comply either with the requirements of paragraphs 1.E.1 through
1.E.7 or obtain permission for the use of the work and the Project
Gutenberg™ trademark as set forth in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is posted


with the permission of the copyright holder, your use and distribution
must comply with both paragraphs 1.E.1 through 1.E.7 and any
additional terms imposed by the copyright holder. Additional terms
will be linked to the Project Gutenberg™ License for all works posted
with the permission of the copyright holder found at the beginning
of this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files containing a
part of this work or any other work associated with Project
Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute this


electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1
with active links or immediate access to the full terms of the Project
Gutenberg™ License.

1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or
expense to the user, provide a copy, a means of exporting a copy, or
a means of obtaining a copy upon request, of the work in its original
“Plain Vanilla ASCII” or other form. Any alternate format must
include the full Project Gutenberg™ License as specified in
paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™ works
unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or providing


access to or distributing Project Gutenberg™ electronic works
provided that:

• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt
that s/he does not agree to the terms of the full Project
Gutenberg™ License. You must require such a user to return or
destroy all copies of the works possessed in a physical medium
and discontinue all use of and all access to other copies of
Project Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project Gutenberg™


electronic work or group of works on different terms than are set
forth in this agreement, you must obtain permission in writing from
the Project Gutenberg Literary Archive Foundation, the manager of
the Project Gutenberg™ trademark. Contact the Foundation as set
forth in Section 3 below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on, transcribe
and proofread works not protected by U.S. copyright law in creating
the Project Gutenberg™ collection. Despite these efforts, Project
Gutenberg™ electronic works, and the medium on which they may
be stored, may contain “Defects,” such as, but not limited to,
incomplete, inaccurate or corrupt data, transcription errors, a
copyright or other intellectual property infringement, a defective or
damaged disk or other medium, a computer virus, or computer
codes that damage or cannot be read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except for


the “Right of Replacement or Refund” described in paragraph 1.F.3,
the Project Gutenberg Literary Archive Foundation, the owner of the
Project Gutenberg™ trademark, and any other party distributing a
Project Gutenberg™ electronic work under this agreement, disclaim
all liability to you for damages, costs and expenses, including legal
fees. YOU AGREE THAT YOU HAVE NO REMEDIES FOR
NEGLIGENCE, STRICT LIABILITY, BREACH OF WARRANTY OR
BREACH OF CONTRACT EXCEPT THOSE PROVIDED IN PARAGRAPH
1.F.3. YOU AGREE THAT THE FOUNDATION, THE TRADEMARK
OWNER, AND ANY DISTRIBUTOR UNDER THIS AGREEMENT WILL
NOT BE LIABLE TO YOU FOR ACTUAL, DIRECT, INDIRECT,
CONSEQUENTIAL, PUNITIVE OR INCIDENTAL DAMAGES EVEN IF
YOU GIVE NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of receiving
it, you can receive a refund of the money (if any) you paid for it by
sending a written explanation to the person you received the work
from. If you received the work on a physical medium, you must
return the medium with your written explanation. The person or
entity that provided you with the defective work may elect to provide
a replacement copy in lieu of a refund. If you received the work
electronically, the person or entity providing it to you may choose to
give you a second opportunity to receive the work electronically in
lieu of a refund. If the second copy is also defective, you may
demand a refund in writing without further opportunities to fix the
problem.

1.F.4. Except for the limited right of replacement or refund set forth
in paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of damages.
If any disclaimer or limitation set forth in this agreement violates the
law of the state applicable to this agreement, the agreement shall be
interpreted to make the maximum disclaimer or limitation permitted
by the applicable state law. The invalidity or unenforceability of any
provision of this agreement shall not void the remaining provisions.

1.F.6. INDEMNITY - You agree to indemnify and hold the Foundation,


the trademark owner, any agent or employee of the Foundation,
anyone providing copies of Project Gutenberg™ electronic works in
accordance with this agreement, and any volunteers associated with
the production, promotion and distribution of Project Gutenberg™
electronic works, harmless from all liability, costs and expenses,
including legal fees, that arise directly or indirectly from any of the
following which you do or cause to occur: (a) distribution of this or
any Project Gutenberg™ work, (b) alteration, modification, or
additions or deletions to any Project Gutenberg™ work, and (c) any
Defect you cause.

Section 2. Information about the Mission


of Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new computers.
It exists because of the efforts of hundreds of volunteers and
donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project Gutenberg™’s
goals and ensuring that the Project Gutenberg™ collection will
remain freely available for generations to come. In 2001, the Project
Gutenberg Literary Archive Foundation was created to provide a
secure and permanent future for Project Gutenberg™ and future
generations. To learn more about the Project Gutenberg Literary
Archive Foundation and how your efforts and donations can help,
see Sections 3 and 4 and the Foundation information page at
www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-profit
501(c)(3) educational corporation organized under the laws of the
state of Mississippi and granted tax exempt status by the Internal
Revenue Service. The Foundation’s EIN or federal tax identification
number is 64-6221541. Contributions to the Project Gutenberg
Literary Archive Foundation are tax deductible to the full extent
permitted by U.S. federal laws and your state’s laws.

The Foundation’s business office is located at 809 North 1500 West,


Salt Lake City, UT 84116, (801) 596-1887. Email contact links and up
to date contact information can be found at the Foundation’s website
and official page at www.gutenberg.org/contact

Section 4. Information about Donations to


the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission of
increasing the number of public domain and licensed works that can
be freely distributed in machine-readable form accessible by the
widest array of equipment including outdated equipment. Many
small donations ($1 to $5,000) are particularly important to
maintaining tax exempt status with the IRS.

The Foundation is committed to complying with the laws regulating


charities and charitable donations in all 50 states of the United
States. Compliance requirements are not uniform and it takes a
considerable effort, much paperwork and many fees to meet and
keep up with these requirements. We do not solicit donations in
locations where we have not received written confirmation of
compliance. To SEND DONATIONS or determine the status of
compliance for any particular state visit www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states where


we have not met the solicitation requirements, we know of no
prohibition against accepting unsolicited donations from donors in
such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot make


any statements concerning tax treatment of donations received from
outside the United States. U.S. laws alone swamp our small staff.

Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.

Section 5. General Information About


Project Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could be
freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose network of
volunteer support.
Project Gutenberg™ eBooks are often created from several printed
editions, all of which are confirmed as not protected by copyright in
the U.S. unless a copyright notice is included. Thus, we do not
necessarily keep eBooks in compliance with any particular paper
edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg Literary
Archive Foundation, how to help produce our new eBooks, and how
to subscribe to our email newsletter to hear about new eBooks.
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

You might also like