HTML: The Complete Reference

HTML: The Complete Reference

Paperback

$33.32 $39.99 Save 17% Current price is $33.32, Original price is $39.99. You Save 17%. View All Available Formats & Editions

Temporarily Out of Stock Online

Eligible for FREE SHIPPING

Overview

HTML: The Complete Reference by Thomas A. Powell, Arlette Crosland

A comprehensive,all-in-one reference for all levels of HTML developers. This bestselling book combines theory and practice,and includes extensive examples.

The Ultimate HTML Resource!

Build and design dynamic,fully-functional Web sites with this comprehensive guide. You'll learn exactly how to create compelling,cross-platform Web pages,understand the functions of the individual tags,and learn which tags to use for which environment. All of the practical examples included are updated to work with Netscape Navigator 6 and Internet Explorer 5. 5. You'll also get an introduction to server- and client-side programming using JavaScript,Java,ActiveX,plug-ins,and popular server-side technologies such as ColdFusion,ASP,and CGI. Preview more advanced topics,including the DOM,XML,and XSL. Straightforward,fact-packed,and instructive,this is your one-stop guide to using HTML!

Inside,you'll find out how to:

  • Master simple to complex Web page design using step-by-step tutorials
  • Get the facts on WebTV,Netscape Navigator,and Internet Explorer
  • Build client interactivity easily with Dynamic HTML (DHTML)
  • Describe,deliver,and exchange structured data between multiple applications with Extensible Markup Language (XML)
  • Control color,font,and layout with Cascading Style Sheets (CSS),TGI,and Cold Fusion
  • Use forms and the advanced scripting potential of Active Server Pages (ASP) to create complete applications that work on the Web
  • Maximize your productivity with a 400-page reference section including HTML tags,color/HEX values,color names,fonts,and style sheets

Product Details

ISBN-13: 9780078823978
Publisher: Osborne/McGraw-Hill
Publication date: 03/28/1999
Pages: 1073
Product dimensions: 7.43(w) x 9.06(h) x 2.13(d)

Read an Excerpt

Chapter 1: Introduction to HTML and XHTML

...Myths about HTML and XHTML

HTML is a powerful technology, but many misconceptions exist about it. Understanding what HTML is not will certainly help page developers avoid common mistakes.

Myth: HTML Is a WYSIWYG Design Language

HTML isn't a specific, screen- or printer-precise formatting language like PostScript. Many people struggle with HTML on a daily basis, trying to create perfect layouts by using HTML elements inappropriately or by using images to make up for HTML's lack of screen and font-handling features. Other technologies, such as Cascading Style Sheets (CSS), are far better than HTML for handling presentation issues; their use returns HTML back to its structural roots.

Myth: HTML Is a Programming Language

Many people think that making HTML pages is similar to programming. However, HTML is unlike programming in that it does not specify logic. It specifies the structure and often the layout of a document. With the introduction of scripting languages such as JavaScript, however, the concept of dynamic HTML (DHTML) is becoming more and more popular and is used to create highly interactive Web pages. Simply put, DHTML provides scripting languages with the capability to modify HTML elements and their content before, and possibly after, the page has been loaded.

DHTML blurs the lines between HTML as a layout language and HTML as a programming environment. However, the line should be distinct, because HTML is not a programming language. Heavily intermixing code with HTML markup in the ad-hoc manner that many DHTML authors do is far worse than trying to use HTML as a WYSIWYG markuplanguage. Programming logic can be cleanly separated in HTML in the form of script code, as discussed in Chapter 13. Unfortunately, if this separation isn't heeded, the page maintenance nightmare that results from tightly binding programming logic to content will dwarf the problems caused by misuse of HTML code for presentation purposes.

Myth: HTML Is Complete

HTML is not finished. The language does not provide all the facilities it should, even as a logical markup language. However, work is presently focused on implementing the current HTML standards under a new language, called eXtensible Markup Language (XML). Future versions of HTML will almost certainly be defined as a subset of XML. Theoretically, this is a wise decision, but the ubiquitous nature of HTML and its huge installed base suggest that considering how to extend HTML or fill in its small gaps is an incredibly important task. The W3C's current HTML Activity Statement can be found on its Web site (http://www.w3.org/MarkUp/Activity.html).

Myth: HTML Is Completely Standardized

Although the WK defines the HTML specification, in practical terms browser vendors and users often define their own de facto standards, or decide what aspects of the standards they support. While this might sound like heresy, it is true. Up until recently, when a new browser supporting a new feature was released, many companies and individuals would rush to use it, regardless of whether the feature was included in the W3C HTML standard. Today a major goal of browser vendors is to bring standard conformance to the Web, which cannot happen too soon. However, for the time being designers have to respect the past forms of markup, problems and all.

Myth: Traditional HTML Is Going Away

HTML is the foundation of the Web; with literally billions of pages in existence, not every document is going to be upgraded anytime soon. The "legacy" Web will continue for years, and HTML will always be lurking around underneath even the most advanced Web page years from now.

Myth: XHTML Will Take the Public Web By Storm

Wishful thinking, but having taught HTML for years and noticing how both editors and people build Web pages, it is very unlikely that XHTML will be the norm before the end of the year 2000, or probably even for years well beyond that. The problem is that if browsers suddenly enforced XHTML rules, few of today's existing Web documents would render at all; remember that although HTML has had rules for years, people have not really bothered much of the time to follow them. Many people learn HTML simply through imitation by viewing the source of existing pages, which are not always written correctly, and going from there. Like learning a spoken language, it is the occasional, loosely enforced rules that have allowed many document authors to quickly get involved with HTML. Like the English language, HTML is well understood and used in lots of places, but not often used perfectly. Rigor will come to the Web, but don't expect it to happen all at once.

Myth: Hand-Coding of HTML Will Continue for Decades

Although some will continue to craft pages like mechanical typesetting, as the Web editors improve and standards take root, the requirement to hand-tweak HTML layouts will diminish. Hopefully, designers will realize that knowledge of the "invisible pixel" trick is not a bankable resume bullet and instead focus on development of their talents along with a firm understanding of HTML markup.

Myth: HTML Is All You Need to Know to Create Good Web Pages Whereas HTML is the basis for Web pages, you need to know a lot more than HTML to build useful Web pages (unless the page is very simple). Document design, graphic design, and even programming often are necessary to create sophisticated Web pages. HTML serves as the foundation environment for all of these tasks, and a complete understanding of HTML technology can only aid document authors. A brief discussion of some of the other aspects of Web design is presented in the next chapter.

Summary

HTML is the markup language for building Web pages and traditionally has combined physical and logical structuring ideas. Elements-in the form of tags such as <b> and </b>-are embedded within text documents to indicate to browsers how to render pages. The rules for HTML are fairly simple. Unfortunately, these rules have not been enforced by browsers in the past. Because of this looseness, there has been a great deal of misunderstanding about the purpose of HTML, and a good portion of the documents on the Web do not conform to any particular "official" specification of HTML. The introduction of XHTML attempts to return HTML to its roots as a structural language, leaving presentational duties to other technologies such as Cascading Style Sheets. The newest version of HTML also attempts to introduce the required rigor and enforcement of syntax that will make HTML a solid foundation on which to build tomorrow's Web applications. While heavy use of strict XHTML has yet to occur on the Web, document authors following the rules presented, even using classic HTML, should be well suited to make the transition to perfectly formed documents. Before plunging in to the core elements of HTML, we'll take a look at Web development practices and project planning useful to aspiring HTML document authors.

The preceding is only a brief introduction to some of the "rules" that HTML documents tend to follow. Unfortunately, the benefit of following the rules isn't always apparent to new Web developers, because most browsers don't strictly enforce the standards. For example, although the nesting rule agrees with the formal definition of HTML, most browsers have no problem with crossed tags, or even with tags being used totally improperly. The reason for the browsers' laxity in enforcement is actually very logical: A browser would display nonstop error messages if it displayed a message every time that it encountered a slightly miscoded Web page! Nevertheless, don't use the browsers' laxity in enforcing HTML's "rules" as an excuse to misuse HTML or sloppily code a page. Standards impose specific structural requirements on documents, and as the Web becomes increasingly more complicated and technologies such as the eXtensible Markup Language (XML) are adopted, following the standards will become much more important.

Unfortunately, many document authors are unfamiliar with standards. Thus, they might not pay attention to the structure because they don't understand the philosophy of HTML; or, they might think of HTML as a physical page-description language, such as PostScript, rather than a logical, structure-oriented markup language. Browsers don't discourage this view, and might even encourage the physical view...

Table of Contents

Acknowledgmentsxxiii
Part IIntroduction
1Introduction to HTML and XHTML3
2Web Development Overview31
Part IICore HTML
3Core Elements65
Part IIIPresentation and Layout
5HTML and Images163
6Basic Layout: Text, Colors, and Backgrounds195
7Layout with Tables231
8Frames265
9HTML and Multimedia285
10Style Sheets313
Part IVProgramming and HTML
11Basic Interactivity and HTML: Forms403
12Introduction to Server-Side Programming451
13Introduction to JavaScript and DHTML495
14Client-Side Programming: Plug-ins, ActiveX, and Java537
Part VSite Delivery and Management
15Site Delivery567
16Site Management601
Part VIAdvanced Topics
17XML: Beyond HTML629
18Future Directions661
AHTML Element Reference673
XHTML Compatibility674
Core Attributes Reference677
Language Reference679
Events Reference679
HTML Element Reference688
BStyle Sheet Reference983
Style Sheet Terms984
Pseudo-Classes989
Pseudo-Elements990
Miscellaneous990
Fonts991
Text1005
Colors and Backgrounds1011
Layout1024
Classification1039
CSS2 Properties1046
CSS2 Layers and Positioning1050
Microsoft Extensions to CSS1058
Style Sheet Measurement Values1066
Style Sheet Color Values1069
CSpecial Characters1071
"Standard" HTML Character Entities1072
HTML 4.0 Character Entities1093
DFonts1103
Fonts for Microsoft Platforms and Browsers1104
Fonts for Apple Macintosh System 71105
Fonts Added to Apple Macintosh System 8.01106
Fonts Added to Apple Macintosh System 8.51106
Microsoft Fonts for Macintosh Internet Explorer1106
Fonts for Unix Systems1106
EColor Reference1109
Browser-Safe Colors1110
Color Names and Numerical Equivalents1112
FReading a Document Type Definition1119
Element Type Declarations1120
Occurrence Indicators1121
Logical Connectors1121
Content Exclusion1122
Content Inclusion1122
Attribute Declarations1123
SGML Keywords1123
Parameter Entities1124
General Entities1124
Comments1125
Marked Section Declaration1125
HTML 4.01 Transitional DTD1126
HTML 4.0 Strict DTD1149
HTML 4.0 Frameset DTD1168
Index1171

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews

HTML: The Complete Reference 4.6 out of 5 based on 0 ratings. 5 reviews.
ThePolyBlog More than 1 year ago
BOTTOM-LINE: Good simple reference . PLOT OR PREMISE: A reference guide for HTML . WHAT I LIKED: Good as a simple reference / encyclopaedia tool. . WHAT I DIDN'T LIKE: Not so great for learning the intricacies from the bottom-up, short on tutorial or theory side. . DISCLOSURE: I received no compensation, not even a free copy, in exchange for this review. I am not personal friends with the author, nor do I follow him / her on social media.
Guest More than 1 year ago
I already have used this book in (huge) paperback, but I am buying it also now as an ebook to have a desktop ready reference. It would be hard to see how someone could have a more thorough and trustworthy guide, no matter if one is only even starting to learn HTML from scratch.
Guest More than 1 year ago
This book is a perfect one-stop reference guide for anyone from novice programmers to advanced programmers. There are several reasons for why I give this book a five star:1) It explains HTML and CSS very precisely and clearly with plenty of illustrations. 2) The authors emphasis on a lot of important concepts, such as HTML should be used to provide the 'structure' of the document, not the 'layout' of it. 3) It provides a very concise introduction to CGI, DHTML, JavaScript as well 4) The complete HTML and CSS elements reference section at the end of the book is important for checking browsers compatibilities. Only one problem is that it's binding is not strong enough, it is falling apart.
Guest More than 1 year ago
I professionally create html. I have used this book often for browser compatabilities and refreshing myself on html. A great book to keep next to you.
Guest More than 1 year ago
Comprehensive and reasonably technical without getting boggd down. Fantastic breadth.