HTML & XHTML: The Definitive Guide, 6/e (Paperback)
暫譯: HTML 與 XHTML:權威指南,第 6 版 (平裝本)

Chuck Musciano, Bill Kennedy

  • 出版商: O'Reilly
  • 出版日期: 2006-11-21
  • 售價: $1,880
  • 貴賓價: 9.5$1,786
  • 語言: 英文
  • 頁數: 680
  • 裝訂: Paperback
  • ISBN: 0596527322
  • ISBN-13: 9780596527327
  • 相關分類: HTML
  • 已過版

買這商品的人也買了...

相關主題

商品描述

Description

"...lucid, in-depth descriptions of the behavior of every HTML tag on every major browser and platform, plus enough dry humor to make the book a pleasure to read."
--Edward Mendelson, PC Magazine

"When they say 'definitive' they're not kidding."
--Linda Roeder, About.com

Put everthing you need to know about HTML & XHTML at your fingertips. For nearly a decade, hundreds of thousands of web developers have turned to HTML & XHTML: The Definitive Guide to master standards-based web development. Truly a definitive guide, the book combines a unique balance of tutorial material with a comprehensive reference that even the most experienced web professionals keep close at hand. From basic syntax and semantics to guidelines aimed at helping you develop your own distinctive style, this classic is all you need to become fluent in the language of web design.

The new sixth edition guides you through every element of HTML and XHTML in detail, explaining how each element works and how it interacts with other elements. You'll also find detailed discussions of CSS (Cascading Style Sheets), which is intricately related to web page development. The most all-inclusive, up-to-date book on these languages available, this edition covers HTML 4.01, XHTML 1.0, and CSS2, with a preview of the upcoming XHTML2 and CSS3. Other topics include the newer initiatives in XHTML (XForms, XFrames, and modularization) and the essentials of XML for advanced readers. You'll learn how to:

  • Use style sheets to control your document's appearance
  • Work with programmatically generated HTML
  • Create tables, both simple and complex
  • Use frames to coordinate sets of documents
  • Design and build interactive forms and dynamic documents
  • Insert images, sound files, video, Java applets, and JavaScript programs
  • Create documents that look good on a variety of browsers

The authors apply a natural learning approach that uses straightforward language and plenty of examples. Throughout the book, they offer suggestions for style and composition to help you decide how to best use HTML and XHTML to accomplish a variety of tasks. You'll learn what works and what doesn't, and what makes sense to those who view your web pages and what might be confusing. Written for anyone who wants to learn the language of the Web--from casual users to the full-time design professionals--this is the single most important book on HTML and XHTML you can own.

Bill Kennedy is chief technical officer of MobileRobots, Inc. When not hacking new HTML pages or writing about them, "Dr. Bill" (Ph.D. in biophysics from Loyola University of Chicago) is out promoting the company's line of mobile, autonomous robots that can be used for artificial intelligence, fuzzy logic research, and education.

Chuck Musciano began his career as a compiler writer and crafter of tools at Harris Corporations' Advanced Technology Group and is now a manager of Unix Systems in Harris' Corporate Data Center.

 

Table of Contents

Preface

1. HTML, XHTML, and the World Wide Web

      1.1 The Internet

      1.2 Talking the Internet Talk

      1.3 HTML and XHTML: What They Are

      1.4 HTML and XHTML: What They Aren't

      1.5 Standards and Extensions

      1.6 Tools for the Web Designer

2. Quick Start

      2.1 Writing Tools

      2.2 A First HTML Document

      2.3 Embedded Tags

      2.4 HTML Skeleton

      2.5 The Flesh on an HTML or XHTML Document

      2.6 Text

      2.7 Hyperlinks

      2.8 Images Are Special

      2.9 Lists, Searchable Documents, and Forms

      2.10 Tables

      2.11 Frames

      2.12 Stylesheets and JavaScript

      2.13 Forging Ahead

3. Anatomy of an HTML Document

      3.1 Appearances Can Deceive

      3.2 Structure of an HTML Document

      3.3 Tags and Attributes

      3.4 Well-Formed Documents and XHTML

      3.5 Document Content

      3.6 HTML/XHTML Document Elements

      3.7 The Document Header

      3.8 The Document Body

      3.9 Editorial Markup

      3.10 The <bdo> Tag

4. Text Basics

      4.1 Divisions and Paragraphs

      4.2 Headings

      4.3 Changing Text Appearance and Meaning

      4.4 Content-Based Style Tags

      4.5 Physical Style Tags

      4.6 Precise Spacing and Layout

      4.7 Block Quotes

      4.8 Addresses

      4.9 Special Character Encoding

      4.10 HTML's Obsolete Expanded Font Handling

5. Rules, Images, and Multimedia

      5.1 Horizontal Rules

      5.2 Inserting Images in Your Documents

      5.3 Document Colors and Background Images

      5.4 Background Audio

      5.5 Animated Text

      5.6 Other Multimedia Content

6. Links and Webs

      6.1 Hypertext Basics

      6.2 Referencing Documents: The URL

      6.3 Creating Hyperlinks

      6.4 Creating Effective Links

      6.5 Mouse-Sensitive Images

      6.6 Creating Searchable Documents

      6.7 Relationships

      6.8 Supporting Document Automation

7. Formatted Lists

      7.1 Unordered Lists

      7.2 Ordered Lists

      7.3 The <li> Tag

      7.4 Nesting Lists

      7.5 Definition Lists

      7.6 Appropriate List Usage

      7.7 Directory Lists

      7.8 Menu Lists

8. Cascading Style Sheets

      8.1 The Elements of Styles

      8.2 Style Syntax

      8.3 Style Classes

      8.4 Style Properties

      8.5 Tagless Styles: The <span> Tag

      8.6 Applying Styles to Documents

9. Forms

      9.1 Form Fundamentals

      9.2 The <form> Tag

      9.3 A Simple Form Example

      9.4 Using Email to Collect Form Data

      9.5 The <input> Tag

      9.6 The <button> Tag

      9.7 Multiline Text Areas

      9.8 Multiple-Choice Elements

      9.9 General Form-Control Attributes

      9.10 Labeling and Grouping Form Elements

      9.11 Creating Effective Forms

      9.12 Forms Programming

10. Tables

      10.1 The Standard Table Model

      10.2 Basic Table Tags

      10.3 Advanced Table Tags

      10.4 Beyond Ordinary Tables

11. Frames

      11.1 An Overview of Frames

      11.2 Frame Tags

      11.3 Frame Layout

      11.4 Frame Contents

      11.5 The <noframes> Tag

      11.6 Inline Frames

      11.7 Named Frame or Window Targets

      11.8 XFrames

12. Executable Content

      12.1 Applets and Objects

      12.2 Embedded Content

      12.3 JavaScript

      12.4 JavaScript Stylesheets (Antiquated)

13. Dynamic Documents

      13.1 An Overview of Dynamic Documents

      13.2 Client-Pull Documents

      13.3 Server-Push Documents

14. Mobile Devices

      14.1 The Mobile Web

      14.2 Device Considerations

      14.3 XHTML Basic

      14.4 Effective Mobile Web Design

15. XML

      15.1 Languages and Metalanguages

      15.2 Documents and DTDs

      15.3 Understanding XML DTDs

      15.4 Element Grammar

      15.5 Element Attributes

      15.6 Conditional Sections

      15.7 Building an XML DTD

      15.8 Using XML

16. XHTML

      16.1 Why XHTML?

      16.2 Creating XHTML Documents

      16.3 HTML Versus XHTML

      16.4 XHTML 1.1

      16.5 Should You Use XHTML?

17. Tips, Tricks, and Hacks

      17.1 Top of the Tips

      17.2 Cleaning Up After Your HTML Editor

      17.3 Tricks with Tables

      17.4 Tricks with Windows and Frames

A. HTML Grammar

B. HTML/XHTML Tag Quick Reference

C. Cascading Style Sheet Properties Quick Reference

D. The HTML 4.01 DTD

E. The XHTML 1.0 DTD

F. Character Entities

G. Color Names and Values

H. Netscape Layout Extensions

Index

 

商品描述(中文翻譯)

**描述**

「……對每個主要瀏覽器和平台上每個 HTML 標籤行為的清晰、深入描述,加上足夠的冷幽默,使這本書成為愉快的閱讀。」
--Edward Mendelson,《PC Magazine》

「當他們說『權威』時,他們不是在開玩笑。」
--Linda Roeder,《About.com》

將有關 HTML 和 XHTML 的所有知識盡在掌握之中。近十年來,數十萬名網頁開發者都依賴《HTML & XHTML: The Definitive Guide》來掌握基於標準的網頁開發。這本書確實是一本權威指南,結合了獨特的教學材料與全面的參考資料,即使是最有經驗的網頁專業人士也會隨身攜帶。從基本語法和語義到幫助您發展自己獨特風格的指導方針,這本經典書籍是您流利掌握網頁設計語言所需的一切。

新第六版詳細指導您了解 HTML 和 XHTML 的每個元素,解釋每個元素的工作原理及其與其他元素的互動。您還會發現有關 CSS(層疊樣式表)的詳細討論,這與網頁開發密切相關。這是目前最全面、最新的這些語言的書籍,本版涵蓋 HTML 4.01、XHTML 1.0 和 CSS2,並預覽即將推出的 XHTML2 和 CSS3。其他主題包括 XHTML 的新倡議(XForms、XFrames 和模組化)以及進階讀者所需的 XML 基本知識。您將學會如何:

- 使用樣式表控制文檔的外觀
- 處理程式生成的 HTML
- 創建簡單和複雜的表格
- 使用框架協調文檔集
- 設計和構建互動表單和動態文檔
- 插入圖像、音頻檔案、視頻、Java applets 和 JavaScript 程式
- 創建在各種瀏覽器上看起來良好的文檔

作者採用自然學習的方法,使用簡單明瞭的語言和大量範例。在整本書中,他們提供風格和組成的建議,幫助您決定如何最佳使用 HTML 和 XHTML 來完成各種任務。您將學會什麼有效,什麼無效,以及什麼對查看您網頁的人來說是有意義的,什麼可能會造成困惑。這本書是為任何想學習網路語言的人而寫的——從休閒用戶到全職設計專業人士——這是您能擁有的最重要的 HTML 和 XHTML 書籍。

**比爾·肯尼迪**是 MobileRobots, Inc. 的首席技術官。當不在編寫新的 HTML 頁面或撰寫相關內容時,「比爾博士」(芝加哥洛約拉大學生物物理學博士)正在推廣該公司的一系列可用於人工智慧、模糊邏輯研究和教育的移動自主機器人。

**查克·穆斯基亞諾**的職業生涯始於 Harris Corporations 的高級技術組的編譯器編寫和工具製作,現在是 Harris 企業數據中心的 Unix 系統經理。

**目錄**

**前言**

**1. HTML、XHTML 與萬維網**
      1.1 網際網路
      1.2 網際網路的語言
      1.3 HTML 和 XHTML:它們是什麼
      1.4 HTML 和 XHTML:它們不是什麼
      1.5 標準與擴展
      1.6 網頁設計工具

**2. 快速入門**
      2.1 編寫工具
      2.2 第一個 HTML 文檔
      2.3 嵌入標籤
      2.4 HTML 骨架
      2.5 HTML 或 XHTML 文檔的內容
      2.6 文字
      2.7 超連結
      2.8 圖像的特殊性
      2.9 列表、可搜尋文檔和表單
      2.10 表格
      2.11 框架
      2.12 樣式表和 JavaScript
      2.13 繼續前進

**3. HTML 文檔的結構**
      3.1 外觀可能會誤導
      3.2 HTML 文檔的結構
      3.3 標籤和屬性
      3.4 合格的文檔和 XHTML
      3.5 文檔內容
      3.6 HTML/XHTML 文檔元素
      3.7 文檔標頭
      3.8 文檔主體
      3.9 編輯標記
      3.10 <bdo> 標籤

**4. 文字基礎**
      4.1 區域和段落
      4.2 標題
      4.3 改變文字外觀和意義
      4.4 基於內容的樣式標籤
      4.5 物理樣式標籤
      4.6 精確的間距和佈局
      4.7 區塊引用
      4.8 地址
      4.9 特殊字符編碼
      4.10 HTML 的過時擴展字體處理

**5. 規則、圖像和多媒體**
      5.1 水平規則
      5.2 在文檔中插入圖像
      5.3 文檔顏色和背景圖像
      5.4 背景音頻
      5.5 動畫文字
      5.6 其他多媒體內容

**6. 連結與網絡**
      6.1 超文本基礎
      6.2 參考文檔:URL
      6.3 創建超連結
      6.4 創建有效的連結
      6.5 鼠標敏感圖像
      6.6 創建可搜尋的文檔
      6.7 關係
      6.8 支持文檔自動化

**7. 格式化列表**
      7.1 無序列表
      7.2 有序列表
      7.3 <li> 標籤
      7.4 嵌套列表
      7.5 定義列表
      7.6 適當的列表使用
      7.7 目錄列表
      7.8 菜單列表

**8. 層疊樣式表**
      8.1 樣式的元素
      8.2 樣式語法
      8.3 樣式類別
      8.4 樣式屬性
      8.5 無標籤樣式:<span> 標籤
      8.6 將樣式應用於文檔

**9. 表單**
      9.1 表單基礎
      9.2 <form> 標籤
      9.3 簡單的表單範例
      9.4 使用電子郵件收集表單數據
      9.5 <input> 標籤
      9.6 <button> 標籤
      9.7 多行文本區域
      9.8 多選元素
      9.9 一般表單控制屬性
      9.10 標記和分組表單元素
      9.11 創建有效的表單
      9.12 表單編程

**10. 表格**
      10.1 標準表格模型
      10.2 基本表格標籤
      10.3 進階表格標籤
      10.4 超越普通表格

**11. 框架**
      11.1 框架概述
      11.2 框架標籤
      11.3 框架佈局
      11.4 框架內容
      11.5 <noframes> 標籤
      11.6 行內框架
      11.7 命名框架或窗口目標
      11.8 XFrames

**12. 可執行內容**
      12.1 Applets 和物件
      12.2 嵌入內容
      12.3 JavaScript
      12.4 JavaScript 樣式表(過時)

**13. 動態文檔**
      13.1 動態文檔概述
      13.2 客戶端拉取文檔
      13.3 伺服器推送文檔

**14. 行動裝置**
      14.1 行動網路
      14.2 裝置考量
      14.3 XHTML 基本
      14.4 有效的行動網頁設計

**15. XML**
      15.1 語言和元語言
      15.2 文檔和 DTD
      15.3 理解 XML DTD
      15.4 元素語法
      15.5 元素屬性
      15.6 條件區段
      15.7 建立 XML DTD
      15.8 使用 XML

**16. XHTML**
      16.1 為什麼選擇 XHTML?