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

XHTML, HTML CSS 5th

795 462 0

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

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

THÔNG TIN TÀI LIỆU

Cấu trúc

  • HTML, XHTML, and CSS Bible 5th Edition

    • About the Author

    • Credits

    • Acknowledgments

    • Contents at a Glance

    • Contents

    • Introduction

      • A Brief History of the Internet and the World Wide Web

      • What This Book Covers

      • User Agent (Browser) Coverage

      • Web 2.0

      • Terminology

      • Who Should Read This Book?

      • This Is Not a Web Design Book

      • What Is Contained in This Book?

      • How to Use This Book

      • Conventions and Features

      • Companion Website

    • Part I: Creating Content with HTML

      • Chapter 1: What Is a Markup Language?

        • What Are We Doing Here?

        • Understanding Hypertext

        • Understanding Markup Instructions

        • Understanding Markup Language

        • Summary

      • Chapter 2: HTML Values and Units

        • Basic Tag Attribute Format

        • Common Attributes

        • Text and Comments

        • Uniform Resource Indicators

        • Language and International Options

        • Summary

      • Chapter 3: What Goes into a Web Document?

        • Specifying Document Type

        • Overall Document Structure: HTML, Head, and Body

        • Style Definitions

        • Block Elements: Markup for Paragraphs and Other Blocks of Content

        • Inline Elements: Markup for Characters

        • Special Characters (Entities)

        • Organizational Elements

        • Linking to Other Pages

        • Images

        • Comments

        • Scripts

        • Putting It All Together

        • Summary

      • Chapter 4: The HEAD Elements

        • Specifying the Document Title

        • Providing Information to Search Engines

        • Setting the Default Path

        • Script Sections

        • Style Sections

        • Specifying Profiles

        • Background Color and Background Images

        • Summary

      • Chapter 5: Text Structuring Essentials

        • Formatting Paragraphs

        • Line Breaks

        • Divisions

        • Rules

        • Block Quotes

        • Preformatted Text

        • Summary

      • Chapter 6: Character Formatting Essentials

        • Methods of Text Control

        • Bold and Italic Text

        • Use of Emphasis Instead of Italics

        • Monospace (Typewriter) Fonts

        • Superscripts and Subscripts

        • Abbreviations

        • Marking Editorial Insertions and Deletions

        • Grouping Inline Elements with the Span Tag

        • Summary

      • Chapter 7: Lists

        • Understanding Lists

        • Ordered (Numbered) Lists

        • Unordered (Bulleted) Lists

        • Definition Lists

        • Nested Lists

        • Summary

      • Chapter 8: Links

        • What’s in a Link?

        • Linking to a Web Page

        • Absolute versus Relative Links

        • Link Targets

        • Link Titles

        • Keyboard Shortcuts and Tab Order

        • Creating an Anchor

        • Choosing Link Colors

        • Link Destination Details

        • The Link Tag

        • Summary

      • Chapter 9: Tables

        • Parts of an HTML Table

        • Table Width and Alignment

        • Cell Spacing and Padding

        • Borders and Rules

        • Rows

        • Cells

        • Table Captions

        • Row Groups — Header, Body, and Footer

        • Background Colors

        • Spanning Columns and Rows

        • Grouping Columns

        • Formatting with Tables

        • Summary

      • Chapter 10: Frames

        • Frames Overview

        • Framesets and Frame Documents

        • Targeting Links to Frames

        • Nested Framesets

        • Inline Frames

        • Summary

      • Chapter 11: Forms

        • Understanding Forms

        • Inserting a Form

        • Field Labels

        • Text Input Boxes

        • Password Input Boxes

        • Radio Buttons

        • Check Boxes

        • List Boxes

        • Large Text Input

        • Hidden Fields

        • Buttons

        • Images

        • File Fields

        • Submit and Reset Buttons

        • Tab Order and Keyboard Shortcuts

        • Preventing Changes

        • Fieldsets and Legends

        • Using Events with Forms

        • Form Scripts and Script Services

        • Summary

      • Chapter 12: Colors and Images

        • Web Color Basics

        • Other Means to Specify Colors

        • The Evolution of Color on the Web

        • Using Proper Means to Specify Colors

        • Image Formats for the Web

        • Creating Graphics

        • Inserting an Image

        • Image Alignment

        • Specifying Text to Display for Nongraphical Browsers

        • Sizing an Image

        • Image Borders

        • Image Maps

        • Summary

      • Chapter 13: Multimedia

        • Animated Images

        • Animation and Video Formats, Plug-ins, and Players

        • Embedding Media via the Object Tag

        • Embedding a Windows Media Player Using <object>

        • Embedding YouTube Videos

        • Adding Sound to Web Pages

        • Creating Multimedia Files

        • A Final Word About Multimedia

        • Summary

      • Chapter 14: Special Characters

        • Understanding Character Encodings

        • Special Characters

        • En and Em Spaces and Dashes

        • Copyright and Trademark Symbols

        • Currency Symbols

        • ‘‘Real’’ Quotation Marks

        • Arrows

        • Accented Characters

        • Greek and Mathematical Characters

        • Other Useful Entities

        • Summary

      • Chapter 15: Internationalization and Localization

        • Internationalization and Localization

        • Translating Your Web Site

        • Understanding Unicode

        • Summary

      • Chapter 16: Scripts

        • Client-Side versus Server-Side Scripting

        • Setting the Default Scripting Language

        • Including a Script

        • Calling an External Script

        • Triggering Scripts with Events

        • Hiding Scripts from Older Browsers

        • Summary

      • Chapter 17: Dynamic HTML

        • The Need for DHTML

        • How DHTML Works

        • The Document Object Model

        • The JavaScript DOM

        • Using Event Handlers

        • Accessing an Element by Its ID

        • Cross-Browser Compatibility Issues

        • DHTML Examples

        • Form Automation: Check boxes

        • Summary

      • Chapter 18: The Future of HTML: HTML5

        • More Publishing and Layout Features

        • Accessible Multimedia

        • Changes: Elements and Attributes

        • Summary

    • Part II: HTML Tools and Variants

      • Chapter 19: Web Development Software

        • Text-Oriented Editors

        • WYSIWYG HTML Editors

        • Other Tools

        • Summary

      • Chapter 20: Publishing Your Site

        • Introducing FTP

        • FTP Clients

        • Notable FTP Clients

        • Principles of Web Server File Organization

        • Summary

      • Chapter 21: An Introduction To XML

        • XML Basics

        • XML Syntax

        • Working with Document Type Definitions

        • Introducing XML Schemas

        • Working with Schemas

        • Using XML

        • Summary

      • Chapter 22: Creating Mobile Documents

        • Understanding the Evolution of the Mobile Web

        • XHTML Basic 1.1

        • Mobile Web Development Tools

        • Summary

      • Chapter 23: Tidying and Validating Your Documents

        • Tidying Your HTML Code

        • Validating Your Code

        • Additional Testing and Validation

        • Summary

      • Chapter 24: HTML Tips and Tricks

        • Preloading Images

        • Controlling Text Breaks in Table Cells

        • Stretching Title Bars

        • Simulating Newspaper Columns

        • Including Image Size for Fast Display

        • Protecting E-mail Addresses

        • Automating Forms

        • Modifying the User Agent Environment

        • Summary

    • Part III: Controlling Presentation with CSS

      • Chapter 25: CSS Basics

        • The Purpose of Styles

        • Styles and HTML

        • CSS Levels 1, 2, and 3

        • Defining Styles

        • Cascading Styles

        • Summary

      • Chapter 26: Style Definitions

        • The Style Definition Format

        • Understanding Selectors

        • Understanding Style Inheritance

        • Using Pseudo-Classes

        • Pseudo-Elements

        • Shorthand Expressions

        • Summary

      • Chapter 27: CSS Values and Units

        • General Property Value Rules

        • Property Value Metrics

        • Summary

      • Chapter 28: CSS Inheritance and Cascade

        • Inheritance

        • Cascade

        • Specificity

        • Summary

      • Chapter 29: Font Properties

        • Understanding Fonts

        • Font Types

        • Font Sizing

        • Font Styling

        • Line Spacing

        • Embedding Fonts in a Document

        • Summary

      • Chapter 30: Text Formatting

        • Aligning Text

        • Indenting Text

        • Controlling White Space Within Text

        • Controlling Letter and Word Spacing

        • Specifying Capitalization

        • Using Text Decorations

        • Autogenerated Text

        • Using CSS Table Properties

        • Controlling Table Attributes

        • Table Layout

        • Aligning and Positioning Captions

        • Summary

      • Chapter 31: CSS Lists

        • An Overview of Lists

        • CSS Lists — Any Element Will Do

        • List Style Type

        • Positioning of Markers

        • Using Images as List Markers

        • Summary

      • Chapter 32: Padding, Margins, and Borders

        • The CSS Box Formatting Model

        • Element Padding

        • Element Borders

        • Element Margins

        • Dynamic Outlines

        • Summary

      • Chapter 33: Colors and Backgrounds

        • Element Colors

        • Background Images

        • Summary

      • Chapter 34: CSS Layouts

        • Understanding CSS Positioning

        • Specifying the Element Position

        • Floating Elements to the Left or Right

        • Defining an Element’s Width and Height

        • Stacking Elements in Layers

        • Controlling Element Visibility

        • Summary

      • Chapter 35: Pseudo-Elements and Generated Content

        • The Content Property

        • Pseudo-Elements

        • Quotation Marks

        • Numbering Elements Automatically

        • Summary

      • Chapter 36: Dynamic HTML with CSS

        • Accessing CSS Properties with JavaScript

        • Useful CSS Manipulation

        • Summary

      • Chapter 37: Media Styles and Defining Documents for Printing

        • Understanding CSS Media Types

        • Setting Up Documents for Printing

        • Creating a Multimedia Document

        • Summary

      • Chapter 38: The Future of CSS: CSS3

        • Just Better

        • Modularity

        • Using CSS3 Properties Today

        • More Control over Selections

        • Revisiting the Brass Ring of CSS: Rounded Corners

        • Summary

    • Part IV: Additional CSS Tools

      • Chapter 39: User Interface Styles

        • Changing the Cursor

        • User Interface Colors

        • User Interface Fonts

        • Summary

      • Chapter 40: Testing and Validating CSS

        • Testing Syntax As You Create Styles

        • A Word About Formatting

        • Validating CSS

        • Firefox Add-ons for CSS Editing

        • Summary

      • Chapter 41: CSS Tips and Tricks

        • Hanging Indents

        • Expanding Buttons

        • Pull Quotes

        • Tabbed Menus

        • Summary

    • Appendix A: XHTML Element Quick Reference

    • Appendix B: HTML Special Characters Quick Reference

    • Appandix D: CSS 2.1 Selectors Quick Reference

    • Appendix E: Pseudo-Elements and Pseudo-Classes Quick Reference

    • Index

Nội dung

Companion Web Site Companion Web Site The first step to any Web document is to build a strong foundation This comprehensive book focuses on the essential building blocks of the Web: HyperText Markup Language (HTML), extensible HTML (XHTML), and Cascading Style Sheets (CSS) You’ll learn basic scripting and coding standards; how to use tags, tables, forms, and links; the best ways to test and validate pages; and many more techniques that help you take full advantage of these essential tools • Explore the basics of HTML such as tags, attributes, and how to structure content to create specialized document formatting • Learn how multimedia and scripting can be used to make your content dynamic • Author, validate, and troubleshoot your coding and documents • Enable content for multiple devices—from the standard PC browser to various mobile devices • Understand values, lists, colors, fonts, and other CSS metrics and formatting basics • Get up to speed on advanced document formatting Companion Web Site Code samples and examples from the book, as well as extra material, can be found at www.wiley.com/go/ htmlbible5e Steven M Schafer has broad experience in technology and is a veteran of publishing He’s been in and around technology as a programmer, an editor, a product specialist, a technical manager, and a Web developer Steve employs both open-source and proprietary technologies and has worked with the Internet since the mid-1990s He can be reached by e-mail at sschafer@synergy-tech.com HTML, XHTML, and CSS Master the essential building blocks of the Web Fifth Edition www.wiley.com/go/ htmlbible5e Shelving Category: COMPUTERS / Programming Languages / HTML, SGML Reader Level: Beginning to Advanced $39.99 USA $47.99 Canada Schafer Steven M Schafer HTML, XHTML, and CSS Fifth Edition Master HTML 4.01, CSS 2.1, and XHTML 1.1 Construct static and dynamic Web pages Build for a mobile and social networking world The book you need to succeed! HTML, XHTML, and CSS Bible Fifth Edition HTML, XHTML, AND CSS BIBLE Fifth Edition Steven M Schafer Wiley Publishing, Inc HTML, XHTML, and CSS Bible, Fifth Edition Published by Wiley Publishing, Inc 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2010 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-0-470-52396-4 Manufactured in the United States of America 10 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 permitted 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 Permissions 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 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 without 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 organization or Web site 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 Web site may provide or recommendations it may make Further, readers should be aware that Internet Web sites 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 United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002 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: 2009940878 Trademarks: Wiley and the Wiley logo 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 For my good friend RD, for being just that Also for Mother, whose faith in her son never wavered We all love and miss you About the Author Steven M Schafer is a broad technologist and a veteran of publishing He’s been in and around technology as a programmer, an editor, a product specialist, a technical manager, and a Web developer Steve employs both open-source and proprietary technologies and has worked with the Internet since the mid-1990s He can be reached by e-mail at sschafer@synergy-tech.com ... HTML, XHTML, and CSS Bible Fifth Edition HTML, XHTML, AND CSS BIBLE Fifth Edition Steven M Schafer Wiley Publishing, Inc HTML, XHTML, and CSS Bible, Fifth Edition Published... Localization .247 16: Scripts 261 17: Dynamic HTML 271 18: The Future of HTML: HTML5 297 Part II: HTML Tools and Variants 307 Chapter... 491 CSS Layouts 503 Pseudo-Elements and Generated Content 525 Dynamic HTML with CSS 539 Media Styles and Defining Documents for Printing 553 The Future of CSS:

Ngày đăng: 26/03/2019, 11:03