Head First HTML with CSS & XHTML
Graeme Williams writes "In the past, I've written the sort of poorly-structured non-compliant web pages that can only be produced by a combination of laziness and confusion, so I'm an ideal test subject for Head First HTML with CSS & XHTML, an introduction to building web pages which focuses on compliance with the most recent HTML 4.01 standard and XHTML 1.0 standard. The book starts with the simplest of web pages, and builds from there to a solid foundation for writing simple well-structured web sites. It's clear and thorough, and will be effective both for the complete beginner and in bringing stale skills up to date." Read on for the rest of Graeme's review.
Head First HTML with CSS & XHTML
author
Elisabeth Freeman & Eric Freeman
pages
xxxv + 658
publisher
O'Reilly Media
rating
10
reviewer
Graeme Williams
ISBN
0-596-10197-X
summary
A clear, effective and readable explanation of standards-compliant HTML, XHTML and CSS
This is one of those cases where you can judge a book by its cover. In addition to the title and author, the cover of Head First HTML with CSS & HTML has seven tag lines, four photos and two drawings. One of the nuggets is, "A learner's guide to creating standards-based Web pages", which is a pretty good summary of the book and its intended audience.
Head First HTML is full of the sort of distractions that would normally make my skin crawl: people talking at me from the margins, mock conversations between inanimate objects (or in this case HTML tags), crosswords, quizzes and enough cute graphics to supply the kindergartens of a fair-sized city. It's clear that the authors realize that there might be some resistance to this style because they devote five pages of the introduction to explaining why they wrote the book this way – the summary of the summary is that novelty helps your brain learn. The example chapter you can download from the web site for the book is more than 50 pages, which might be enough for you to make up your own mind whether this works for you. My experience was that the method is so effective and the material so clearly presented that the issue disappeared for me after a chapter or two.
In the introduction, the authors also mention another goal: "a clean separation between the structure of your pages and the presentation of your pages". HTML or XHTML is used to provide the structure and content of a web page, and CSS (Cascading Style Sheets) are used to provide the style and layout. This means that the book doesn't include many HTML elements which are now discouraged or "deprecated", such as <B> for bold, <CENTER> for centered text, or <FONT> for specifying fonts within the web page. I guess the choice between frames and CSS might be classified as a religious one. In any case, this book is about CSS and doesn't mention frames except to note their omission in the appendix.
Most of the examples are based on a fictional coffee company called Starbuzz, and their trendy competitor, the Head First Lounge. It's a great framework for building up a web site from a few linked pages to a complete CSS layout. If you've never written a web page before, the book starts at the beginning, with the simplest web page followed by links from one page to another. If, like me, you've written a handful of web pages, reviewing the material will help focus on the essentials for a clean, compliant web page. All of the example HTML, CSS and accompanying images can be downloaded from the web site for the book, which also has the completed examples online, so you can quickly review them in your browser. If you're considering buying Head First HTML, the online examples are also a great way to see the scope of the book, from the simplest example to the most sophisticated.
There are a few prerequisites for getting the most out of Head First HTML. Adobe Photoshop Elements is used to show you how to prepare images for the web. As the book says, if you don't have it, you can download a free trial from Adobe, with the small quibble that this won't work if you've already run through your free trial before starting the book.
Understandably, Head First HTML doesn't tell you everything you might ever need to know about CSS. On the other hand, you learn a whole lot about using CSS both for appearance (such as colors and borders) and layout (positioning different parts of the page such as headers and sidebars). The book is particularly good at explaining at least some of the limitations of CSS, such as the different compromises of liquid, jello and frozen layouts. It's easily enough for you to be able to continue learning or experimentation on your own. With forgivable cuteness, the book also frequently mentions the availability of other O'Reilly publications with more information, such as HTML Pocket Reference and CSS Pocket Reference.
Similarly, the book gives a clear presentation of the different ways of setting text size, but doesn't provide the last word. If you're looking for Javascript to automatically size text based on screen resolution and browser width, you'll have to look elsewhere. In fact, Javascript is one of the ten things mentioned in the appendix, "The Top Ten Topics We Didn't Cover", leaving room for Head First Javascript to be published in 2006.
The last chapter provides a brief introduction to forms, including example designs both with and without tables. The goal of the chapter is to show you how to use CSS to style and layout forms, but you can't try out a form without something on a web server to process it, so the book's web site includes a simple-back end which will "process" (really just echo) the forms which are submitted to it.
Head First HTML deserves its score of 10, but that doesn't mean every word is perfect. I wasn't comfortable with the description of CSS borders, margin and padding until I'd gone back and re-read it. And it wasn't obvious to me that the background of a margin (such as a dashed margin) is the same as that of the content area it surrounds until I'd worked through some examples on my own. But that just underlines the fact that the book is so readable that I could tell when my understanding was slipping.
While Head First HTML never claims to be a reference, information is presented very clearly. If you forget the differences between HTML and XHTML, the book's excellent summary is easy to find, and includes a discussion of the W3C HTML and XHTML validator. That said, the index is short and idiosyncratic: there is a list of page references for the Q&A sections (under T for "There are no dumb questions") but transitional HTML is indexed only under "HTML, transitional", and jello, the layout, is found under "Design" but not "J" or "Layout".
I've said that I was initially very skeptical about the graphics-heavy Head First Labs house style. I'm pretty sure I've been thinking in prose all my life, but apparently verbal and graphical perception can be safely intermingled. I can't explain why, but this garden salad of words, pictures and diagrams of all kinds provides a easy-to-read and very effective introduction to a large amount of material."
You can purchase Head First HTML with CSS & XHTML from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
This is one of those cases where you can judge a book by its cover. In addition to the title and author, the cover of Head First HTML with CSS & HTML has seven tag lines, four photos and two drawings. One of the nuggets is, "A learner's guide to creating standards-based Web pages", which is a pretty good summary of the book and its intended audience.
Head First HTML is full of the sort of distractions that would normally make my skin crawl: people talking at me from the margins, mock conversations between inanimate objects (or in this case HTML tags), crosswords, quizzes and enough cute graphics to supply the kindergartens of a fair-sized city. It's clear that the authors realize that there might be some resistance to this style because they devote five pages of the introduction to explaining why they wrote the book this way – the summary of the summary is that novelty helps your brain learn. The example chapter you can download from the web site for the book is more than 50 pages, which might be enough for you to make up your own mind whether this works for you. My experience was that the method is so effective and the material so clearly presented that the issue disappeared for me after a chapter or two.
In the introduction, the authors also mention another goal: "a clean separation between the structure of your pages and the presentation of your pages". HTML or XHTML is used to provide the structure and content of a web page, and CSS (Cascading Style Sheets) are used to provide the style and layout. This means that the book doesn't include many HTML elements which are now discouraged or "deprecated", such as <B> for bold, <CENTER> for centered text, or <FONT> for specifying fonts within the web page. I guess the choice between frames and CSS might be classified as a religious one. In any case, this book is about CSS and doesn't mention frames except to note their omission in the appendix.
Most of the examples are based on a fictional coffee company called Starbuzz, and their trendy competitor, the Head First Lounge. It's a great framework for building up a web site from a few linked pages to a complete CSS layout. If you've never written a web page before, the book starts at the beginning, with the simplest web page followed by links from one page to another. If, like me, you've written a handful of web pages, reviewing the material will help focus on the essentials for a clean, compliant web page. All of the example HTML, CSS and accompanying images can be downloaded from the web site for the book, which also has the completed examples online, so you can quickly review them in your browser. If you're considering buying Head First HTML, the online examples are also a great way to see the scope of the book, from the simplest example to the most sophisticated.
There are a few prerequisites for getting the most out of Head First HTML. Adobe Photoshop Elements is used to show you how to prepare images for the web. As the book says, if you don't have it, you can download a free trial from Adobe, with the small quibble that this won't work if you've already run through your free trial before starting the book.
Understandably, Head First HTML doesn't tell you everything you might ever need to know about CSS. On the other hand, you learn a whole lot about using CSS both for appearance (such as colors and borders) and layout (positioning different parts of the page such as headers and sidebars). The book is particularly good at explaining at least some of the limitations of CSS, such as the different compromises of liquid, jello and frozen layouts. It's easily enough for you to be able to continue learning or experimentation on your own. With forgivable cuteness, the book also frequently mentions the availability of other O'Reilly publications with more information, such as HTML Pocket Reference and CSS Pocket Reference.
Similarly, the book gives a clear presentation of the different ways of setting text size, but doesn't provide the last word. If you're looking for Javascript to automatically size text based on screen resolution and browser width, you'll have to look elsewhere. In fact, Javascript is one of the ten things mentioned in the appendix, "The Top Ten Topics We Didn't Cover", leaving room for Head First Javascript to be published in 2006.
The last chapter provides a brief introduction to forms, including example designs both with and without tables. The goal of the chapter is to show you how to use CSS to style and layout forms, but you can't try out a form without something on a web server to process it, so the book's web site includes a simple-back end which will "process" (really just echo) the forms which are submitted to it.
Head First HTML deserves its score of 10, but that doesn't mean every word is perfect. I wasn't comfortable with the description of CSS borders, margin and padding until I'd gone back and re-read it. And it wasn't obvious to me that the background of a margin (such as a dashed margin) is the same as that of the content area it surrounds until I'd worked through some examples on my own. But that just underlines the fact that the book is so readable that I could tell when my understanding was slipping.
While Head First HTML never claims to be a reference, information is presented very clearly. If you forget the differences between HTML and XHTML, the book's excellent summary is easy to find, and includes a discussion of the W3C HTML and XHTML validator. That said, the index is short and idiosyncratic: there is a list of page references for the Q&A sections (under T for "There are no dumb questions") but transitional HTML is indexed only under "HTML, transitional", and jello, the layout, is found under "Design" but not "J" or "Layout".
I've said that I was initially very skeptical about the graphics-heavy Head First Labs house style. I'm pretty sure I've been thinking in prose all my life, but apparently verbal and graphical perception can be safely intermingled. I can't explain why, but this garden salad of words, pictures and diagrams of all kinds provides a easy-to-read and very effective introduction to a large amount of material."
You can purchase Head First HTML with CSS & XHTML from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
I'm actually being forced to take a class in introductory web design. The books for this class are fairly new, yes seem to be stuck in the HTML 3.x days, with font tags, bgcolor properties, and a particular emphasis on the 216 (215?) web-safe colors.
I wish books like this one were used instead. Teaching the right way the first time is so much easier than having to tell someone that everything they learned was wrong.
GLaDOS for President 2016! "Well here we are again. It's always such a pleasure." -- GLaDOS, 2011
<html>
</html>
Talk about non-compliant. It always looks good on IE and then fscks up on every other brower's rendering engine.
||| I still can't believe Parkay's not butter.
Can somebody say lawsuit?
As to the book itself, I looked at the sample chapter and it's in the random, jumpy style that marks the modern MTV generation. It has some appeal, but I think trying to get through a whole book laid out like that is going to cause headaches. Still, I plan to buy it, just to see if I can learn anything new.
GetOuttaMySpace - The Anti-Social Network
HTML has got serious faults - the major one being the softwares unable to harvest the data inteligently from the web page created using HTML. This was IMHO why a new standard (much more strict) based on XML was developed which is called XHTML.
I think any book that teaches CSS and XHTML more than HTML will be widely embraced by the programming community.
Linux Help
for all things on Linux
This book can never be any good! Everyone knows comes before !
While I haven't read this particular Head First book, I have nothing but praise for the rest of the series.
The 'Learner's Guide' is exactly right; they explain everything they do clearly, they make the examples and exercises fun and easy to understand, not only on what to do, but why to do it. The books are graphically appealing and funny (and it's not just nerd humor), which makes them easy to read, but at the same time they don't sacrifice information, or simplify it beyond understanding.
Sight unseen, I would recommend this book, the same way I do their other ones.
I bought a head first serious Java book on recommendation of one of my instructors a while ago. I ordered it online, and as soon as it arrived and I cracked the cover I regretted my decision. The style tries to be cute and 'cool', but is really very annoying and uninformative instead. I assume this trend holds true for the rest of the 'head first' series of books. Its not a series that I will be purchasing again to say the least. ;)
Amazon has it cheaper than BN. ($23.07 vs $27.96)
Expert Java EE Consulting
A book that is already out of date the day it was printed.
WHY do people bother putting these out? A waste of paper AND money. Sorry, I just can;t see this being a worthwhile book to get.
Skip the review. Read Zeldman's awesome Designing With Web Standards. It will change your life. At least until you read the next life changing book.
Zeldman is also teaming up with Eric Meyers, the CSS God for An Event Apart.
"You'll get nothing, and you'll like it!"
Or at least, don't write XHTML unless you really know what you're doing, and know to send real XHTML (application/xhtml+xml) to compliant browsers.)
Sending XHTML as text/html Considered Harmful. (Written by Ian Hickson, who's an editor of half a dozen CSS drafts, QA person for Mozilla, ex-QA for Opera, and nowadays works on 'HTML 5' (WHATWG web apps) for Google.)
What I don't seem to understand is that any information, i.e. HTML/XHTML/DHTML/CSS can be easily found on the Web for free with a click of a button. Tutorials, guides, et cetera. I've seen the book at Borders, but just laughed. Any type of book has SOME information that can be easily accessed without spending a dime isn't worth getting. I'd rather save my two cents here. HTML is so outdated anyways.
In the past, I've written the sort of poorly-structured non-compliant web pages that can only be produced by a combination of laziness and confusion
Wait a minute, were you copying my style!?!
He who knows best knows how little he knows. - Thomas Jefferson
I would disagree. I personally can't stand the "random, jumpy" style used by MTV in any form either. But I don't think this book is guilty of that.
They use a flashy style to draw attention to particular concepts. It is used to FOCUS.
That is very different from what I consider MTV-editing, which is used to abstract, or pile a bunch of images/concepts into a single "idea", or feeling. There is no focus.
Designing With Web Standards by Jeffrey Zeldman.
And it's cheaper .
"Ask not what your country can do for you." --John F. Kennedy
Given that the market at the moment is trying to squeeze as much functionality out of existing technologies and the increasing use of new markup languages such as SVG and MathML, I would have thought that more and more books would start teaching XHTML/CSS.
XHTML will allow far better flexibility when adding in new functionality provided by new markup languages as well as better machine readability for the purposes of migrating pages at a later date. Tools to assist in developing syntactically valid XHTML pages are easily available and easy to use (such as Firefox's Validator tool as well as the old trusty http://validator.w3.org/), so the argument that novices may break XHTML pages by not writing valid code is not as potent as it once was.
The challenge now lies in teaching students to write semantically correct markup. This cannot be checked by a validator or any other machine tool, as semantically incorrect markup may still follow the rules of syntax. However, it can break a braille browser or a mobile device that degrades pages' layout for the purposes of displaying it on a small screen, rendering the information inaccessible to users of these devices.
XHTML's stricter syntax far more strongly encourages users to think in terms of content/presentation rather than just writing a blob of HTML to show a nicely formatted essay/blog/gallery. The more information is both syntactically and semantically correct, the more the web will be a friendly place for users of devices other than PCs, or users who are accessing the web from a device designed to aid a disability.
It is for these reasons, forward compatibility and accessibility, that I think that XHTML should start being taught. I always hear it argued, when I recommend XHTML to a would-be developer, that "XHTML is not understood" and "it breaks pages if used incorrectly". Well, help users to understand, and teach them to use it correctly.
I hate printers.
I bought this book with the intention of reteaching myself the "right way" to do web design. I've used CSS for a few years now, but I've never gone the full 9 yards and completely separated all my markup from all my presentation. I always had the occasional deprecated HTML tag in there because it was what I was used to.
After seeing the impressive amount of control you get from moving away from tables and tags to nothing but XHTML and CSS I was ready to make the jump.
The first half of this book won't be anything new to most people, but in the 2nd half of the book I've never seen the box model, div layout, and css explained so clearly. It's made adjusting my web design skills much much easier.
Highly recommended.
ce n'est pas un Sig.
i actually bought this book, its very good as a reference
.." series books
i love all "Head First
document.write() and innerHTML are wrong and makes a page no longer xhtml as the content is not written into the DOM.
As far as I can tell, the function of the innerHTML property is to 1. parse the string passed to it as a fragment of HTML or XHTML, 2. convert it to a properly structured subtree for insertion into a DOM, and 3. link it into the DOM under the specified element. If innerHTML is deprecated, then what's the proper way to call the browser's parser to turn a string containing a fragment of XHTML into a DOM node for insertion? Or do I have to write my own parser in JavaScript and reference it from each page, duplicating a function already built into the compiled browser using possibly slower interpreted code?
Choice between WHAT? I think you mean between CSS and tables. Or CSS+XHTML vs. Whatever HTML-like Syntax Works.
But really, there is no need to choose. I use the deprecated b tag all the time, because it is SIMPLE, love to use tables, because they WORK for displaying on various screen sizes, plus (gasp) deploy the font tag from time to time for quick prototypes. And, guess what? I also use CSS. Fact is, Firefox and IE support CSS alongside HTML elements. And so the standards.
I could care less about what is "deprecated" by W3C, as though they are going to come over and scold me, and as though I would care.
Of course, without Internet Explorer support, this is basically useless
Until somebody manages to write a decent CSS parser as an applet. Or is it harder to get people to install Java runtime software than to get them to install Firefox or Opera web browser?
I had that book. It spends a lot of pages advocating why you should design with web standards and the history of bad web design, but it really doesn't provide reference information or many useful examples. The book is more about advocacy and "ranting" than a reference book, so keep that in mind.
Well, help users to understand, and teach them to use it correctly.
"Correctly" in this case meaning on private intranets and specifically not on the public World Wide Web, as all publicly available versions of the web browser with 85 percent market share do not read XHTML anywhere close to correctly. Microsoft Internet Explorer 6 doesn't display pages sent as application/xhtml+xml at all, and sending XML as text/html is considered harmful.
I always had the occasional deprecated HTML tag in there because it was what I was used to.
Especially because the value attribute of the li element was mistakenly deprecated in HTML 4.01 Transitional and XHTML 1.0 Transitional and mistakenly removed from HTML 4.01 Strict, XHTML 1.0 Strict, and XHTML 1.1. If the first element of the list should be numbered 13, as is the case for a track listing of Follow the Leader by Korn, then <li value="13"> is content, not presentation.
but in the 2nd half of the book I've never seen the box model, div layout, and css explained so clearly. It's made adjusting my web design skills much much easier.
I'd like to see it explained clearly to Microsoft. Microsoft Internet Explorer version 6 didn't even follow standards that were two years old at the time it was released alongside Windows XP. Don't claim that IE 7 will fix everything because the final version of IE that will ever be made available to users of Windows 98SE, Windows 2000, and Windows Millennium Edition is IE 6.
Geeeeze! Quit waving your arms around and spitting!
"Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
In the case, Web Programming 'Standards' or 'Interpriters'?
Until the Interpriters that are built in to web browsers can interprit compliant 'standards-based' code correctly, then there really is no need to try to be 100% compliant w/ the W3C.
In the war of TABLES vs. DIV+CSS, I have to say that TABLES win.
I do agree that DIV+CSS is nicer, cleaner, and easier to code... but, that means nothing to me if my site that generates 1,000,000 hits/day, is not compliant w/ the browsers that the audience is using.
Say 2% of those 1,000,000 users use a browser that does not properly render DIV+CSS *ie 4/5 etc*, then you have just made a bad impression on 20,000 users, who most likely won't return to your web site.
If you could care less about those 20,000 users, then fine, but if you depend on their hits to pay your bills, then you'll understand what I'm saying.
the only permanence in existence, is the impermanence of existence.
Save yourself some money by buying the book here: Head First HTML with CSS & XHTML. And if you use the "secret" A9.com discount, you can save an extra 1.57%!
But really, there is no need to choose. I use the deprecated b tag all the time, because it is SIMPLE, love to use tables, because they WORK for displaying on various screen sizes, plus (gasp) deploy the font tag from time to time for quick prototypes
I agree. They can take my <B> tag when they pry it from my cold, dead text editor.
Really... a few nested tables work just FINE. And, if you happen to build e-commerce sites catering to a large cross-section of humanity, you'll find yourself serving pages up to people with a four-versions-ago copy of the AOL client, or Netscape 4.1, etc. They're still out there. Nice as some fancy-pants AJAX-ish stuff is for portally things or specific audiences, even some fundamental CSS things are beyond a lot of visitors' platforms, depending on your demographics.
Don't disappoint your bird dog. Go to the range.
XHTML and CSS simply aren't very good for entering manually; only total gearheads would think that XHTML is an improvement over HTML (it's an improvement only in that it is better defined).
So, just use one of the many tools like Textile, or use a WYSIWYG editor.
One thing I think advocates for standards compliance and valid markup overlook is that often, websites are created on a deadline. At my job I frequently have to churn out something in a couple hours or less, and at times like those, my priorities go something like this: does it look good in IE 6? Firefox 1? Safari? Well then, OK.
Took the words right out of my mouth. The Zeldman book is a weird read. He makes you say "OK, that sounds great! Can't wait till he fills in some details ...." and then, all of a sudden, you get to the last page, and realize you didn't learn a damn thing. Grrrr.
Cantankerous old coot since 1957.
Zeldman and the ALA people seem to spend a lot of time making workarounds for specific versions of IE, thereby elimating the main benefit of CSS.
Those workarounds are meant for situations when you must compromise strict compliance for the sake of wider browser compatibility.
"Ask not what your country can do for you." --John F. Kennedy
The key to understanding the market for techincal books is to realize that not everyone's time is equally valuable. You are quite correct in your assertion that all of the raw information in the book can be found on the Web for free with a few search sessions and some digging through the trash...and the web is full of bad advice and just plain wrong information, especially when it comes to web design and development where many people have conflicting opinions which they recite as factual information. That having been said the value in the technical book comes in the order and presentation of the materials, the expert (usually) peer reviewed suggestions and best practices, and the aggregation of various sources into one coherent work. All of this could be learned without spending you hard earned money by doing enough searching, digging, and reading on the web, but at the end of the day who do you want to trust....user99 the phat html h4x0|2s...or the somewhat more credible authors of these books...that and the main point which was how much is your time worth?
you know what would be great. if a book review was on a book that coverd current standards, not a book that covered standards form 3 years ago. we are now looking ate XHTML 2.0 and CSS 3. media types are the shit! Sanguis
That is frequently the case. A lot of people lose sight of the purpose of standards--to make things easier. And with that in mind, "Designing with Web Standards" is a great book if you can tune out the standards for standards' sake zealotry. For practical standards compliance I really recommend "Web Standards Solutions" by Dan Cederholm.
A publicly traded company exists solely to make profits for shareholders.
The Zeldman book is hardly "standards for standards' sake" zealotry. In fact there are many work-arounds in the book that compromise strict adherence to standards for the sake of borwser compatability.
"Ask not what your country can do for you." --John F. Kennedy
is not deprecated. Everyone thinks it is for some reason.t _modules.html#s_presentationmodule
http://www.w3.org/TR/xhtml-modularization/abstrac
I got the Head First Java book, which was written in a similar, mind-numbing manner. It really isn't helpful, but its good for a laugh. Amazon tends to rate these books very highly, but I'd reccomend one that takes a more seriuos look; you dont need a book full of dumb analogies to understand html/css.
"And we have seen and do testify that the Father sent the Son to be the Savior of the World"
1 John 4:14
You're right, and I can admit it. It's been a while since I read the Zeldman book. I mentally grouped his book with what I used to see on ALA. And that was folks jumping through hoops to follow the web standards to no real benefit other than standards compliance. This wasn't, of course, the case every time, but it happened plenty. And at the time I was totally on board. Is it OK to use a <dl> to mark up a form? Does a form really count as tabular data? Do the benefits of FIR (standards compliance!) outweigh accessibily concerns?
That sort of thing is somewhat ridiculous. I'm feeling much better now. And I stand corrected.
A publicly traded company exists solely to make profits for shareholders.
there's nothing in the XHTML 1.1 spec about b being deprecated ...
XHTML and CSS are the way to go, but CSS definitely has to improve. Designing a liquid two-column with header and footer layout using CSS is a nightmare, especially if you have to support several browsers. Doing the same thing with a simple table is much more simple.
Just having the footer at the bottom of the page, and not just behind the body is (AFAIK) impossible with CSS.
The easiest solution is often to go with fixed size and absolutely positioned divs, but then you reduce the accessibility of the page (if you change the font size, the div doesn't become larger). Once again, these problems don't exist with table layouts.
IMHO, CSS has failed in the areas of layout, size and positioning.
I also get referred to it regularly, as though it's some kind of brand new idea instead of the tired old elitist piece of trash that it is.
Is a well-written rebuttal to hixie's screed available on the web?
One can send XHTML as text/html to IE and correctly to other browsers.
But then you have to sniff the Accept: header and generate either XHTML or HTML 4. This rules out users in environments that do not provide for dynamic content, such as ISP web space, university web space, and banner-supported free web space.
The thing very few XHTML advocates remember is that the interpretation of the / character differs incompatibly between conforming implementations of XML and SGML. For instance, under the (sometimes obscure) SGML SHORTTAG rules used by HTML 4, / is a shortcut for starting and ending an element body, meaning that <em/emphasized/ in HTML 4 is equivalent to <em>emphasized</em>. In XML, on the other hand, / always denotes an empty element such as <br />, but in SGML, that means the same thing as <br>>. But you're right that most existing HTML user agents support the <dl compact> part of SHORTTAG but not the <em>emphasized</em> part of SHORTTAG, which is the deficiency that makes the Appendix C hack work in practice.
Still, what about the CDATA/PCDATA differences that require inline script and CSS to be escaped using ridiculously complex ASCII art gymnastics? What about the mistaken removal in XHTML 1.1 of the value attribute of the li element, making it impossible to start an ol element at any value other than 1? And what about the differences in CSS semantics, DOM semantics, and the fact that W3C deprecated the practice?
XHTML can become what it was supposed to become: a stepping stone to more functional and powerful XML based markups.
But first we need a stepping stone to the stepping stone, in the form of a widely deployed web browser that understands the CSS and DOM semantics that go with XHTML. Then once XHTML 1.0 is adopted, how long will it be before we can move on to XHTML 1.1, which drops Appendix C and the transitional dialect entirely, or XHTML 2.0, which even renames many of the existing elements?
Designing With Web Standards is a superb book that explains the WHY, then the HOW quite clearly. I strongly recommend it.
Save yourself $4.95 by buying the book here: Head First HTML with CSS & XHTML. And if you use the "secret" A9.com Instant Reward discount, you can save an extra 1.57%! That's a total savings of $5.31, or 19.27%!
Hate to rain on the parade here, but I have both Head First Java (EXCELLENT) and Head First Design Patterns (also EXCELLENT) and this book.
IMO, this book is not even close to the other two. The other two have a nice flow, while this book feels jumpy and cobled together. It's like the other with the fun sidebars and graphics, but just not as well done. I'd like to offer some specifics but the book is on the shelf in my office and I'm home - I just know I wasn't impressed with it like the other two. I literally read the other two cover to cover, this one was worth a couple of chapters at best.
You know you're a geek if you've ever replied to a tagline.
"The key to understanding the market for techincal books is to realize that not everyone's time is equally valuable. You are quite correct in your assertion that all of the raw information in the book can be found on the Web for free with a few search sessions and some digging through the trash..." Try Fravia searchlores: http://www.searchlores.org/ "and the web is full of bad advice and just plain wrong information, especially when it comes to web design and development where many people have conflicting opinions which they recite as factual information." That's not to say someone can't test it out. I mean, HTML and CSS is used even in MYSPACE, where you can correct/check/and teach/experiment with the information you're given. You're thinking a bit too much like my teachers; not all information is wrong, and there's more than hundreds of ways to find it. I learned CSS and HTML on my own, not by tutorials, but by fooling around and testing things out and observing the code. Don't forget; is money the issue here? We can both agree on the same thing. Someone can just sit down and READ the book IN the store (without spending $$), or actually take it out. I've seen people (like me) in the tech/sci section of borders jotting things down. If money is the issue; I say dont get it. If it's for the actual KNOWLEDGE you get from reading the book, I encourage information. Books are just as good as computers. But money's what the main article's all about. "....that and the main point which was how much is your time worth?" It's up to the buyers of what they want to do. They can either spend $30 on a book, search google, or copy + paste random code on Myspace. It's up to the readers to decide who they are and what they're gonna do. Niether one takes more/less time than the other. And if they haven't got the time, what are they doing? Writing scripts doesn't happen in a night! But you have a good argument :)
No. They don't. For you all who don't understand the point of standards and tableless design, let me break it down:
The whole point of design that involves compliant markup and avoids the use of tables is this: it is 100% portable to any device, and to any user. Your PDA or mobile phone (as well as your blind friend's screen reader and your deaf-blind-friend's braille display) need to receive document structure and text only. Then they can present as best fits that device. When you wack a bunch of stuff into tables, you are essentially requiring your user to have a visual display. It's not portable, and it's not accessible. It totally blocks all kinds of groupos: mobile phone users, pda users, users with disabilities, etc. out of your content. To a lesser extent, it hinders search engine spiders and is bad for SEO.
Totally separating content&structure from presentation is the only way to make sure that your document is portable across platforms.
IE can do more than just fonts (I'm not saying this to support IE; Personally, I think it sucks,) check the page beneath my nick. -There _could_ be xhtml errors there, (I doubt it,) but IE renders it just fine, or; just like Firefox..
And yeah; I haven't tested it in IE7, as that browser is not complete yet.
(Never-mind the content, and, yes; the page is simple..)
A horse can't be sick, you know, even if he wants to.
The book is about XHTML and CSS, but since you apparently don't read many books, you wouldn't know that.
I thought the book was one of the most successful teaching tools I've read in years. There's a world of difference between Googling for bits of reference material, and reading a 400-page narrative built by people who know how to teach.
Reading reference material is not learning.
-- Slashdot: When Public Access TV Says "No"
I'd like to see what you put up for IE users....
On the opposite side of the argument, if I had purchased a book for each topic that I have learned over the 5 years I have spent developing code and reading online resources, I would have spent a ridiculous amount of money by now.
Yeah, in hindsight I saw what you really meant; my apologies. It just initially seemed like a dash to "deny" IE of the things it _can_ do, and I was a bit quick on the 'ol triggy there.. all pardons
A horse can't be sick, you know, even if he wants to.
The notion that paragraph, line, and page breaks need an "end" is in itself broken
A page has a start (top of page) and an end (bottom of page). A paragraph has a start (visually rendered as indent or double space) and an end (often rendered as a line without full justification). A list item has a start (start of line) and an end (end of line). A line of poetry also has a start and an end. If you stop thinking of tags as having meanings in and of themselves and start thinking of them as wrappers around elements of an object, it becomes clearer.
Save yourself $1.39 by buying the book here: Head First HTML with CSS & XHTML. And if you use the "secret" A9.com Instant Reward discount, you can save an extra 1.57%! That's a total savings of $1.75, or 7.25%!