Slashdot Mirror


Web Designer's Reference

jsuda (John Suda) writes "It seems as if everyone and his brother is writing books supporting standards-compliant Web design with XHTML and CSS. I have read and reviewed a half dozen this year alone. People are obviously trying to tell us something - plain HTML has to go! Web Designers' Reference: An Integrated Approach to Web Design with XHTML and CSS, by Craig Grannell, is the latest of these pronouncements." Read on for the rest of Suda's review. Web Designers' Reference: An Integrated Approach to Web Design with XHTML and CSS author Graig Grannell pages 389 publisher Friends of ED rating 8 reviewer jsuda ISBN 1590594304 summary Comprehensive guide to standards-compliant web design

The reasons are clear and compelling: The World Wide Web Consortium, which promulgates Web design standards, has decreed HTML as obsolete. Newer, more compliant browsers, will in time not support the older tags and code; the new standards facilitate much better use by the disabled of screen readers and non-graphic browsers. Not least, the newer code makes writing and revising code easier and more efficient, as well as more capable.

These are certainly good reasons for Web designers to move to the new code. Nevertheless, surveys show that most Web pages are not compliant and that thousands of designers continue to use deprecated code. I confess that I am one of them -- after a number of years learning and getting used to HTML, the need to learn new and more code is onerous. The inertia of habit is a factor, I'm sure.

For those Web designers like me, Mr. Grannell's book is a welcome addition to the literature because it systematically deals with the topics under discussion. In its coverage of XHTML, CSS, Javascript, and complementary coding (like PHP), it provides a nice framework guiding "old dogs" like me into standards-compliant code. Not only does it provide some historical perspectives on these codes, it compares the old with the new in regard to all of the important elements of Web design.

The author is an experienced Web designer and operates a design and writing agency. He also writes articles for a number of computer magazines.

Grannell's goals are to teach cutting-edge, efficient coding, and how to master standards-compliant XHTML 1.0 and CSS 2.1. There are a dozen chapters. He breaks down the elements of Web design into modular components so that one can focus on each element separately, like page structure, content structure, layout, navigation, text control, user feedback, and multimedia. Relevant technologies are explained in context of producing a typical Website.

If one finally decides to move forward, as many suggest, this is a very good volume by which to get your start. For new designers, this is a nice primer to learn what is expected, in an overall sense, of good, advanced Web design.

This is a well-produced book with clear writing, comprehensive approach, dozens of practical examples, and downloadable files with the code examples used in the book. The author writes in a logical sequence much like an engineer would. It is a heavy textbook-like read, only lightly sprinkled with style and personality. It should appeal primarily to novice designers, but has enough advanced information to satisfy an experienced designer who is looking for that fresh start.

And in fact, the structure of the book facilitates the "fresh-start" idea. It starts with a Web design overview, giving an experienced user's tips on what software to use to write code, what browsers to design for, how to build pages from the very top to the bottom. (XHTML, unlike HTML, requires a preliminary document-type definition (DTD) to validate. Only after the introductory section does the first HTML tag appear.)

Like others writing in this area, Grannell firmly advocates designing for standards compliance, usability, accessibility, and last and least, visual design. Marketing Department people may choke on that priority list, but there is no inherent conflict between function and aesthetics; Grannell simply does not spend a lot of time on the aesthetics.

The middle chapters concentrate on modular construction of pages -- the XHTML introduction, the structural elements like text blocks and images, the logical structure of the links and navigation flow, and finally, the stylizing with CSS. Comparisons between pages styled with HTML vs. CSS compellingly demonstrate the benefits and advantages of CSS. There will be no going back once you've decided to upgrade your technical approach.

Basic CSS concepts are explained and illustrated with code samples and screenshots. Grannell describes how to use CSS for text control, navigation, and layouts. There is a broad section on frames and another on forms and interactive components.

The last chapter covers testing and tweaking including how to create a 7-item browser test suite. Strategies overcoming browser quirks are discussed throughout the book. There is detailed technical information, especially in regard to the XHTML introductory section of the page, which I have not seen elsewhere.

There are three welcome reference appendices at the end covering XHTML tags and attributes, Web color coding, and a very comprehensive entities chart noting currencies, European characters, math symbols and more.

Much of this material is covered elsewhere in the growing set of publications about standards-compliant code. This book has the virtue of having a useful overall perspective on Web design and acts as a framework for new designers and converting designers to renew and upgrade their technical approaches.

You can purchase Web Designers' Reference: An Integrated Approach to Web Design with XHTML and CSS from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

416 comments

  1. Wow. by Monkeman · · Score: 2, Funny

    That's a long title. It's upwards of five words. We need to stop this trend before we get crap that's fourteen words and requires a pamplet hanging off the spine of the book to print in full. New Books:Old Books Diet Cherry Vanilla Lime Dr. Pepper:Dr. Pepper

    1. Re:Wow. by dkleinsc · · Score: 0, Offtopic

      You think that title's long, check this one out:

      Aeolian and Adhesion Morphodynamics and Phytoecology in Recent Coastal and Inland Sand and Snow Flats and Dunes from Mainly North Sea and Baltic Sea to Mars and Venus.
      (By Detlef Mader. Peter Lang, New York, 1995.)

      This book really does exist. I first came across it back in my college days when some poor geology student had to read it.

      --
      I am officially gone from /. Long live http://www.soylentnews.com/
  2. Standards, Schmandards.. by jimmyCarter · · Score: 4, Funny

    Bring back the BLINK tag!

    --

    -- jimmycarter
    1. Re:Standards, Schmandards.. by eggz128 · · Score: 1

      .dasbinken {text-decoration: blink;}

    2. Re:Standards, Schmandards.. by ziggamon2.0 · · Score: 1

      It's back just as you requested it!

      Only now it's CSS-based and trying to sneak back in!

      Try this: CHECK OUT THIS ULTRA-EXCITING OFFER!

    3. Re:Standards, Schmandards.. by Inkieminstrel · · Score: 5, Informative

      Done and done. .blinktag
      {
      text-decoration:blink;
      }

    4. Re:Standards, Schmandards.. by ziggamon2.0 · · Score: 1

      Hmm... seems that Slashcode struck me down! I'll have to preview next time.

      What I meant was <span style="text-decoration:blink;">CHECK OUT THIS ULTRA-EXCITING OFFER!</span>

    5. Re:Standards, Schmandards.. by Tackhead · · Score: 1
      > > > Bring back the BLINK tag!
      > > Obviously a troll. Have you no eyes, man?
      > dasbinken {text-decoration: blink;}

      Meesa not troll! Meesa got biggie eyes!

      dasbinksen {text-makeypretty: yousathinkymediedinRevisionOfTheStandard3; }

    6. Re:Standards, Schmandards.. by Anonymous Coward · · Score: 0

      Uhh, no.

  3. How to Suck in 21 days! by stratjakt · · Score: 1, Insightful

    Look around the web, and see all the complicated PHP scripts and ASP pages serving as frontends to database of choice, to serve up what's essentially static information.

    Plain HTML is quite often the most efficient solution, to produce, host and maintain.

    All aboard the hype train! We'll fill the dotcom bubble back up, one asshat at a time!

    --
    I don't need no instructions to know how to rock!!!!
    1. Re:How to Suck in 21 days! by Anonymous Coward · · Score: 0

      That's right keep thinking that :).

    2. Re:How to Suck in 21 days! by Anonymous Coward · · Score: 4, Informative

      I need to take a screenshot for future use of this perfect example of both ignorance and apathy.

      You obviously have no experience with CSS. In comparison with more modern markup, coding and styling plain old HTML is like making spaghetti _one_ noodle at a time.

    3. Re:How to Suck in 21 days! by Flutty · · Score: 4, Insightful


      Just a comment as someone who is a "content manager" ie the poor person who has to put the words onto the web designers pages.

      Using a database to feed a web site makes things so much easier. Global updates, automatic sorting and reusable elements in other parts of the web. Just because something does not make sense to a coder does not meant it is useless to mere mortals.

      >>> all the complicated PHP scripts and ASP pages serving as frontends to database of choice, to serve up what's essentially static information.

    4. Re:How to Suck in 21 days! by kaiidth · · Score: 4, Interesting

      Interesting... I thought that, right up until the time that I tried authoring and maintaining a medium-size site (back in the .com days) and earned myself a rude awakening.

      In my experience (YMMV) it is far, far easier to create an infrastructure capable of doing everything you want and to serve content dynamically within that infrastructure, than it is to edit more than a very few pages by hand. Now there is a good argument for serving static (cached) versions of dynamically created files where this is possible, and a lot of sites do just that.

    5. Re:How to Suck in 21 days! by INeededALogin · · Score: 4, Interesting

      database backed webpages are a trap and a bottleneck. Notice that Slashdot generates static pages from comments. Databases are not a limitless resource and notice how many webpages get sucked into the "No more connections" trap when you visit them from Slashdot.

      Now people will argue that a server is not scalable either, but you can always have 5000 servers serving up that same static data. You really can't expect 5000 servers to access a single database and expect the database to survive.

      Databases are needed for some webpages, but don't throw them in as a simple shortcut.

    6. Re:How to Suck in 21 days! by Anonymous Coward · · Score: 0

      nice troll, asshat.

    7. Re:How to Suck in 21 days! by goodgoing · · Score: 5, Informative

      What I like to do:

      On local development server:
      - Create database to store data
      - Create scripts to make the pages
      - Create .htaccess mod_rewrite rules to make the pages look static (blah.php?pageID=24&whatever=1 becomes blah-24-1.html)

      Then I use wget to save a static version of the website, then upload the static version to my webserver. Some advantages:

      - Less resources needed on server
      - HTML template easily changed if required
      - Extremely fast script development time, since there are no security checks required
      - More secure than PHP scripts on a server could ever be

      Obviously this method won't work for websites that require user input (like polls), but I think not having to worry about the security of live scripts is awesome.

    8. Re:How to Suck in 21 days! by temojen · · Score: 1

      Uhh... no. You seem to be confusing XHTML+CSS with XHTML+CSS+XSLT+XML+SQL+(PHP|ASP). I make static sites quite a bit with XHTML+CSS, and it's acrtually easier.

      XHTML+CSS tends to be way easier than a morass of HTML tables and font tags.

      what could be easier than:

      BEGINNING OF BLOCK

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><link rel="stylesheet" type="text/css" href="/styles/style.css"><script src="/scripts/sitescript.js" type="text/javascript" ></script></head><body><div id="content">

      <!-- start editing here -->

      <h1>Put the article title here</h1>
      <img src="/images/example1.jpg" alt="an image to go with this article" />
      <p>first paragraph of content</p>
      <p>second paragraph of content</p>
      <p>and so on</p>

      <!-- do not edit after this line -->

      </div><div id="navigation"><a href="/">Home</a><a href="/topics.xhtml">Topics</a><a href="/about.xhtml">About Us</a><a href="/contact.xhtml">Contact Us</a></div><div id="header"><img src="/images/logo.png" alt="our logo" /></div></body></html>

      END OF BLOCK

      notice the lack of any font, layout, etc commands. Just structural grouping. You can make some pretty nice looking static sites this way and making additional pages takes seconds rather than the minutes (or hours) it takes to make them in craptastic editors like frontpage. And all your pages look the same, not off by a few pixels. This is pretty much how most of the pages I make at work are done.

    9. Re:How to Suck in 21 days! by Anonymous Coward · · Score: 0

      Yeah, and you can see it by opening /. in Firefox+HTML Validator

    10. Re:How to Suck in 21 days! by rainman_bc · · Score: 4, Informative

      Uhm, with some caching it doesn't matter. Cached content feeding from a database is fine IMO...

      --
      09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
    11. Re:How to Suck in 21 days! by cvstSD · · Score: 1
      For years practitioners used the Web and its language, HTML, as a free format and layout platform for forms and documents (often as paint for software applications).

      Then along comes the W3C to proclaim to those practicing this craft: "HTML is not a format and layout language" . They then proceed to break all the existing code that's out there in the name of that proclamation.

      It may be coincidence that the W3C is filled with representatives of companies who make billions of dollars selling what are essentially formatting and layout platforms for forms and documents...

      It may be coincidence, but it still makes your personal BS meter redline doesn't it? .

    12. Re:How to Suck in 21 days! by Anonymous Coward · · Score: 0

      Flamebait? WTF??

    13. Re:How to Suck in 21 days! by Slack3r78 · · Score: 4, Insightful
      For years practitioners used the Web and its language, HTML, as a free format and layout platform for forms and documents (often as paint for software applications).


      Are you forgetting the NS4/IE incompatibilities and proprietary tags that plague the web to this day?

      The fact is, when W3C came along, the web was seriously broken. Those of us that are so outspoken on standards are generally those that have been on the web long enough to remember how broken it was when non-standard HTML ruled the day.
    14. Re:How to Suck in 21 days! by Anonymous Coward · · Score: 0

      what could be easier than

      Is this a funny? Why should the Web only be accessible to computer programmers?

      Everybody talks about separating content from presentation, but nobody talks about separating content from structure. XML implies that it should be possible to create a nice user interface that can take styled text and store it as structured XML, then using presentation rules transform that XML into XHTML. But it's never, ever happened. It's even physically possible to do, and nobody's ever created an application that can do it. Instead we're stuck with programs like Go Live that, while they're good at what they do, are a pain in the ass to use and require you to think in HTML. There needs to be a way to just take plain old styled text like people have been producing for decades and get it on the Web, but that's not possible without an assload of work in the middle.

    15. Re:How to Suck in 21 days! by swimmar132 · · Score: 1

      Insightful?? What the hell.

      The book is about xhtml and css. It has ABSOLUTELY NOTHING to do with databases or server-side programming.

      God, honestly.

    16. Re:How to Suck in 21 days! by Anonymous Coward · · Score: 0

      You called Perl crap.

    17. Re:How to Suck in 21 days! by Anonymous Coward · · Score: 0

      With sufficient RAM any database will cache on its own, and usually quite efficiently. Plain vanilla database-backed dynamic websites work fine. With insufficient resources on supercheap Web hosting accounts, run by inexperienced admins, they do not.

      Old but true:

      "IBM, Oracle, Informix, and Sybase have collectively invested several billion dollars in figuring out optimal strategies for caching information extracted from an RDBMS via a SQL query ... The stupid programmer: can't figure out this RDBMS thang and resorts to stuffing the results of queries into the Unix file system."
      --Philip Greenpun on Vignette StoryServer

    18. Re:How to Suck in 21 days! by Anonymous Coward · · Score: 0

      notice how many webpages get sucked into the "No more connections" trap when you visit them from Slashdot.


      Notice how many pages written in HTML suck. Notice how many Linux Web hosts crash under Slashdot loads. One would have to be insane to serve HTML on Linux Web hosts.

    19. Re:How to Suck in 21 days! by StabbyTHings · · Score: 4, Insightful

      Now people will argue that a server is not scalable either, but you can always have 5000 servers serving up that same static data. You really can't expect 5000 servers to access a single database and expect the database to survive.

      Of course other people may argue that the solution would be to take those 5000 servers and divide them up: run a database service across a few hundred of them, have a few thousand web servers that do the real request processing and then let the rest of the machines be web-facing machines that cache the results for a few seconds to decrease load on the real webservers.

      --
      UK Webhosting http://xeriom.net
    20. Re:How to Suck in 21 days! by Anonymous Coward · · Score: 0

      Well if it looks like crap, smells like... oh, nevermind.

    21. Re:How to Suck in 21 days! by cloudmaster · · Score: 4, Informative

      Yeah, it's impossible to add extra database servers.

      It's also unlikely that one could find a database server that can cache the results of identical queries when the data hasn't changed, significantly speeding up access to nearly-static data.

      It's downright insane to consider using proper cache-control headers and a caching proxy in front of a web server farm.

      It's sure too bad that these solutions can't be solved by merely hiring a competent sysadmin who's willing to relocate, 'cause that's be far too convenient. :)

      It'd probably be easier to teach everyone in the company good HTML.

    22. Re:How to Suck in 21 days! by Anonymous Coward · · Score: 0

      The database development standard can lead to some VERY stupid design ideas. People seem to think that just because you CAN do it with MySQL, that means you SHOULD do it that way.

      I wish I could elaborate on some of the truly moronic ideas my boss has asked me to implement, but he's touchy. And he reads Slashdot.

    23. Re:How to Suck in 21 days! by Phil06 · · Score: 1

      Recall, however, that every browser did a good job of displaying poorly written HTML. If they hadn't, and only displayed if HTML was flawless, they would have faced a far greater backlash. I would guess less than 1% were truly faithful to any particular doctype back in the early days, perhaps 10% now.

      --
      "...and yet, I blame society" Duke - Repo Man
    24. Re:How to Suck in 21 days! by the_womble · · Score: 1
      I recently tried doing a smallish (few hundred page) site using static HTML + includes + a few fragments of PHP to try something out. It did not take me long to find out that this was ludicrously high maintainance.


      So:


      A small site without much traffic needs a CMS (and therefore dynamically generated pages) because its easy and as a small site is unlikely to be that busy the performance hit is not important - that is why blog tools are popular.


      On the other hand a site that is anything other than very very small will be unwieldy to maintain as a static site.


      A small (in number of pages) site that is high traffic would make sense as a static site - but that is hardly likely to be common.


      A site that is likely to be rarely changed may also be OK with static HTML, however the last time I tried this it turned out it needed updating more often than I expected, so it did not work out too well.


      Now there is a good argument for serving static (cached)


      An approach which seems to becoming easier. I was quite surprised to discover that even some blogging software can cache (Wordpress with a plugin).

    25. Re:How to Suck in 21 days! by Mycroft_VIII · · Score: 1

      I've been on the web (almost said online, that goes back even farther) and internet since late 95, seems to me it's gotten less useable and readable, not more.
      I used to be able to read a site without having to play games with the screen resolutions and font sizes and still wasting 1/3 of the horizontal resolution of my monitor for starters.
      On the rare site that didn't work (usually a bad link where / and \ got confused or an obvious misspelling such as htm for html or vice versa) a quick glance at the underlying html almost always revealed the problem and suggested the solution.
      Now you've got how many 'standards' do define a web page and what kinda useless unreadable crap is the result?

      Mycroft

      --
      https://signup.leagueoflegends.com/?ref=4c3ed6600b6ea
    26. Re:How to Suck in 21 days! by Fulcrum+of+Evil · · Score: 1

      On the other hand a site that is anything other than very very small will be unwieldy to maintain as a static site.

      That's hardly relevant. The topic is focused on the operational issues a website faces, not its admin issues. A dynamic site can very easily use a caching layer to improve performance with little to no admin cost.

      --
      "We returned the General to El Salvador, or maybe Guatemala, it's difficult to tell from 10,000 feet"
    27. Re:How to Suck in 21 days! by Fulcrum+of+Evil · · Score: 1

      run a database service across a few hundred of them

      So very bad. you're going to take a hundred webservers and make them be a database? The requirements are vastly different. You would be better off autogenerating parts of the site and pushing them to the webservers.

      --
      "We returned the General to El Salvador, or maybe Guatemala, it's difficult to tell from 10,000 feet"
    28. Re:How to Suck in 21 days! by Fulcrum+of+Evil · · Score: 1

      The stupid programmer: can't figure out this RDBMS thang and resorts to stuffing the results of queries into the Unix file system.

      And the smart one recognizes when cached content results in lowered DB load and increased availability. Calling someone stupid for their approach without addressing why is, to be blunt, also stupid.

      --
      "We returned the General to El Salvador, or maybe Guatemala, it's difficult to tell from 10,000 feet"
    29. Re:How to Suck in 21 days! by stevey · · Score: 1

      You can also speed up dynamic websites with caching - with the memcached software.

      Slashdot, Livejournal, and other sites use that tool.

    30. Re:How to Suck in 21 days! by Shaper_pmp · · Score: 3, Informative

      "For years practitioners used the Web and its language, HTML, as a free format and layout platform for forms and documents (often as paint for software applications)."

      You can use a drinking-well as a urinal, but that doesn't make it a good idea. And it certainly doesn't mean you'll get anything worth having out of it later.

      The fact that HTML (and browsers) allowed such horrible, buggy, quirky markup has done more to retard content aggregation and the further development of the web than practically any other force in computing.

      Sure, in the early days it made sense to keep the barrier to entry low, to get people on-board. It fuelled the growth of the web, and allowed any idiot with five minutes and Frontpage to put up a page announcing to the world what a L33T h4xx0R they were in bright clashing colours on an unreadable patterned background.

      This is akin to offering people a blank sheet of paper instead of a form with distinct questions and answer-boxes - useful, because they can write whatever they want and don't have to think about it, but much, much harder to do anything with later.

      There's a reason we have paper forms, and a reason all non-trivial data is stored in some form of database[1] - unstructured information is useless. It only becomes useful when it's structured - when it stops being just information and becomes data

      Why is XML/RSS/ATOM more tightly-structured than HTML? Why can't we straight aggregate HTML instead of having to invent a new file format? Because HTML is now fundamentally broken for automatic syntactic parsing of data.

      "Then along comes the W3C to proclaim to those practicing this craft: "HTML is not a format and layout language"."

      It isn't. Or, at least, wasn't intended to be - HTML was originally envisioned by Tim Berners-Lee as a semantic markup language - it's only later development and the commercialisation of the web that lead to it being almost exclusively presentational. A new effort (the Semantic Web) is now being made on this front - old, broken, misused HTML is being retired in favour of semantic XHTML, CSS for presentation, javascript/ECMAScript for interactive behaviour and XML for interoperability/data representation. All open languages and standards, you'll note.

      "They then proceed to break all the existing code that's out there in the name of that proclamation."

      What's broken? Show me a mainstream browser that doesn't passably support all the way back to HTML 1.0. Sure, it entails some extra work for the browser manufacturers, but I find it hard to feel bad for them, since they (with lax enforcement of HTML grammar, proprietary extensions and the like) contributed so hugely to the mess in the first place.

      "It may be coincidence that the W3C is filled with representatives of companies who make billions of dollars selling what are essentially formatting and layout platforms for forms and documents... "

      Oh please - this is the worst tinfoil hat argument I've ever heard. Oooh, oooh, the companies who benefit from breaking interoperability, introducing proprietary extensions and generally grabbing the fast buck are pushing more interoperability, stricter standardisation and long-term game-plans that drastically improve the entire architecture of the net. Sorry - not following you on that one.

      If it was really an industry cartel dictating the future of the web for their own ends, XHTML would have been replaced with an unreadable binary format, with unlimited proprietary vendor- and platform-specific extensions. It would be incredibly difficult to learn, rather than basically identical to HTML but ever-so-slightly stricter. They certainly wouldn't be publishing and pushing the standards for free - they'd be charging for them, attaching licence conditions to them. And they wouldn't be providing on-line validators for free - you'd be expected

      --
      Everything in moderation, including moderation itself
    31. Re:How to Suck in 21 days! by StabbyTHings · · Score: 1

      But then looking at it from the other direction, the suggestion was that we take a database driven site, convert it to a static site and serve it from a huge number of normal servers - the requirements would indeed be very different and by the time such a site has scaled to 5,000 servers it's likely that we'd have several hundred database servers already.

      --
      UK Webhosting http://xeriom.net
    32. Re:How to Suck in 21 days! by Anonymous Coward · · Score: 0

      Hunh? You're saying you can write in structured text, convert to XML then generate HTML, but you can't write in structured text and then convert directly to HTML?

      Yes. HTML is impossible to maintain for more than a few pages, but generating HTML is not harder than generating XML and converting it to HTML. The opposite, if anything.

    33. Re:How to Suck in 21 days! by Just+Some+Guy · · Score: 1
      when it stops being just information and becomes data

      Nitpick: those terms are typically reversed. That is, data is the raw set of measurements and observations about something. After proper distillation, it becomes information.

      --
      Dewey, what part of this looks like authorities should be involved?
    34. Re:How to Suck in 21 days! by Fulcrum+of+Evil · · Score: 1

      the requirements would indeed be very different and by the time such a site has scaled to 5,000 servers it's likely that we'd have several hundred database servers already.

      You don't need 100 datbase servers, just one or two. You can take portions of your site and autogenerate it from the DB driven 'master', then distribute those to the 5000 webservers. Meanwhile, the DB can handle the load of the remaining portion, which is necessarily dynamic.

      --
      "We returned the General to El Salvador, or maybe Guatemala, it's difficult to tell from 10,000 feet"
    35. Re:How to Suck in 21 days! by StabbyTHings · · Score: 1

      I think that our solutions would work well, but both are optimised for different kinds of sites. For sites which frequently update the content of several areas your method would require a generation run every few minutes which would put a lot of strain on the database servers. If the site isn't updated that frequently, or if you don't mind waiting perhaps a few hours for the content to be updated then I agree that your method is a good one.

      --
      UK Webhosting http://xeriom.net
    36. Re:How to Suck in 21 days! by louismullie · · Score: 1

      Or are you suggesting to handle data mirroring across 5000 servers ? That seems easier...

    37. Re:How to Suck in 21 days! by rainman_bc · · Score: 1

      Just to point out that if you have a web app simply making a trip to a db, you have increased load. Caching it on the local filesystem (or RAM if you can afford it) results in increased performance because a required connection isn't even made.

      Alas if I was a stupid programmer, you'd also be calling the guys who wrote Coldfusion, Smarty for PHP, and Crystal Reports stupid as well; they are some of the platforms who've given content caching features in various platforms. There's many more too.

      Also, I think you have the faintest clue what caching is used for in the DB. It's all about execution plans. All stored procs have a cached execution plan. That results in increased performance because the query doesn't need to be parsed by the optimizer. What happens if you make an ad-hoc query is the execution plan is retrieved from the cache if the RDMBS server has seen the query recently, rather than parsing out the query again.

      --
      09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
  4. Oblig by Anonymous Coward · · Score: 5, Funny

    Haha, a web design book being reviewed on Slashdot. Oh, the ironing is delicious.

    1. Re:Oblig by Anonymous Coward · · Score: 1, Funny
      the ironing is delicious

      You would be the one to grok Chomsky's own: "Colourless green ideas sleep furiously"

    2. Re:Oblig by Inkieminstrel · · Score: 4, Funny

      the ironing is delicious.
      I get this image of cooking french toast on an iron. Ooh you could fill the iron with syrup which would drizzle all over the toast when you pushed the steam button.

      Sorry, I skipped lunch.

    3. Re:Oblig by nizo · · Score: 2, Funny

      Just be careful not to burn your tongue if you decide to lick the iron after you are done cooking.

    4. Re:Oblig by Anonymous Coward · · Score: 0

      Now all they need is a way to close those darn italics tags on the front page!

    5. Re:Oblig by Anonymous Coward · · Score: 0
    6. Re:Oblig by siriuskase · · Score: 1

      http://del.icio.us/tag/ironing has a surprising number of entries.

      --
      If you must moderate, please moderate as irrelevent, not something bad, because I'm sure someone will find this interest
    7. Re:Oblig by FuzzyBad-Mofo · · Score: 1

      It tastes like burning!

      /ralph
  5. Web standards!!?? by bogaboga · · Score: 3, Insightful
    I was supprised when my post http://slashdot.org/comments.pl?sid=149370&cid=125 24267 was replied by one slashdotter to the effect that no browser today has 100% W3C compatible implementations. Why is this the case? In authoring the post, I was of the impression that Firefox is 100% compliant.

    This begs the question: "Whose implementation does this book emphasize/teach?"

    1. Re:Web standards!!?? by imemyself · · Score: 1

      Wouldn't Amaya (W3C's browser) be compliant? Granted, it sucks horribly, but I'd be surprised if it wasn't totally compliant.

      --
      Every time you post an article on Slashdot, I kill a server. Think of the servers!
    2. Re:Web standards!!?? by Anonymous Coward · · Score: 0

      Whose implementation does this book emphasize/teach?

      Well, I think the point is to emphasize a standard, not an implementation.

    3. Re:Web standards!!?? by Anonymous Coward · · Score: 0

      I was of the impression that Firefox is 100% compliant.

      No browser really cares about standards. Example:
      <div style="float:left"><div style="float:right">lol<div><div>
      Since the divs are floating, they should shrink to as wide as their contents only (resulting in the text being on the left) but in both FF and IE the outer one gets stretched out to 100% width, so the text ends up on the right.

    4. Re:Web standards!!?? by JTunny · · Score: 1

      I could see this happening if the Firefox developers thought the w3c spec was incorrect or lacking in some manner.

      Just a guess ...

    5. Re:Web standards!!?? by ShinmaWa · · Score: 4, Informative

      Wouldn't Amaya (W3C's browser) be compliant? Granted, it sucks horribly, but I'd be surprised if it wasn't totally compliant.

      Then suprise is your meal of the day. Amaya not only failed the acid2 test, but actually did much worse than even Firefox. Here's a screenshot for your amusement.

      --
      The /. Effect: Thousands of users simultaneously accessing a site to not read its content.
    6. Re:Web standards!!?? by arkanes · · Score: 1

      Prepare to be suprised. It's not even as compliant as IE, overall. It doesn't have nearly the manpower that any of the major browers do.

    7. Re:Web standards!!?? by nine-times · · Score: 3, Insightful
      Well, I think for the most part it's not intentional. You know, there are occasional rendering bugs-- not the sort of thing you see on most pages. Usually it's in aspects of the standards that aren't used that often, and so they just tend to go unnoticed by users, and they aren't a big priority for the developers.

      Sometimes the standards are just vague enough that cases pop up where it's not clear what the rendering engine is supposed to do, or the standards don't cover every possible case, so each browser might handle those cases a little differently.

      So, I guess the thing to remember is that the W3C sets down what each tag should do and how, but then the people making the browsers have to actually come up with a system that takes those tags and does those thing with them. It's just not as easy as plugging in the W3C standards and you have a web browser.

    8. Re:Web standards!!?? by telbij · · Score: 4, Interesting

      Why is this the case? In authoring the post, I was of the impression that Firefox is 100% compliant.

      The reason is because the spec is incredibly difficult to implement. Mozilla is damn close to full compliance, but the fact is that the CSS spec suffers from varying levels of vagueness when it comes time to actually sit down and implement a rendering engine.

      The real problem is that it's impossible to anticipate all the ways that people might attempt to use CSS, and the gray areas can really only be standardized by browser makers after years of web development by the public at large. CSS 2 is really just starting to hit its stride now that Netscape 4 is effectively dead, but it won't be able to take another quantum leap until IE6 is dead (assuming IE7 makes good on their standards-compliancy promises).

      Sadly, web design is one of the most difficult technical disciplines because browsers grew like cancer in the 90s and now the browser makers are all obligated to support all that cruft. IE has some truly mind boggling bugs that will probably have to remain because people depend on that buggy behaviour.

      Ah, well, that's job security for me.

    9. Re:Web standards!!?? by Anonymous Coward · · Score: 0

      That's how it's supposed to work; div's are block level elements.

    10. Re:Web standards!!?? by Carewolf · · Score: 2, Insightful

      No it is not. Firefix has about 90% of CSS 2.1 and XHTML implemented and they have saved the hard parts for last. It seems Gecko is not very easy to extend with new basic functionality. Just look at how much trouble implementing "display: inline-block" have caused.

      Both Opera and Konqueror have implemented a lot more.

    11. Re:Web standards!!?? by Anonymous Coward · · Score: 0

      A standard without an implementation is a tree-falls-in-the-forest thing.

    12. Re:Web standards!!?? by Anonymous Coward · · Score: 0

      The IE team have only said they'll "improve" css support. Not have a full implementation, or necessarily, even anything close... which is why it won't be the last time I spend 4 hours trying to hack one thing which took ten minutes to do with standards compliant code.

    13. Re:Web standards!!?? by Anonymous Coward · · Score: 0

      Since the divs are floating, they should shrink to as wide as their contents only

      That may be true in CSS 2.1, but CSS 2.0 required widths to be explicitly set on floating non-replaced elements.

    14. Re:Web standards!!?? by Audacious · · Score: 1
      Why not just throw out everything and have everyone use COBOL?

      Hey! It uses sentences, you set up what the screen should look like in advance, and it can now even handle graphics. What more could you want?

      ;-)
      [For the joke impaired - this is a joke!]

      --
      Someone put a black hole in my pocket and now I'm broke. :-)
    15. Re:Web standards!!?? by bjdevil66 · · Score: 2, Interesting

      These are all great points, and I can't wait for CSS2 to be more fully implemented and for IE6 to be replaced to allow more robust CSS2/XHTML development.

      However, as broadband usage propogates, web dev products that can deliver entire web applications to the desktop/browser before the content is even seen (such as Macromedia's Flex or MS's XAML) will eventually become the tool of choice for web development because 1) they ensure "standardized" layout, and 2) the end product is much sleeker and user-friendly. CSS2 standardization in IE and elsewhere will be much less meaningful at that point.

      This was probably MS's vision of the future until Firefox forced them back to IE development.

    16. Re:Web standards!!?? by gregfortune · · Score: 1

      display: inline-table was the most recent lacking I've run into. See https://bugzilla.mozilla.org/show_bug.cgi?id=18217 . It's been on bugzilla since 1999 :(. Effects like http://glish.com/css/1.asp are basically impossible if you slap a table width="100%" in the body next to the right side menu.

  6. Yeah, I'm getting ready... by ilikeitraw · · Score: 4, Funny

    ... to launch my CSS3 compliant site.
    I setup my cron to push the site live in 2007.

    1. Re:Yeah, I'm getting ready... by TheRaven64 · · Score: 1

      I used some CSS3 a while back. One of the nice features it had was that it could explicitly state page breaks, headers and footers. This made it possible to make pages specifically targeted for printing. Of course, the only browser that actually understood was Opera, which made the whole effort something of a waste of time...

      --
      I am TheRaven on Soylent News
    2. Re:Yeah, I'm getting ready... by Anonymous Coward · · Score: 0

      I setup my cron to push the site live in 2007.

      (Attention. Pedantic mode on.)

      Er, cron is suited for repeated tasks.

      Perhaps you meant to setup an at job?

    3. Re:Yeah, I'm getting ready... by Anonymous Coward · · Score: 0

      Printed media supporting control of page breaks was impliminted in CSS2.x. Funny, I recently did a resume in XHTML/CSS, intended for Opera only, but could never get the page breaks to function what so ever.

      body > div { page-break-inside: avoid; } seemed like it should prevent (if possible) page breaks in my top level divs, but oh well.

  7. Mod parent down by tehshen · · Score: 1, Funny

    Obviously a troll.

    Have you no eyes, man?

    --
    Guy asked me for a quarter for a cup of coffee. So I bit him.
  8. Elaboration? by Capt'n+Hector · · Score: 5, Insightful
    Strategies overcoming browser quirks are discussed throughout the book.

    For ANY web designer who has at least some experience with html/css, this is the single most difficult aspect of web design. That is, getting the page to work in all the popular browsers takes the most time and really has no logic to it. What I would like to see is a book that skips all the fluff that we've seen before and goes straight to browser bugs. If they can be avoided in the first pass at making a web site it makes perfecting the final presentation all that much easier.

    --
    Quid festinatio swallonis est aetherfuga inonusti?
    Africus aut Europaeus?
    1. Re:Elaboration? by DrEldarion · · Score: 4, Insightful

      If they can be avoided in the first pass at making a web site it makes perfecting the final presentation all that much easier.

      Which is funny, because the easiest way to make everything show up perfectly is to use plain HTML, which goes directly against the purpose of the book.

    2. Re:Elaboration? by telbij · · Score: 4, Informative

      What I would like to see is a book that skips all the fluff that we've seen before and goes straight to browser bugs.

      Absolutely. There are a million tutorials that will teach you all about CSS in theory, and once you have a reasonable base knowledge you can actually go into the W3C spec itself and dig into the details, but when it comes time to make your pretty new XHTML/CSS2 page work in IE you better have a boatload of knowledge.

      After 5 years, and the thankful death of NS4 and IE5 (for the most part), I can debug my XHTML/CSS pages extremely efficient, but good references are still necessary. My two favorites:

      CSS-discuss mailing list wiki
      &
      Position is Everything

    3. Re:Elaboration? by kwalker · · Score: 1

      I agree that compatibility is the longest, most time consuming and boring part of developing a website.

      The problem is that any book that has a comprehensive list of browser bugs will be outdated by the time it hits the shelves. Firefox and Mozilla change quickly, Opera and Sefari, nearly as quickly. IE is the only thing that hasn't changed much recently, but with IE7 coming out soon, the only thing the book could cover are old and unsupported browsers anymore.

      --
      ... And so it comes to this.
    4. Re:Elaboration? by Anonymous Coward · · Score: 0

      Write valid CSS and XHTML, and damned be the bugs. It's the browser's fault, not yours.

    5. Re:Elaboration? by Mr.+Slippery · · Score: 1
      After 5 years, and the thankful death of NS4 and IE5 (for the most part)

      NS4, maybe (though I still see occasional hits). But I see plenty of hits from IE5 in my logs - in fact, I see more IE5.x hits than I do Netscape (all versions) hits.

      --
      Tom Swiss | the infamous tms | my blog
      You cannot wash away blood with blood
    6. Re:Elaboration? by Moofie · · Score: 1

      "What I would like to see is a book that skips all the fluff that we've seen before and goes straight to browser bugs."

      That'd be a different book for every instance of the class "we". Unless you've got some kind of hive-mind action going on over there, Locutus.

      --
      Why yes, I AM a rocket scientist!
    7. Re:Elaboration? by Anonymous Coward · · Score: 0

      What's "plain HTML"?

      Semantic, standards compliant xhtml will display on anything and pass an XML parser.

      It's not the designers job to make "everything show up perfectly", this isnt print or TV, you have no idea about the capabilities of the device used to view your content.

    8. Re:Elaboration? by dominion · · Score: 1

      Do you know what I want to see? I want to see that killer app that everyone wants to use require Firefox or another decently CSS-standard following browser.

      Imagine if GMail, even just in it's beta phase, had said 'Sorry, Internet Explorer does not support the features necessary to use this website. Download Firefox for free here.' Imagine what that could have done to pressure microsoft to start supporting the standards.

      I really think all it's gonna take is somebody with the right application that everybody wants to use, and the moxie to give ol' Internet Explorer the finger.

    9. Re:Elaboration? by dotgain · · Score: 1
      Nice idea, noble cause, and a crisp hundie to bet that it won't ever happen.

      IE is not the most popular browser because it's the best. Apathy, zealotry, ignorance. That's what fuels the beast. Oh, and the quintillion web pages that only work in IE. Maybe not the majority of web pages, but the company I just left develop using .NET - and all of the webapps need IE. Anything else and you've got a page full of XML, or a few hundred buttons all laid over one-another.

    10. Re:Elaboration? by shmlco · · Score: 1
      Ask and you shall receive...

      The Zen of CSS Design

      From the folks at http://www.csszengarden.com./

      --
      Any sect, cult, or religion will legislate its creed into law if it acquires the political power to do so.
    11. Re:Elaboration? by Anonymous Coward · · Score: 0

      Looks like someone just took a moment to catch their breath from a rant-fest that occurs under every article that mentions MS and see if anything interesting was going on anywhere else. Nope, nothing interesting for you here. You may return to your "discussion".

    12. Re:Elaboration? by rsheridan6 · · Score: 1

      There'll be new bugs with IE7, no doubt, but it'll be a long damn time before the market share of IE6 drops to the point where you can ignore it for anything more important than posting pictures of your cat.

      --
      Don't drop the soap, Tommy!
    13. Re:Elaboration? by Anonymous Coward · · Score: 0

      Lol exactly. Html is still king for display plain and simple. DTD and XHTML is just plain cumbersome and a pain in the ass to use. Typical geek hype. HTML is sound technology that simply works best for display. and dont confuse it with XML those are completely different animals. It would be nice if browser could actually parse XML instead of dealing with all the seperate parser crap etc. Ahh as usual Im sure MS will make this happen. No offense but the unix folks wouldnt even think of such an idea.

    14. Re:Elaboration? by telbij · · Score: 1

      So far this month I have about 2% IE 5-5.5 and 1.9% NS 7. Interestingly I have about twice as many NS3 hits as I do NS4

      Anyway though, I guess my point is that in contrast to 3 or 4 years ago when IE5 was still a major shareholder, now I only care that those users can access the site... if non-critical rendering problems I just ignore them.

    15. Re:Elaboration? by superflippy · · Score: 1

      The highly useful Netscape DevEdge site used to have a CSS support chart for all major browsers before it went down. But until the content resurfaces elsewhere (I think the Mozilla org has said they will resurrect it eventually), here are some useful tips for working around CSS browser bugs:
      Hide CSS from Buggy Browsers

      I mostly use media="all" to hide stylesheets from old browsers, then use the child selector trick to hide stuff from IE. For example:
      #container {margin: 0px 3px 2px 0px;} /* style for IE */
      body>#container {margin: -2px 2px 2px -2px;} /* for all other browsers */

      --
      Your fantasies contain the seeds of important concepts.
    16. Re:Elaboration? by handslikesnakes · · Score: 1

      You haven't the slightest idea what you're talking about, do you?

    17. Re:Elaboration? by siriuskase · · Score: 1

      If Google had one that, GMail wouldn't have taken off much at all except for amongst the same geeks that are all excited about Greasemonkey. GMail would have marked you as the kind of person who liked to be outside of the mainstream business world.

      --
      If you must moderate, please moderate as irrelevent, not something bad, because I'm sure someone will find this interest
  9. Baby + Bathwater by 99BottlesOfBeerInMyF · · Score: 5, Insightful

    Newer, more compliant browsers, will in time not support the older tags and code;

    Yeah that's a great idea. Lets just stop supporting a simple markup and make it impossible to view all the legacy HTML in existence. While we're at it let's force everyone to change to a newer, more complicated standard, even if they have no need for it.

    Now I'm all for using CSS and XHTML, but that is because it makes things easier to maintain for me. Calling for browsers to stop supporting HTML, however, is taking it about three steps too far.

    1. Re:Baby + Bathwater by Anonymous Coward · · Score: 1, Informative
      Yeah that's a great idea. Lets just stop supporting a simple markup and make it impossible to view all the legacy HTML in existence.

      Ummm, you do realize that "not supporting" the older tags just means they'll have no effect, not that their content won't show up, right? Please tell me that despite appearances you're not foaming at the mouth like this without at least a rudimentary understanding of how these things actually work.

      While we're at it let's force everyone to change to a newer, more complicated standard, even if they have no need for it.

      Nope, you don't have clue, do you? If someone wants to author dead simple HTML and put it out there, they're free to do so. Nobody's stopping them. It'll work just fine.

      If they want to jazz things up, modern HTML + CSS gives them plenty of ways to do that, from the vapidly simple to the hideously complex. Their choice.

      Or perhaps you wish there was no choice, so those (like you perhaps?) who don't wish to put a little effort into learning their craft won't look incompetent next to those who do?

    2. Re:Baby + Bathwater by Anonymous Coward · · Score: 0

      Yeah that's a great idea. Lets just stop supporting a simple markup and make it impossible to view all the legacy HTML in existence.

      So exactly why will the world end if browsers stop listening to, say, the <font> element type? How will it "make it impossible to view all the legacy HTML in existence"? Oh wait, it won't.

    3. Re:Baby + Bathwater by Anonymous Coward · · Score: 0

      Yeah, the next thing that happens is that they will make my old TV not work anymore, and I will have to go and buy a new HDTV to watch my programs, oh wait....

    4. Re:Baby + Bathwater by 99BottlesOfBeerInMyF · · Score: 2, Interesting

      Ummm, you do realize that "not supporting" the older tags just means they'll have no effect, not that their content won't show up, right?

      The variable names are shown in italic text and the keywords are in bold. Any text in red indicates a command that requires su.

      Oh wait, I guess the bold, italic, and font tags don't work anymore. That will really make the document usable. You know there are literally thousands of examples like that on the internet and in documentation all around the world. Markup tags are vital, in many cases, to understanding the content.

      Nope, you don't have clue, do you?

      Opinionated much?

      It'll work just fine.

      Except the tags they use won't be supported and may or may not work (if the reviewer's wishes were to come to pass).

      HTML + CSS gives them plenty of ways to do that, from the vapidly simple to the hideously complex.

      Sorry without a wysiwyg editor CSS is just not as simple, especially for a novice as plain olde fashioned HTML.

      Or perhaps you wish there was no choice, so those (like you perhaps?) who don't wish to put a little effort into learning their craft won't look incompetent next to those who do?

      If you'd bothered to finish reading my post instead of running off at the mouth like a lackwit you would have noticed that I appreciate having both CSS and XHTML, both of which I use regularly. Not supporting plain HTML is not giving user's choice, it is railroading them into using newer formats. Choice is supporting both and luckily I don't think any browser project would be foolish enough to stop supporting the basics of HTML anytime in the next decade.

    5. Re:Baby + Bathwater by Fractal+Dice · · Score: 2, Insightful
      Calling for browsers to stop supporting HTML, however, is taking it about three steps too far.

      I agree. Document standards need to be thinking about archival timeframes. I don't write web sites that change every day, I write things once and plan to pass them down to the next generation. I want to be able to go back 40 years from now to a family website and still be able to access it. That's far, far more important to me than any wiz-bang formating fad.

      ( then again, I guess HTML is the fad I embraced in moving away from plaintext. *sigh* )

    6. Re:Baby + Bathwater by Anonymous Coward · · Score: 0

      > How will it "make it impossible to view all the legacy HTML in existence"? Oh wait, it won't.

      It may be possible to view it but not necessarily understand it.

    7. Re:Baby + Bathwater by DavidD_CA · · Score: 1

      No kidding. I about choked on my Mountain Dew when I read that.

      'Cause you have to admit.. that Plain Text file format sure is ancient and no one uses it any more.

      Tab delimited... what were they thinking?

      --
      -David
    8. Re:Baby + Bathwater by Anonymous Coward · · Score: 0

      That's a bad example, since a) existing element types could have been used (e.g. ), and b) the root of the problem is that the document doesn't follow basic accessibility guidelines.

    9. Re:Baby + Bathwater by elrous0 · · Score: 1
      Ummm, you do realize that "not supporting" the older tags just means they'll have no effect, not that their content won't show up, right?

      Do you have any idea how html works?

      Yeah, the content might still be there, but if tags like <table>, <tr>, and <td> aren't recognized anymore; it could be completely unreadable or displayed in God-knows-what order.

      Without layout, many complex pages would be about as readable as a foreign language.

      -Eric

      --
      SJW: Someone who has run out of real oppression, and has to fake it.
    10. Re:Baby + Bathwater by GaryPatterson · · Score: 1

      So, you advocate *reducing* functionality when there are a few hundred million plain html pages out there.

      It'd be a brave developer who tried to sell a product with the tag "Now with 30% LESS functionality!" or "Old pages appear like crap!"

      The old tags, while largely redundant in the new world of CSS + DHTML should still be rendered correctly until there is a reason to believe that no old-style pages are being viewed. Browsers *should* support both legacy and new pages, as that maximises choice for consumers, and should render every tag correctly if possible. ... of course, when we all shift to Microsoft's Internet II to escape the viruses and trojans of the current Internet (which will implode under the irony of the situation), we'll remember to dump the old HTML pages and use cool new CSS ones instead.

    11. Re:Baby + Bathwater by handslikesnakes · · Score: 1

      Ever used lynx? No table support there.

      HTML is designed so that a properly set up page will make sense even displayed in you-know-what order. (that order being the same order they are in the document)

      If changing the layout makes your document unreadable, your document is broken.
    12. Re:Baby + Bathwater by Short+Circuit · · Score: 1

      It'd be a brave developer who tried to sell a product with the tag "Now with 30% LESS functionality!" or "Old pages appear like crap!"

      But a smart marketer who replaced that with, "New, cleaner API that promotes increased technological understanding."

      Similar to replacing "doesn't work with anything else" with "proprietary."

      In short, it doesn't matter what the differences between version A and version B of a product are...as long as you have a good marketer, you'll make your sales quota.

    13. Re:Baby + Bathwater by Anonymous Coward · · Score: 0


      "New, cleaner API that promotes increased technological understanding."

      Wow, you could sell snow to Eskimos!

    14. Re:Baby + Bathwater by Short+Circuit · · Score: 1

      Wow, you could sell snow to Eskimos!

      Would you like some? Unlike other brands, our snow comes in a compact, easy-to-use form that we prepare with our patent-pending M3lt1ng technology.

      We also offer pristine, high-quality snow unsullied by man or animal.*

      (*) May contain concentrations of diesel fuel not approved by the FDA. But you're Native Americans...you don't need to worry about what the FDA says.

  10. Hehehe by TheSpoom · · Score: 0, Redundant

    Ah, the irony of a review of a web standards book being posted on Slashdot, which still uses the FONT tag.

    --
    It's better to vote for what you want and not get it than to vote for what you don't want and get it.
    - E. Debs
    1. Re:Hehehe by Anonymous Coward · · Score: 0
      Ah, the irony of a review of a web standards book being posted on Slashdot, which still uses the FONT tag.

      Clearly this has you broken up. I recommend taking a hot bath, and having someone throw in your plugged-in monitor after you.

      I mean, do you really give a shit what the fuck the tags are? You must one of eight people on the planet that goes View-->Source to find out if a web page is compliant. Get a life, or stick your finger in the toaster, one of the two.

    2. Re:Hehehe by ScentCone · · Score: 1

      You can take my tagged list of named fonts when you pry it out of my cold, dead, single-get static files.

      Well, maybe not. But I'll be damned if I'll switch from <B> to <strong>. Why store and transmit all those extra characters? It's just silly.

      --
      Don't disappoint your bird dog. Go to the range.
    3. Re:Hehehe by Anonymous Coward · · Score: 0


      Besides, Netscape doesn't even recognize the "<strong>" tag..

      Perhaps, the latest version does. I haven't dealt with this in a few months.

    4. Re:Hehehe by borawjm · · Score: 1

      Doesn't MS Frontpage still publish using the tag?

      I'm working on a website where the original author used the MS FrontPage WYSIWYG to create all of his pages. There are <font> tags all over the place. I've been converting most of it over to css so that I can control its formatting more.

      HTML code looks so ugly when it comes out of a WYSIWYG editor such as FrontPage, DreamWeaver, or even Adobe ImageReady.

    5. Re:Hehehe by The+FooMiester · · Score: 1

      And with a teaser that fails to close the i tag and leaves the rest of the stories on the slashdot page in italics!

      --
      The previous has been a secret message to my comrades.
    6. Re:Hehehe by Anonymous Coward · · Score: 0

      You fucking idiot, recent versions of netscape are gecko engine browsers which support XHTML just fine.

    7. Re:Hehehe by rainman_bc · · Score: 1

      ...From to ...

      No, it'll be from <b> to <span style="font-weight: bold;"></span>

      --
      09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
    8. Re:Hehehe by sleighb0y · · Score: 1

      View --> Source

      Hello IE user.....

    9. Re:Hehehe by Roofus · · Score: 1

      Embedding CSS into your XHTML is asinine. You should really keep it in a seperate document.

      In a seperate doc, the browser will cache it, and save you from having to transmit all 3 or 4k each successive page you load.

      Think of the children!

    10. Re:Hehehe by rainman_bc · · Score: 1

      I know, I was shooting for the Funny mod, not the Insightful one haha...

      lol I know better. Sometimes... When I'm not lazy.

      --
      09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
    11. Re:Hehehe by ScentCone · · Score: 1

      recent versions of netscape are gecko engine browsers which support XHTML just fine

      I still see about 1-2% Netscape v2/3 visiting some of the sites I host for my customers. Pretty amazing.

      --
      Don't disappoint your bird dog. Go to the range.
    12. Re:Hehehe by Anonymous Coward · · Score: 1, Insightful

      or opera or elinks or konquerer or Netscape 4.x...

    13. Re:Hehehe by dotgain · · Score: 1
      No, it'll be just be

      Then you'll assign whatever other styles you want in your CSS to the strong tag.

      The purpose of <strong> over <b> is that text-to-speech readers will read it "strongly". The <strong> tag is not really intended for text markup, but it's default action if not defined otherwise is to bold the text, and - if we're reading to a blind surfer - speak the text strongly so they're aware of some sort of emphasis on it.

      There's a hundred and one things hand html coders could do for the impaired browser with html that doesn't otherwise affect people viewing the page normally.

    14. Re:Hehehe by BinnyVA · · Score: 2, Informative

      Try using some HTML formating progams like HTMLTidy. They really reduced the work for me when I had to do a job similar to yours.

    15. Re:Hehehe by Mycroft_VIII · · Score: 1

      Netscape 3.0gold was my favorite back in the day.
      Never really cared for IE just kinda got used to it on windows for a while till I got a decent ver of FF (.8 IIRC).
      Can't say I blame some people for using ns3. FWIW my uncle (who's partly responsible for my early days in computers) refuses to budge from win3.1 + NS3.0.

      Mycroft

      --
      https://signup.leagueoflegends.com/?ref=4c3ed6600b6ea
  11. Gilding the lilly by XxtraLarGe · · Score: 1

    XHTML brings some nice and obvious changes to HTML (such as single tags for new paragraphs), but at the same time, I don't understand why "strong" is better than "b" for bold, or "em" is better than "i" for italics. IMHO, less typing is better, even if most people now use some sort of graphical editor like Dreamweaver.

    --
    Taking guns away from the 99% gives the 1% 100% of the power.
    1. Re:Gilding the lilly by Anonymous Coward · · Score: 0
      I don't understand why "strong" is better than "b" for bold, or "em" is better than "i" for italics.

      Because (wait for it!) "strong" doesn't mean bold, it means strong. Similarly, "em" doesn't mean italics, it means emphasize (or something like that, anyway). It's semantic markup -- mark up the text for what it means, not how it should be displayed. I'd explain more, but others have said it better before me, and I'm sure you know about this new-fangled Google thingy.

      IMHO, less typing is better, even if most people now use some sort of graphical editor like Dreamweaver.

      Sigh. Less typing is a good goal, but clarity of markup is an even better one.

    2. Re:Gilding the lilly by tehshen · · Score: 5, Informative

      Super quick whizzbang explanation:

      <b> and <i> are visual tags: they make text look bold or italicised without altering the meaning of the sentence they are in. <strong> and <em> are logical tags: <strong> provides emphasis in web page readers, as well as looking bold, for example. <em> does the same, but renders differently in text browsers. There are other italic tags such as <cite> that are used for citing references, for example.

      This page says it better than I do.

      --
      Guy asked me for a quarter for a cup of coffee. So I bit him.
    3. Re:Gilding the lilly by Enrico+Pulatzo · · Score: 1

      The term's "semantic markup". Basically the notion is that using more descriptive tags can potentially tell user agents (be they browser or spider) a little bit more about the content.

      However, it's not solely in XHTML. The tags exist in HTML 4.

      I'm personally amazed that people talk so much about the strong and em tags so much when there's a ton of nicer introductions such as label and optgroup that get little to no press.

    4. Re:Gilding the lilly by man_of_mr_e · · Score: 1

      "strong" is a semantic definition while "bold" is a typographical one. What does "bold" mean to a text-to-speech device? The same holds for "em" or "emphasis".

      The purpose of XHTML is to decouple the presentation from the information. "strong" just tells whatever is interpreting it to do whatever it thinks is best to make it stand out.

    5. Re:Gilding the lilly by Inkieminstrel · · Score: 1

      Because "bold" is presentation whereas "strong" is content. "Strong" doesn't mean "bold," and with CSS you could make strong render as italic site-wide by changing one line in the stylesheet.

      How's that for less typing?

    6. Re:Gilding the lilly by XxtraLarGe · · Score: 1

      Thank you. That does clarify things for me, please mod parent up informative :-)

      --
      Taking guns away from the 99% gives the 1% 100% of the power.
    7. Re:Gilding the lilly by Anonymous Coward · · Score: 0

      There are no more visual tags in HTML. There's default browser styling, sure, but and are just shorthands for and .

      Back in the days before style sheets, it made sense to abstract boldface and italics, but no more. Today <b> and <i> are the inline formatting tags of choice.

    8. Re:Gilding the lilly by Anonymous Coward · · Score: 0

      It's about semantics. Bold is purely visual, strong also refers to the emphasis of the text, which is important to screenreaders (blind "readers").

    9. Re:Gilding the lilly by rossifer · · Score: 1

      I don't understand why "strong" is better than "b" for bold, or "em" is better than "i" for italics. IMHO, less typing is better, even if most people now use some sort of graphical editor like Dreamweaver.

      Part of the idea in those renamings is to increase the separation between content and presentation. In the two examples you give, changing the semantic behind the markup allows them to imply content information instead of presentation information. "b[old]" and "i[talics]" specify the appearance of a block of text. "strong" and "em" provide content hints similar to voice inflection and body language that can't be carried in simple text. The fact that they may be consistently mapped to bold or italic font styles during presentation is convenient, but doesn't mean they're the same thing.

      It's part of the same philosophy of how to name "class" and "id" attributes when using CSS. The names should describe the kind or function or responsibility of the content (header, footer, subscript, etc.) instead of describing the intended appearance of the content (small, extraSmall, largeGrey, etc.).

      As for "less typing" == "better", I'm of mixed feelings myself. I think that XML/HTML/XHTML/XSL is already an extremely verbose syntax, so I'm not too upset if some of the tags get a little bigger. In my experience, good tools and effective habits make more of a difference than anything else.

      Regards,
      Ross

    10. Re:Gilding the lilly by DualDescription · · Score: 1
      OK, I will play the devil's advocate. Why is visual markup so bad? 95% of the people who view 95% of all web pages do so in a traditional way: in IE, Firefox, Mozilla or Opera. Often, I want a part of the text be bold or italic without leaving it to the browser to decide how "strong" is presented. For example, references to Phys. Rev. journal traditionally require the volume number to be displayed in bold font. Why am I forced to use CSS do it, when B tag can do the job by typing 7 symbols (opening and closing tags). I can think of many other examples.

      I realize that there are blind users, and their needs must be taken into account. I admit I have no idea how it works, but I am assuming the text containing STRONG fragment is converted into something sounding like

      blah, blah, strong text follows, beep, beep, beep, strong text ends, blah, blah, blah

      Why is this better than

      blah, blah, bold text follows, beep, beep, beep, bold text ends, blah, blah, blah

      ?

    11. Re:Gilding the lilly by Anonymous Coward · · Score: 0

      I don't understand why "strong" is better than "b" for bold, or "em" is better than "i" for italics.

      They aren't. If you want bold, use <b> and if you want italics, use <i>. If somebody tells you to use <strong> for bold and <em> for italics, then they are clueless and you should not listen to them.

      What the real issue is is that people usually don't want bold and italic. They want to express emphasis and strong emphasis. If that is what you want to do, then <b> and <i> are categorically the wrong element types to use.

      <b> and <i> tell humans that something is emphasised in certain contexts. <strong> and <em> tell computers that something is emphasised in all contexts, and your computer can then use that information to communicate the emphasis to you.

      The reason people get confused is because the traditional way of communicating the emphasis to you is by rendering the text in bold or italics.

      This is not just markup masturbation, there are real world effects. A number of search engines will place more weight on <strong> and <em> text than they will for <b> and <i> text. An aural browser should do something like speak the words louder for <strong> and <em>, but completely ignore <b> and <i> elements.

    12. Re:Gilding the lilly by Anonymous Coward · · Score: 1, Informative

      Why is visual markup so bad?

      Because it requires a human to understand the meaning in context. If you use <i> for emphasis and citations, then how is software going to be able to distinguish between, say, a citation and emphasised text? That requires lots of hard AI work. On the other hand, if you use <em> for emphasis and <cite> for citations, then any run-of-the-mill browser can immediately tell the difference.

      By using visual markup, you are hiding the meaning from software, and preventing them from doing smart things with that knowlege.

      Another reason is sheer practicality. If your content and presentation is strongly coupled, then you end up transmitting your presentation to browsers over and over again, instead of serving a single stylesheet and saving bandwidth.

      For example, references to Phys. Rev. journal traditionally require the volume number to be displayed in bold font.

      Then you should use the <b> element type - it would be a mistake to use the <strong> element type, because you aren't trying to strongly emphasise anything. But really, if somebody doesn't see the bold, where's the harm?

    13. Re:Gilding the lilly by Anonymous Coward · · Score: 0
      Because it requires a human to understand the meaning in context.

      It's a block of English text. What else do you think is going to understand it?

    14. Re:Gilding the lilly by Anonymous Coward · · Score: 0

      That's precisely my point. A block of English text, on its own, can't be understood by a computer. The whole point of markup is to include useful information that a computer can understand. Presentational markup is useless for anything other than presentation. Semantic markup is useful for a wide variety of purposes, including, but not limited to, presentation.

    15. Re:Gilding the lilly by the_2nd_coming · · Score: 1

      well, then you can wait until Americans With Disabilities Act applies to the web.

      --



      I am the Alpha and the Omega-3
    16. Re:Gilding the lilly by falconwolf · · Score: 1

      I realize that there are blind users, and their needs must be taken into account. I admit I have no idea how it works, but I am assuming the text containing STRONG fragment is converted into something sounding like

      Markup like "strong" won't, as least typically, work for the blind. What's needed are aural styles such as pitch, speak, or voice.

      Falcon
    17. Re:Gilding the lilly by mr3038 · · Score: 1
      There's default browser styling, sure, but <b> and <i> are just shorthands for <span class="b"> and <span class="i">.

      Not true. <b> and <i> are still elements just like before. You'll still use CSS selectors b and i (as opposed to .b and .i) to select those. Yes, they have the same semantics as <span> but they are definately not shorthands but real elements instead.

      --
      _________________________
      Spelling and grammar mistakes left as an exercise for the reader.
    18. Re:Gilding the lilly by DualDescription · · Score: 2, Interesting
      I guess the question is why we should care about the computer "understanding" our web pages? Sure, there are many examples when this is necessary, but in most cases (e.g. "my fluffy cat" type pages) there is simply no point to bloat the code for the web page with semantic markup. I am the first to admit that I am a diletant, but it seems to me that forcing xhtml+css on everybody is an overkill. Why not give an option for "my fluffy cat" page users to continue using simple html with presentation markup?


      A good analogy is mathml. For decades most scientists use latex to type the text, then somebody came up with the idea that the formulae must be searchable and presented in a form that computer must understand. Why? What useful purpose would it serve? How I as a user can benefit from it? How many readers of the online journals are going to search for a particular fragment of the formula in the online paper?

    19. Re:Gilding the lilly by handslikesnakes · · Score: 1

      Because you'll thank us when someone creates an amazing futuristic browser with more than just a visual component.

      And emphasized text in screen readers is louder or slower or female or higer pitched or ....
    20. Re:Gilding the lilly by Anonymous Coward · · Score: 0

      I guess the question is why we should care about the computer "understanding" our web pages?

      The whole point of having computers is that they do stuff for us. They can't do some stuff because they aren't smart enough to figure out what people mean when they say stuff.

      Since you are going to be marking up the text of a web page anyway, it makes sense to do it in a way that lets the computer understand what is meant by what you say, because then the computer can do more for us.

      Sure, there are many examples when this is necessary, but in most cases (e.g. "my fluffy cat" type pages) there is simply no point to bloat the code for the web page with semantic markup.

      What bloat? Typical websites, when converted from cruddy HTML 3.2 to HTML + CSS, are reduced in size. And I don't see why "my fluffy cat" pages are any kind of exception. There are programs out there that already benefit from being able to minimally understand such pages - they are called search engines, and right now they are a big messy hack that often don't work very well.

      Why not give an option for "my fluffy cat" page users to continue using simple html with presentation markup?

      Do you actually do any web development? Those types of pages are the most complex, bloated crud imaginable, there's nothing "simple" about them. Semantic HTML + CSS, on the other hand, is much easier to understand.

  12. ...so why aint people doing it? by wastaz · · Score: 3, Insightful
    It seems as if everyone and his brother is writing books supporting standards-compliant Web design with XHTML and CSS.

    So if that is the case, then why the heck doesn't more people do it? I mean, if we assume that people learn to code webpages from books, why do they buy the old shitty books and code their pages with godawful font-tags and something that closely resembles MS-Word-HTML?

    With that said, XHTML and CSS is love.

    1. Re:...so why aint people doing it? by Anonymous Coward · · Score: 0

      "...then why the heck doesn't more people do it" Nice grammar usage, buddy.

    2. Re:...so why aint people doing it? by Anonymous Coward · · Score: 0

      Because people don't like XHTML or CSS. HTML is KISS, and while you may find it old and cludgy, it's simple and effective to the vast number of people out there.

      XHTML and CSS may be newer and better for web design, but for most users, it's certainly NOT.

    3. Re:...so why aint people doing it? by orion88 · · Score: 1

      Maybe it's because everyone's already written the HTML books.

      -Ben

    4. Re:...so why aint people doing it? by the_2nd_coming · · Score: 1

      because most people make their web pages from god awful MS-word-HTML.

      --



      I am the Alpha and the Omega-3
    5. Re:...so why aint people doing it? by Anonymous Coward · · Score: 0

      No, if you want love you use XHTML and CSS as your final output, but use m4 and make to get to that point. I took a maintenance job a while back, fixing up something someone else did with Frontpage to make it decent. The original files tended to be around 200 lines, many of which wrapped the screen seven times. Rather than deal with that, I put together some m4 macros and a CSS file, cut the generated HTML files down to under 100 lines of reasonable length that validated and rendered correctly beyond the realm of IE. The source files used to generate these pages are really short (some as small as seven normal length lines (down from nearly 200 excessively long lines)) and easy to deal with and if I need to make a change in the future that affects every page in a way that cannot be achieved strictly through a modification of the stylesheet, that's probably just a change to the macro file and typing make.

      So, to review, m4/CSS/make -> XHTML/CSS is love.

    6. Re:...so why aint people doing it? by Matilda+the+Hun · · Score: 1

      The same reason people leave gaping vunerabilities by not installing the 300 "required" patches in their Windows machines and don't bother to properly password-protect their systems:

      People are lazy.

      If people have the choice of a.) Hand coding a website, or b.) Using MSWord to create the same website, guess what they'll use? They won't look at what's actually going on, because they don't care. All they care about is that It Just Works(TM) (in, at least, the browser they're looking at it with (IE, naturally.)).

      Is it sad? Of course. But it's true. And as long as a majority of people don't care about it (i.e., IE users), there's no reason for Windows to change it. Which means we're stuck with people who can't see our standards-complaint websites, and websites we can't see in our standards-compliant browsers.

      --
      Tluin natha Linux xxizzuss uriu olt bwael mon'tun.
  13. Web standards are stupid. by Anonymous Coward · · Score: 4, Insightful

    If the developers of Netscape Navigator had this fanatical devotion to the W3C that seems to be popular lately, we wouldn't have tables, scripts, or any kind of styles (neither nor CSS). None of that was in the standard (HTML 2.0) at the time.

    1. Re:Web standards are stupid. by Anonymous Coward · · Score: 2, Informative

      If the developers of Netscape Navigator had this fanatical devotion to the W3C that seems to be popular lately, we wouldn't have tables, scripts, or any kind of styles (neither nor CSS). None of that was in the standard (HTML 2.0) at the time.

      Bzzt, wrong. Tables were proposed as part of HTML 3.0 which was being worked on at the time. HTML 2.0 already had a way of incorporating stylesheets into documents, and in fact it's the same code that is used today.

      Even if that wasn't true, Netscape had nothing to do with the introduction of stylesheets. They were late to the party with JSSSL, when CSS and DSSSL already existed.

    2. Re:Web standards are stupid. by Optic7 · · Score: 1

      JSSSL and DSSSL - shizzle fo rizzle...

      Sorry, couldn't resist. I had never seen those FLAs before and they just look funny.

    3. Re:Web standards are stupid. by indiechild · · Score: 1

      WTF, whoever modded this insightful is on crack!

      Web Standards are always forward looking, it's not just about sticking to standards here and now. In 5 years' time, webdesign will have changed yet again, and new and wonderful techniques will have been introduced which makes today's technology look like it came from the stone age.

      And Web Standards will again be at the forefront of the push.

  14. XHTML is a bad solution by Enrico+Pulatzo · · Score: 4, Interesting

    I don't understand why designers and technologians keep preaching XHTML. It's at best a kludge. Until you start serving XHTML documents with the correct mimetype (application/xhtml+xml I believe) XHTML provides no benefits over plain old HTML (provided you stick to the spec). Until then, User Agents will continue to accept whatever crap you throw at them, and since you're not using real XML you won't see any errors (except for the rendering).

    I coordially invite someone to give me one reason why XHTML (in its current form, served as text/html or text/xml) is better than HTML 4.0 strict? Is closing my link and meta tags really that life-changing?

    1. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      The extra slashes, quotes, and end tags require bandwidth to send, so if you're a broadband ISP it's a good thing...

    2. Re:XHTML is a bad solution by imputor · · Score: 5, Informative
      A couple reasons...

      The main is that XHTML really FORCES you (if you want your page to pass W3C validation) to seperate design from content in a way that facilitates the ease of updating pages.

      A side effect of this is smaller filesizes. A recent conversion from HTML to XHTML+CSS for a client of mine brought their homepage size down from 25k to 9k. This to me is reason enough to use XHTML+CSS.

      A side effect of this is better code/content ratio.... a side effect of this is better search engine placement.... a side effect of this is...

      So using XHTML over HTML actually has a cascading (mind the pun) list of benefits, completely independant of the technical mumbo-jumbo of the whole "XHTML is supposed to be XML" stuff.

    3. Re:XHTML is a bad solution by HRbnjR · · Score: 2, Insightful

      Namespaces!

      The proliferation of XML allows everyone to create tag sets to meet their needs - from Scalable Vector Graphics to Chemistry Markup Language.

      With this evolution, the browser becomes more of a host for a set of plugins glued together through XHTML.

      XHTML, being a dialect of XML, allows you to create compound documents combining elements from multiple XML namespaces into a single document.

    4. Re:XHTML is a bad solution by daviddennis · · Score: 1

      I write my HTML by hand, using Emacs, so the way my html looks is important to me.

      Which is more readable?

      --

      This is a paragraph.<p>

      <img src = "foo.jpg" height = 20 width = 30>

      This is another paragraph.<p>

      --- or ---

      <p>This is a paragraph.</p>

      <img src = "foo.jpg" height = "20" width = "30" />

      <p>This is another paragraph.</p>

      ---end---

      This kind of issue is why I have resisted changing to the likes of XHTML. I want my code to be easy to read instead of making my documents look like programming language statements.

      I do like the improved appearance I can get through CSS, which is why my home page now uses it. But I'm still grumbling at the more difficult readability of the code by humans. I don't see gains from closing all tags or putting quotes around everything. The old way was simpler, easier and more forgiving. I think that's a good thing.

      Better error handling and reporting would have converted me to the new way a lot faster than I did. At least when I was learning it, error messages were non-existant. Better communications between the browser and coder would be nice. Of course there are validators, but they seem like a rather esoteric concept when you just want things to work, and don't understand why they do not.

      D

    5. Re:XHTML is a bad solution by Enrico+Pulatzo · · Score: 4, Insightful

      XHTML doesn't force you to do anything. I can make a page that passes a validator that's 8 nested tables deep that happily passed the w3c validator. There's absolutely no forcing there.

      The only thing that XHTML forces you to do is stop using the font tag. That's pretty much it. Everything XHTML can do HTML 4 does and does it better (cuz existing UAs grok its mimetype).

      The real promise of XHTML is the same as XML: being able to mix and match namespaces into a super-document. However, no user agents (except for some special builds of Mozilla) really accept embedded XML dialects (for an example, see SVG+XHTML on Mozilla's SVG site). This is changing in Firefox 1.1, but it won't have any real effect on the marketplace until the majority of user agents support it.

      Short version: XHTML disables the use of the FONT tag and some attributes that should be done in CSS anyway.

    6. Re:XHTML is a bad solution by bomb_number_20 · · Score: 2, Insightful

      I think it's a little bigger than that. XHTML was never intended to be the answer, but rather an intermediate step.

      Since you asked, here's a reason off the top of my head: As an XML application, XHTML requires you to have a well-formed document. That's good for me because later on, i can work with it.

      If I need a PDF of a 4 year old document that is written in half-assed, abused, non well-formed HTML It's going to be very difficult for me to parse it into something useful.

      Here's another reason: try maintaining bad html over the long haul. Overlapping tags can be a real pain.

      --
      That's ok, Jesus likes me anyway.
    7. Re:XHTML is a bad solution by telbij · · Score: 1

      I coordially invite someone to give me one reason why XHTML (in its current form, served as text/html or text/xml) is better than HTML 4.0 strict?

      Purists always like to trot out this argument, because of course it's true that IE pretty much guarantees you won't be able to send the proper mime type for a long long time to come.

      But come on, foregoing XHTML syntax because of this minor issue (which will be easily fixable for all your legacy documents 10 or 15 years from now) is pretty much cutting off your nose to spite your face.

      XHTML means easier parsing, better code support in the future, and helps you develop good habits. So, while I'm not advocating updating all your old HTML, might as well start writing XHTML sooner rather than later.

    8. Re:XHTML is a bad solution by DaveKAO · · Score: 1

      Because sloppy code requires a beefy engine (read: Desktop Browser) to (attempt to)display properly. Now what if you are viewing the page on a PDA, a phone, or some other mobile device with limited hardware specs? Either it doesn't display correctly, or it takes forever to load. XHTML helps solve this problem.

      My personal homepage (http://www.dave-dodds.com/ is a good example of a site that is XHTML compliant, but not truly w3C accessibility compliant. note: It is priority 1 compliant).

      Also, it seems as if most people get XHTML and CSS confused as one in the same, when in reality they are more like perl/cgi.

    9. Re:XHTML is a bad solution by tehshen · · Score: 1

      XHTML is better, because there is a greater chance that the page will look like how you intended. This has nothing to do with how the page looks in the browser (that's standards), but how the browser parses your page.

      Suppose your page had this here mystery tag in it:

      <foo>

      What should the browser do? Should it do something and leave it at that (like <br>) or do something and enclose all the rest of the page in a <foo> block then try to sort out the rest of the page when it thinks the tags aren't in the right order (like <p>)?

      With XHTML and validating code, the tag will be this:

      <foo />

      This means that it just does something by itself, without enclosing any HTML inside it. With plain HTML, there is ambiguity so your page might not look correct, but with XHTML, your page will be parsed correctly every time.

      Getting the browsers to display the page correctly is another matter, however. (I hope you see what I am getting at here)

      --
      Guy asked me for a quarter for a cup of coffee. So I bit him.
    10. Re:XHTML is a bad solution by GrouchoMarx · · Score: 1

      I coordially invite someone to give me one reason why XHTML (in its current form, served as text/html or text/xml) is better than HTML 4.0 strict? Is closing my link and meta tags really that life-changing?

      Using /> instead of >, no. That won't make a great deal of difference. However, getting into the habit now will make it easier when you DO start sending the correct mimetype (read: when IE evolves out of the 20th century).

      The main advantage I see is not the /> stuff, but the fact that closing tags are not optional in general. When you're writing CSS, it's important to know where the effect of a given style will end. If your p and li tags are not closed, how do you know? Well you can guess at where the browser will decide to end it (maybe easily, maybe not), or you can tell it explicitly with properly-nested closing tags at all times. Not leaving it up to the browser to guess is good coding practice, and in the long run makes your life easier.

      Ibid. for quoting all attributes.

      Ibid. for lowercasing all names. (Lowercase is easier to skim because of the variable height letters. That provides a visual hint to help you read it. A good syntax highlighter will make it easy to distinguish between tags and non-tags, that's what they're for.)

      So when all is said and done, all of the XHTML differences except the self-closing tags are already what I'd say are best practices to start with. Forcing yourself to use XHTML forces yourself to use best coding practices from the get-go, which makes your life much easier in the long run. And, when you can start sending XHTML as XHTML instead of masquerading as HTML (there are ways to do that now depending on the browser), you're already set to go and can just change the mimetype and keep on chugging. No major code rewrites needed.

      --

      --GrouchoMarx
      Card-carrying member of the EFF, FSF, and ACLU. Are you?

    11. Re:XHTML is a bad solution by Enrico+Pulatzo · · Score: 2, Interesting

      Namespaces do indeed rock. They make some tasks possible which were before impossible, and they provide a means to combine languages together in a way which wasn't possible before.

      However, XHTML (in it's current form) totally breaks namespaces, since the mimetype of the document is text/html and the user agent only expects (or rather, should only expect) to be receiving text/html content (instead of a mish-mash of XML dialects).

      I think namespaces are most useful (and powerful) in more controlled environment such as server-side applications (or even Ajax type stuff).

    12. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      Obviously, you're not thinking in the correct manner.

      is a shortcut for . I don't write parsers but which do you think is easier to parse? And to me, adding the "/" has a semantic meaning of "end," whereas leaving it open ended does not.

    13. Re:XHTML is a bad solution by Enrico+Pulatzo · · Score: 1

      XHTML does indeed mean easier parsing, if served with the correct mimetype. If you serve text/html, the parser has to be ready for all the crap of HTML, not the ease of parsing an XML document (unless you run all the incoming text/html into something like tidy, but that's cheating).

      I'm not quite sure I understand your point about better code support in the future though, would you expound on that? Do you mean that this is the area where people are actively developing, so there will be better tools in the future, or what?

    14. Re:XHTML is a bad solution by R.Mo_Robert · · Score: 1

      I'm not an XHTML fanboy, but I can tell you right now that your XHTML code is correct and your HTML is not. You're using opening <P> tags where the optional closing tag should be, but you've totally left off the opening <P>, the only part that is actually mandatory.

      I think both of your examples are equally readable--and only one of them is correct. And the fact that you use emacs, if indeed you do, doesn't matter much unless you were going for bragging rights. Suit yourself, but I think the best thing that can be done for readability is a lightweight syntax-highlighting editor (like Notepad2 for win32, and there are similar tools that I presumably don't need to tell you about for Linux).

      --
      R.Mo
    15. Re:XHTML is a bad solution by R.Mo_Robert · · Score: 1

      Of course XHTML+CSS has a clear advantage of HTML that contains both content and formatting, but what about HTML+CSS? HTML is still a valid standard, and in most cases I see no clear advantage of XHTML+CSS over plain HTML+CSS--especially since anyone who's using XHTML will serve it as the wrong mimetype if they want some 90% of potential viewers to see it properly, and not serving XML as XML essentially reduces it to the tag soup that is HTML...

      Hixie (Ian Hickson) of Mozilla, W3C, and now Opera fame has more on the problems associated with this: http://www.hixie.ch/advocacy/xhtml

      --
      R.Mo
    16. Re:XHTML is a bad solution by poot_rootbeer · · Score: 3, Informative

      You seem to assume that CSS can only be used with XHTML, and that "HTML" means "font tags aplenty". This is not so. CSS can be used in conjunction with any version of the HTML or XHTML markup languages.

      The only real differences between XHTML and the non-X versions of HTML that came before it are:

      1. DTD declarations are mandatory. Or if not mandatory, strongly encouraged. Sort of.

      2. Case is no longer insensitive, except usually implementations of it still are.

      3. Non-pairing tags have to close themselves with a trailing slash.

      4. Attributes have to take the form of name/value pairs.

      5. There's a bunch of tags that are deprecated, but you can still use them because no browser authors will ever remove support for them or even refuse to render a page if it doesn't validate against the DTD.

    17. Re:XHTML is a bad solution by edxwelch · · Score: 1

      Actually, HTML 4.01 already forced you to remove the font tag. So, to summarize: XHTML is purely for buzzword compliance

    18. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      Because it's easier to parse, duh.

    19. Re:XHTML is a bad solution by renderhead · · Score: 3, Insightful

      It all depends on what you mean by "readable". If all you want to do is read the text in your page, I suppose your HTML is more readable. However, as someone writing code, I would definitely prefer the XHTML because it clearly shows me where the beginning and end of each paragraph are. That's essential when you start applying style sheets, and it encourages cleaner code as well.

      The thing is, your example is really moot anyway when it comes to HTML vs. XHTML. Your second example is perfectly valid HTML (except for the closing slash on the image tag), and I was closing my paragraph tags for years before I'd even heard of XHTML because of the reasons I've already mentioned.

      --
      I wish that my inferiority complex were as good as yours.

      -RenderHead

    20. Re:XHTML is a bad solution by Anonymous Coward · · Score: 2, Informative

      The main is that XHTML really FORCES you (if you want your page to pass W3C validation) to seperate design from content in a way that facilitates the ease of updating pages.

      This is not true. XHTML includes things like the <font> element type. Mod parent -1, Clueless.

      A recent conversion from HTML to XHTML+CSS for a client of mine brought their homepage size down from 25k to 9k. This to me is reason enough to use XHTML+CSS.

      You could have got the exact same saving if you had moved from HTML to HTML+CSS. This has nothing to do with HTML vs XHTML.

    21. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      I coordially invite someone to give me one reason why XHTML (in its current form, served as text/html or text/xml) is better than HTML 4.0 strict?

      SGML is more complex than XML, and has less support for developers in things like libraries, language support, etc. This has consequences.

      If you are writing a CMS, for example, and you need to give users the ability to enter free-form markup, it's easier to do so if it's in XHTML than if it's in HTML.

      If you are writing a user-agent (e.g. a link checker), it's easier to simply pull out the information you need with a few XPath expressions than to find a suitable SGML parser and use that.

    22. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      Actually, HTML 4.01 already forced you to remove the font tag.

      This is not true, the <font> element type is present in HTML 4.01.

    23. Re:XHTML is a bad solution by Roguelazer · · Score: 1

      ...Unless you, like me, serve application/xhtml+xml. In which case your entire arguement is invalid. True, I serve as text/html to MSIE, owing to Microsoft's browser's inability to comprehend anything else. However, Gecko and KHTML browsers get application/xhtml+xml and XHTML 1.1-valid documents. That's what server-side scripting (php in my case) is for! So stop posting about how XHTML is useless because of wrong mimetypes. Not -everybody- uses the wrong mimetype. :)

    24. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      The only thing that XHTML forces you to do is stop using the font tag.

      WTF are you talking about? XHTML 1.0 is a reformulation of HTML 4.01 in XML. It includes all the same element types with all the same attributes.

      Go ahead and write an XHTML 1.0 Transitional document that includes a <font> element. Then run it thrugh the validator. It will come up valid.

      Learn the difference between tags, elements and element types while you are at it.

    25. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      2. Case is no longer insensitive, except usually implementations of it still are.

      This isn't true. <foo>...</FOO> isn't well-formed and requires XML parsers to throw a fatal error. They do.

      4. Attributes have to take the form of name/value pairs.

      This was true of HTML as well. The difference is that you can use shorthand to omit the attribute name. Sort of like the way you can omit the <body> tags, but the element is still there.

      Interestingly, this is done via the SHORTTAG NET feature of SGML, which is what makes XHTML fundamentally incompatible with HTML on a syntactic level.

    26. Re:XHTML is a bad solution by edxwelch · · Score: 1

      Try submiting a HTML 4.01 document with a font tag to the validator and it will fail.

      This page is not Valid HTML 4.01 Transitional!

      Below are the results of attempting to parse this document with an SGML parser.

      1.

      Line 32, column 12: there is no attribute "FONT"

      table font="ariel" style="text-align: left; width: 100%;" border="0" cellpaddin

    27. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      My personal homepage (http://www.dave-dodds.com/ is a good example of a site that is XHTML compliant

      Why is it that whenever a topic like this comes up, somebody who is out of spec. posts a comment telling everybody they are in spec?

      RFC 2854 allows you to transmit XHTML 1.0 documents that follow the compatibility profile described by the XHTML 1.0 specification (Appendix C).

      Your pages don't follow that compatibility profile because you include the XML prolog (the <?xml... bit).

      The fact that you are concerned with mobile browsers is amusing, since this mistake actually trips up a couple of mobile browsers (Pocket IE is one, IIRC).

    28. Re:XHTML is a bad solution by blue_adept · · Score: 1

      Suppose your page had this here mystery tag in it: foo
      What should the browser do?


      Your argument makes no sense. if foo is a valid html tag, the DTD will tell the browser exactly what to do with it. and if Foo is NOT in the DTD, it has no business being on the page. Xml vs Html is irrelevant in this case.

      --

      "Is this just useless, or is it expensive as well?"
    29. Re:XHTML is a bad solution by Anonymous Coward · · Score: 1, Insightful

      You're talking about CSS, not XHTML. Both good old HTML and XHTML support it, and it is indeed a great way to separate design and content, but it has nothing to do with XHTML.

      Actually, the only advantage to XHTML is that you can apply XML transformations or use special features like MathML or embedded SVG. But if you don't plan on using them, you're just wasting your (valuable) time (and even slightly increasing the file size :-p), as browsers are very unlikely to drop support for HTML anyway...

    30. Re:XHTML is a bad solution by legLess · · Score: 1

      That's because you've given us an example of a font attribute, not a font tag. Duh.

      font attribute <p font="foo"> font tag <font face="foo"> There is not now, and never was, a font attribute.
      --
      This isn't as much "normalization" as it is "don't take so many drugs when you're designing tables."
    31. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      That's not a font "tag", that's a font attribute. Try learning the difference between "tag", "element", "element type" and "attribute". They all mean different things.

      Try it again with:

      <p>
      <font face="arial">
      foo
      </font>
      </p>
    32. Re:XHTML is a bad solution by antrik · · Score: 1

      How is a "light-weight" syntax-highlighting editor better than a "heavy-weight" syntax highlighting editor like emacs? (Or Vim...)

      Also note that while the code doesn't follow the spirit of the HTML standard, it is actually valid. Some people consider that "correct". (Not me...)

      --
      All my comments get moderated +-0, spotless.
    33. Re:XHTML is a bad solution by edxwelch · · Score: 1

      oops sorry.. posting too late at night

    34. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      Sorry, you have my permission to call me a moron on the emacs thing...I didn't realize it could do that, which is what I get for having rarely used it.

      And, yeah, the HTML may be valid (or would be--I think you might actually need a block-level element around the text, like P), but its semantic meaning is certainly not what is intended, as there are two empty paragraphs, IIRC...and, again, I think it might need a block-level element around the text.

    35. Re:XHTML is a bad solution by antrik · · Score: 1

      Among other important reasons (explained by others), this is a chicken-and-egg problem: Start using XHTML today, so we can all have a better web tomorrow.

      --
      All my comments get moderated +-0, spotless.
    36. Re:XHTML is a bad solution by Enrico+Pulatzo · · Score: 1

      Yours is a good point, though I'm not too big of a fan of forcing every page I write to be parsed with an engine first. (and no, I don't have access to the apache server httpd.conf/.htaccess file :( )

      However, I did come across this little beauty that gives me a little hope. It seems you can indeed serve xhtml as application/xml in IE and make it work (of course, with a small workaround).

      Soon of course, lynx will have to be updated in order to keep up with the times :)

    37. Re:XHTML is a bad solution by SlightlyOldGuy · · Score: 1

      Seems like not many people around here have experience in writing software for big dynamic websites
      XHTML is useful because it's XML. You can manipulate it with standard tools. You can put it in databases and query it down to the individual tag level, You can transform it into WAP or PDF or other formats on the fly. You can validate it without having to write any code. And that's just a few things off the top of my head

    38. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      Also note that while the code doesn't follow the spirit of the HTML standard, it is actually valid.

      That depends on the type of HTML. This code:

      <body>
      foo
      <p>
      bar

      ...is valid HTML 4.01 Transitional, but invalid HTML 4.01 Strict. However, since you are talking about "the HTML standard", you must be talking about ISO-HTML (the W3C Recommendations aren't standards). The code above is invalid ISO-HTML.

      On the other hand, if you understand that tags are merely delimiters for elements, then using the code:

      <body>
      <p>
      foo
      </p>
      <p>
      bar
      </p>

      ...will be valid HTML 4.01 Transitional, HTML 4.01 Strict, ISO-HTML, and all forms of XHTML.

    39. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      the mimetype of the document is text/html and the user agent only expects (or rather, should only expect) to be receiving text/html content

      This is not true. The text/html RFC explicitly mentions that XHTML 1.0 following the compatibility profile is allowed. Treating XHTML-as-text/html as if it were tag soup is merely a common convention, not a requirement.

      Your larger point, that XHTML as text/html doesn't allow external namespaces is true, since that is forbidden in XHTML 1.0 and other forms of XHTML aren't suitable for transmission as text/html.

    40. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      if foo is a valid html tag, the DTD will tell the browser exactly what to do with it. and if Foo is NOT in the DTD, it has no business being on the page.

      Welcome to the real-world where parsers do have to put up with crap like element types that aren't in the DTD.

    41. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      Yours is a good point, though I'm not too big of a fan of forcing every page I write to be parsed with an engine first.

      What the hell do you think parses HTML? Magical elves?

    42. Re:XHTML is a bad solution by chastu · · Score: 1

      well, it's sort of like hybrid cars... they still use gas, but at least they don't use as much.

      progress takes time...

    43. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      You think the first is more readable? Oo Everything is better separated in the second...

    44. Re:XHTML is a bad solution by thomthom · · Score: 1

      Is there anything in the XHTML specs that says you can't nest tables 8 times? The validator validates your XHTML documents structure, not whether you are coding it sensible.

    45. Re:XHTML is a bad solution by falconwolf · · Score: 0, Troll

      2. Case is no longer insensitive, except usually implementations of it still are.

      This isn't true. ... isn't well-formed and requires XML parsers to throw a fatal error. They do.

      That is what was said, case is no longer insensitive means case is sensitive.

      Falcon
    46. Re:XHTML is a bad solution by cloudmaster · · Score: 1

      XHTML is no easier to parse or maintain than good HTML 4.01 strict. It's hard to maintain bad code, period. Yeah, XHTML has a validator, but 1.0 is the last one that can be served without the screwy application/blah mimetype, and lots o' browsers don't behave with 1.1.

      Validation is the only good thing about XHTML? Check out validator.w3.org and note that HTML can be validated too. Use stylesheets and HTML 4, and don't write crap code. It's the same thing as XHTML.

      Also, browsers will probably accept poorly-formed XHTML just like they accept poorly-formed HTML, since the people generating the XHTML will frequently be people who don't know what they're doing - probably because they didn't know what they were doing when HTML was king.

    47. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      I was referring to the bit about implementations still being case insensitive when I said "This isn't true".

    48. Re:XHTML is a bad solution by daviddennis · · Score: 1
      I'm going to write this text like I write HTML so that my point is clear.

      .

      As you can see, I separate my paragraphs with blank lines. When I read the text as content, as opposed to code, I am really using the blank lines to highlight the beginning and end of paragraphs.<p>

      As you can see, this text is pretty readable. When I write text, I want it to be in the standard body text format in any event, so I should not have to worry about delimiting paragraphs.<p>

      The first book I ever read on HTML taught me to write HTML in this way, and I don't think it was ever defined as formally wrong until the advent of CSS. <p>

      I want my web site to be reasonably attractive visually, but the most important thing about it is the quality of its content. I use emacs to edit it because I have the control keystrokes burned in my fingers, and so it's easy and efficient for me to work. HTML lets me add minimal formatting without having to use a clunker like Word.<p>

      I would write XHTML if I was focusing on format, but generally I'm just writing text that I want people to be able to read easily. So I would prefer regular HTML to survive for this application. Otherwise, it's a lot of unnecessary, meaningless work for someone who just wants to put his stuff on the web.<p>

      D

    49. Re:XHTML is a bad solution by DaveKAO · · Score: 1

      Why is it that whenever a topic like this comes up, somebody who is out of spec. posts a comment telling everybody they are in spec?

      For one, I AM in XHTML 1.1 spec. and because it can be considered Insightful.

      RFC 2854 allows you to transmit XHTML 1.0 documents that follow the compatibility profile described by the XHTML 1.0 specification (Appendix C).
      Your pages don't follow that compatibility profile because you include the XML prolog (the

      Hmmm... seems you are confused. Check the W3C Conformance guidelines for XHTML 1.1. (http://www.w3.org/TR/xhtml11/conformance.html)
      It clearly states:
      Note that in this example, the XML declaration is included. An XML declaration like the one above is not required in all XML documents. XHTML document authors are strongly encouraged to use XML declarations in all their documents.
      Last time I checked W3C was in charge of standards.

      The fact that you are concerned with mobile browsers is amusing, since this mistake actually trips up a couple of mobile browsers (Pocket IE is one, IIRC).

      Amusing huh? Right, so everyone should write sloppy unstandardized code that gets dislayed incorrectly or not at all on mobile browsers and/or takes forever to load? Great idea, while I'm at it, I'll stop designing for everyone who isn't running Windows XP and IE 6.0. I mean those users don't care about rendering performance anyhow, right? As for pocket IE, it appears that bug has been fixed. http://blogs.msdn.com/windowsmobile/archive/2004/0 8/12/213692.aspx

    50. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      The first book I ever read on HTML taught me to write HTML in this way, and I don't think it was ever defined as formally wrong until the advent of CSS.

      The very first version of HTML worked this way. The change to the modern <p> element type took place when HTML was formally specified as an SGML language in HTML 2.0. That was ten years ago, years before CSS was developed.

      I want my web site to be reasonably attractive visually

      Well if you insist on writing code in a style that was obsoleted a decade ago, you are bound to run into problems. For example, if you decide to style all your headings as serif and all your paragraphs as sans-serif, you might use something like this:

      h1, h2, h3, h4, h5, h6 { font-family: serif; }
      p { font-family: sans-serif; }

      Seems reasonable enough, until you realise that on every page of your website, the first bit of text isn't showing up as sans-serif, because it's not part of any paragraph, because you are writing your HTML incorrectly.

    51. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      XHTML is no easier to parse or maintain than good HTML 4.01 strict.

      You are wrong. XML-based languages like XHTML are easier to parse than SGML-based languages like HTML. One example of how they are easier is that XML-based languages do not require parsing the DTD or application-specific knowledge to build a tree. In fact, the easier parsing that benefits mobile and embedded developers was a large reason for XML existing.

      Why do you think full-featured SGML parsers are so rare and full-featured XML parsers are so commonplace? Despite SGML being around since the 80s?

    52. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      That's not valid. You need an alt="foo" in your img tag.

    53. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      He probably meant on the server-side you freaking troll.

    54. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0
      Why don't you replace all your

      tags with

      tag pairs and actually have correct HTML? If you wrote your HTML correctly, your

      tags would BEGIN the paragraphs. What you have there is a line of text, 5 paragraphs of text, and an empty paragraph when you intend to have 6 paragraphs of text. Frankly, horribly unreadable garbage like what you use makes me want to strangle web developers to death when I have to maintain their work. XHTML just requires that you 1. close, and 2. properly nest your HTML tags, which makes it much easier for a human to read.

    55. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      Some of us serve it properly. If a user agent identifies itself (through the HTTP request headers) as accepting application/xhtml+xml, we serve it as such. Else, we see if we can serve application/xml, else text/xml, else serve text/html and deliver HTML 4.01 content instead of XHTML content. My HTML content generally has a very small note that informs the user that they're missing functionality (honestly, this is primarily CSS and a little bit of ECMAScript) because their browser can't handle modern pages.

    56. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      XHTML does not force you to stop using the FONT element (please do not call it a tag). FONT is still available in XHTML 1.0 Transitional.

      Let me repeat this once again: XHTML 1.0 Transitional has exactly the same elements as HTML 4.01 Transitional. XHTML 1.0 Strict has exactly the same elements as HTML 4.01 Strict.

    57. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      For one, I AM in XHTML 1.1 spec.

      No, you aren't.

      What I am seeing right now is: dave-dodds.com is labelled as XHTML 1.0 Transitional. It includes an XML prolog. It is being transmitted as text/html.

      These three things are mutually exclusive if you want to stay in spec. Go and read the RFC I pointed you to.

      Check the W3C Conformance guidelines for XHTML 1.1.

      Why? You aren't using XHTML 1.1, and even if you were, you can't transmit it as text/html.

      If you want to hear it from the horse's mouth, read XHTML Media Types.

      Last time I checked W3C was in charge of standards.

      Again, you are wrong. The W3C is a vendor consortium, not a standards body. That's why they publish recommendations. Organisations like ISO and ECMA publish standards. In fact, ISO have published ISO-HTML.

      Right, so everyone should write sloppy unstandardized code that gets dislayed incorrectly or not at all on mobile browsers and/or takes forever to load?

      What a load of bullshit. How in hell can you misinterpret me pointing out that you write non-standard code as an attempt to advocate writing non-standard code? I write standard code. You do not.

      Quite frankly, I'm amazed at just how spectacularly you can get things wrong. How about you start reading and understanding the specifications before talking about them? The RFC I pointed you to is a good start.

    58. Re:XHTML is a bad solution by elrous0 · · Score: 1
      XHTML really FORCES you (if you want your page to pass W3C validation) to seperate design from content

      What if you don't want to seperate the two? What if seperating the two meant compromising one or both? It might be important to do this on a huge site that constantly had to be updated. But does the small website designer really need to obsess over this?

      brought their homepage size down from 25k to 9k

      That would have been really significant in 1995. Ten years later, with most people using broadband--is it really vital anymore to keep pages that small?

      -Eric

      --
      SJW: Someone who has run out of real oppression, and has to fake it.
    59. Re:XHTML is a bad solution by daviddennis · · Score: 1

      Not if you're focusing on the content.



      <p>When I see a paragraph marker at the beginning of a paragraph, it makes me feel like the formatting dominates the text.</p>

      <p>I want the text to dominate the formatting.</p>

      <p>I'm writing text, not code. </p>

      <p>To me, the way I'm writing now is much, much harder to read <i>as text</i>.</p>

      <p>D</p>
    60. Re:XHTML is a bad solution by daviddennis · · Score: 1

      You are right, and this definitely confused me when I first encountered it.

      For those who like to code as I do, this solves the problem. I prefer sans serif headings but this gives basically the effect you want:

      <style type = "text/css">

      body { font-family: "georgia"; font-size: 12; }

      h1, h2, h3 { font-family: "arial"; font-size: 25; }

      </style>

      <h1>This is a heading</h1>

      This is an exciting paragraph showing why I did this and how it works.<p>

      This is another exciting paragraph doing the same thing.<p>

      I'm happy to code anything but standard body text in the "correct" way, so this lets me have my cake and eat it too, formatting-wise at least.

      D

    61. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      The implied fallacy was that XHTML would *force* you to build your pages more sensibly.

    62. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      That's a workaround that works for one specific instance. Now make the margins around paragraphs larger. Or do any number of things that assume that paragraphs are paragraphs.

      Being organised into trees of elements is a fundamental quality of HTML documents, and a hell of a lot of software/specifications/etc assume that this is the case or otherwise rely on it being true. You are short-circuiting that, and if you are happy finding a workaround for each and every issue that comes up, then fine, but it's not something I'd touch with a thousand-yard bargepole.

      Your CSS is wrong by the way; if you want to specify font-size in lengths, you need to include units - em, px, cm, etc.

    63. Re:XHTML is a bad solution by daviddennis · · Score: 1

      It worked in Safari, but let's face it, this is something I hacked together specifically to show that it can be done. When I'm writing CSS for "real" consumption, I put in the units.

      I don't see any problem with my HTML as long as browsers can read it and search engines can find it, both of which do just fine.

      There's a funny kind of "holier than thou" feeling about CSS and "correct" HTML advocates that I have to admit I don't like at all. The whole attitude of "do it this way or you're not cool" strikes me as a big step backward from the old days.

      In the old days, if you write <P> instead of <p>, or said height = 100 instead of height = "100", you weren't crucified by the parser. Does it matter to the content that things are "correct" or not, as long as it can be read?

      Do people really gain by the effort taken to change <P> to <p> or putting an end tag in every tag that formerly didn't need one? I don't think so; I think it's simply a waste of effort.

      But I think it's the condescending attitude among "good" HTML advocates that bothers me most of all. It definitely made me much slower to change to CSS than I would have been if it had been introduced as "a cool option" instead of "the Holy Grail that you MUST adopt".

      D

    64. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      In the old days, if you write <P> instead of <p>, or said height = 100 instead of height = "100", you weren't crucified by the parser.

      That's a common misconception. Even back in the old days, invalid code worked on one browser but failed in another, or worked in one version, but broke when people upgraded. Invalid code is simply unreliable, and has been all along. If you spend a little time with Google, you'll find instances dating back at least to Netscape 1.x and instances as recent as XP Service Pack 2.

      If you'd rather deal with perpetual fixups instead of dealing with the specification, that's your decision, I'm just explaining why I stay well away from that behaviour. That's not "holier than thou", that's simply practical advice. Maybe you got lucky and settled into a relatively safe set of practices.

      Do people really gain by the effort taken to change <P> to <p> or putting an end tag in every tag that formerly didn't need one?

      What effort? There are tools that can do this automatically.

      But I think it's the condescending attitude among "good" HTML advocates that bothers me most of all. It definitely made me much slower to change to CSS

      Well that's just cutting your nose off to spite your face, isn't it?

    65. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      Right, sorry. It's just that I've seen way too many people saying how they avoid XML because they don't want the "overhead" of a parser, conveniently ignoring the fact that whatever other format they use has to be parsed too.

    66. Re:XHTML is a bad solution by Slurm-V · · Score: 1
      It has always been formally wrong. HTML has in it's very acronym the words Mark-Up. What you have discovered is that the

      tag, in some browsers, creates white space - so you are using it presentationally. However, this whitespace is not guaranteed in all browsers and it does nothing to 'mark-up' the document as it isn't showing where paragraphs begin, which is the point of the

      tag, and thus your accessibility suffers.

      If you just want a couple of line separation, you could use the

      tag twice, which, while ugly, is at least using tags correct. But you should, optimally, surround paragraphs with the

      tags, so that you can define whatever paragraph break you want in the CSS, which is the place for presentational information.

      If you just want readable text, write a .txt file (or an .rtf if you must have formatting). You can argue that 'it just works' and most of the time (only most) you'd be right. You can type with a stick six feet from the keyboard too, but that doesn't mean it's a good idea. The book you read was crap.

      --
      Of course it's going off the rails. How else is it ever going to fly?
    67. Re:XHTML is a bad solution by Slurm-V · · Score: 1

      Plain Old Text in the drop down box is obviously a complete lie.

      --
      Of course it's going off the rails. How else is it ever going to fly?
    68. Re:XHTML is a bad solution by antrik · · Score: 1

      That's what I mean: The code may be valid (read: fit the DTD), but doesn't really make sense according to the standard.

      You are right: Whether the code is actually valid depends on the context. It would be valid inside an element with %flow content (like <td> or <dd>); but also inside <body>, given there was some unclosed element (like <p>) before it. All the rest of the code would be really valid (though confusing); only the first text line needs some opening or enclosing tag.

      --
      All my comments get moderated +-0, spotless.
    69. Re:XHTML is a bad solution by antrik · · Score: 1

      Actually, it does *not* depend on whether HTML4 strict or transitional is used. These only differ in what elements and attributes are allowed, but not in the definition of the allowed elements.

      Your first code example is obviously invalid, in both HTML variants. However, the original example did not make it clear that the first text line directly follows <body>; depending on context, it *may* be valid. (In both transitional and strict.)

      --
      All my comments get moderated +-0, spotless.
    70. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      Why don't you actually check with the specification before attempting to correct me?

      The Strict DTD defines BODY like this:

      <!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) -- document body -->

      The Transitional DTD defines BODY like this:

      <!ELEMENT BODY O O (%flow;)* +(INS|DEL) -- document body -->

      The former permits only block level elements as children of BODY where the latter is more lax.

    71. Re:XHTML is a bad solution by antrik · · Score: 1

      > Why don't you actually check with the specification before attempting to correct me?

      Actually, I did check... But apparently the wrong place :-)

      Anyways, this only reinforces my original statement that the code in question is actually valid HTML...

      --
      All my comments get moderated +-0, spotless.
    72. Re:XHTML is a bad solution by Anonymous Coward · · Score: 0

      Anyways, this only reinforces my original statement that the code in question is actually valid HTML...

      And if you read my original reply, I was merely clarifying that it's not valid HTML under all circumstances.

  15. How ironic... by Anonymous Coward · · Score: 0

    For at least the past couple of days, all blurbs posted below (i.e. before) a book review blurb on the front page are all italicized. I guess there's an open i tag that is never closed. Maybe Slashcode maintainers should pick this book up.

  16. W3C trying to make me PC *rolls eyes* by StreetFire.net · · Score: 2, Interesting

    Macromedia, Adobe and gang have to push things forward to keep getting us to buy product right. Is HTML now "designed obsolescence"?

    No

    Jakob Nielson and the gang have pushed us to really boring text based browsing that is a chore to read, and not worth a casual flipping. Why should *I* care if my website is Modem/text based browsing compliant? Sure if I had a research website I can see the point, but my website is a video hosting portal http://videos.streetfire.net/ [streetfire.net] so I doubt the 40,000 folks coming to my site every day care about text based browsing or low-bandwidth options, since the end media is video.

    FWIW though I chose 3.0 HTML because it's easier to integrate the 13 ASCX objects into my single ASPX page than if I kept styling separate with XHTML.

    Now that if course is just me and maybe I'm bothered by people saying my site is obsolete. I admit there are a lot of neat things you can do with XHTML http://www.csszengarden.com/?cssfile=/152/152.css& page=1 [csszengarden.com] (Click "select a design to see the style changes). But again I see that as new candy that doesn't really solve problems that neither I nor my viewers are having. [/rant]

    PS I used the BR tag too, because I still think the P tag is lame.

    -Adam HTML guy since 1994.

    1. Re:W3C trying to make me PC *rolls eyes* by Anonymous Coward · · Score: 1, Insightful

      You're still thinking in terms of merged design and content.

      Maybe you don't have a need for flexible control over your design post-publication. But a lot of other people do, particularly media sites. Actually, keeping design and content separated is a good idea in general. The ultimate ideal would be to be able to have the content standardised sufficiently that you could syndicate content from one site to another in the original markup without having to worry about compatibility with stylesheets etc.

      Obviously that's not here now, XML+XSLT aside. But for people who generate a lot of text content having a "design engine" built into the end users browser saves a lot of time.

      How do you add your content and render the pages around it? Have you written custom code that automatically adds all your design markup into each served page? The idea behind CSS/XHTML is that the browser does that for you, you just define your rules in a single flexible document.

      As for the BR tag, that's just silly. The P tag is "lame"? What's lame about it? It defines a semantic meaning (begin and end a paragraph) that the BR tag ("start a new line now") doesn't have, while allowing basically the same things to be done.

      You just strike me as somebody who learned HTML a long time ago and hasn't been keeping up.

    2. Re:W3C trying to make me PC *rolls eyes* by Anonymous Coward · · Score: 0

      Jakob Nielson and the gang have pushed us to really boring text based browsing that is a chore to read

      Straw man. He actually advocates using images and good design, and keeping text short and snappy, emphasising the key points.

      my website is a video hosting portal http://videos.streetfire.net/ [streetfire.net] so I doubt the 40,000 folks coming to my site every day care about text based browsing or low-bandwidth options, since the end media is video.

      Most search engine spiders don't watch the videos.

      FWIW though I chose 3.0 HTML

      There's no such thing, 3.0 never made it out of draft status.

      I admit there are a lot of neat things you can do with XHTML [link to CSS Zen Garden]

      You are clueless. That has nothing to do with XHTML. You can do the exact same thing with HTML. You can even use stylesheets with HTML 2.0 documents.

      Adam HTML guy since 1994.

      You sure don't know a lot for somebody who claims to have been doing this for over a decade.

    3. Re:W3C trying to make me PC *rolls eyes* by ptlis · · Score: 1

      Pre-excuse: I'm not entirely sober right now...

      HTML 3? - 330 errors. Nearly as bad as /. ;)

      Personally I will be glad when dinosaurs like yourself finally become extinct - sure i'm just some young 'whippersnapper' compared to you, i've only been doing website development since 1998 but I have adopted my practices as the nature of the web has changed, both for the benefit of low-bandwidth users, disabled users and such as well as for myself. Doing all styling with a CSS file makes my life an order of mangitude easier when I have to go back to a previous site and do a redesign. Semantic, non-presentation markup saves significantly on bandwidth used and when combined with caching of stylesheets the bandwidth saving can be fairly significant on more popular sites. The lack of junk markup means my sites have a significantly higher content to markup ratio than they once did (and competitors still do) and there is significant evidence that search engines use this as one of their variables for search rankings.

      OTOH I still mostly use HTML 4.01 because for most sites there is currently no real reason to use XHTML and probably wont be for some time and I refuse to send XHTML as text/html on my clients sites (although most of my own site is currently XHTML 1.0 valid) because that is not what it is. One must find a sane balance between the almost 'faddish' XHTML & CSS pushing and the realities of modern user agents and for now there is nothing I can do with XHTML (that works in all popular browsers) that I cannot do with HTML 4.01, and HTML 4.01 is alot more supported than XHTML and will be for the forseeable future.

      --
      There's mischief and malarkies but no queers or yids or darkies within this bastard's carnival, this vicious cabaret.
    4. Re:W3C trying to make me PC *rolls eyes* by ptlis · · Score: 1

      Replying to myself because I forgot to mention one very important benefit: Being able to target stylesheets to specific devices is wonderful - all of my sites look as good (although differnet) in handheld browsers, when people print out my pages they get a clean copy with few or no colours, no superlous navigation etc etc.

      --
      There's mischief and malarkies but no queers or yids or darkies within this bastard's carnival, this vicious cabaret.
    5. Re:W3C trying to make me PC *rolls eyes* by StreetFire.net · · Score: 1


      Well, in 90 days we've gone from 1,000 unique visitors/day to 40,000 with 30% week to week growth and are now pushing a sustained 70Mbps of traffic. Are you trying to tell me that if I designed the site using XHTML the site would be more popular?

      I highly doubt that. I've never had a user complain to me that the site wasn't designed with a more modern HTML standard.

      As for disabled users and yourself, if you're text browsing then you're really not the type of user our site is looking for anyways, as our sites are designed for High Bandwidth Eye-candy types, and I think our site growth reflects that.

      -Adam

    6. Re:W3C trying to make me PC *rolls eyes* by StreetFire.net · · Score: 1


      The P tag sucks because it's redundant and the new P tag standard agrees with me. It makes more sense to say "New Line" instead of "Stop Paragraph""Start Paragraph". Obviously if you need a new Paragraph then the old one has ended.

      Also if you need to scootch your text down just a smidge, it's easier to just drop in a BR than dig into the CSS.

      As for my HTML skill level, it rises to the needs of the project and I have yet to see an end-user affecting need that requires a drive to newer standards. It makes more sense to write code in the most backward compatible spec that gets the job done.

      As for how I handle Content Management, http://videos.streetfire.net/ is an HTML skin with .NET objects embeded as needed by the Nav state. The main page uses 13 nested objects to be built and at ~200 concurrent users we rarely see CPU utilization go above 4%. (and that's because we're running 5 domains being dynamicly skinned real time with App and DB servers running on the same pipe). We use HTML instead XHTML because Site Owners can upload an HTML template with a Tag that says "insert video player" and the server builds the page dynamicly from there.

      http://video.freevideoblog.com/ is running the same objects and the same server with different content and a different skin. We scratch built the CMS/VMS (video Managment System?) to allow N number of skinned video portals. Go to http://www.vidiac.com/ if you want more overview.

    7. Re:W3C trying to make me PC *rolls eyes* by Anonymous Coward · · Score: 0

      As for disabled users and yourself, if you're text browsing then you're really not the type of user our site is looking for anyways, as our sites are designed for High Bandwidth Eye-candy types, and I think our site growth reflects that.

      That shows great ignorance as to what a disabled person might want to access. In some countries (and I guess even states) such websites border on being illegal.

    8. Re:W3C trying to make me PC *rolls eyes* by StreetFire.net · · Score: 1

      "... That shows great ignorance as to what a disabled person might want to access. In some countries (and I guess even states) such websites border on being illegal...."

      So it's against the law to make a video website that doesn't cater to blind people?...yea right....Show me where it says that. Sorry, if I have to adopt a new *DESIGN* technology to cater to people that don't ever visit my website and wouldn't want to anyways, then you're failing to explain to me the value of assuming the cost to forklift my site. No, I think it's smarter to design sites to the lowest common denominator to reach the largest number of people rather than cater to a fraction of a fraction of a percent of the site users with new technologies every time someone comes out with a new change in standards.

      99.99999....% of the websites out there don't even use CSS much less XHTML. All this scuttle butt about future browsers not being backwards compatible is just FUD.

    9. Re:W3C trying to make me PC *rolls eyes* by StreetFire.net · · Score: 1

      That is a value of course, but for the time it takes to render a site on multiple devices (hand held Cell phone.... apparently Brail Browser too considering what that Anonymous Coward wrote) It's almost.... not it is easier for me to just go ahead and write a new site for each device and let the CMS propogate content as needed. It's not as Sexy of a solution, but it saves oceans of times for cross browser/device compliance. Case in point .NET server pages with complex client side controls render fine in Safari and OSX-Firefox, but blow up in OSX-Internet Explorer. It's easier for me to just write a custom IE-OSX specific control, than it is to make a single control work in all environments. Google had this same plroblem with early releases of GMail too, and we all know they are the ultimate God's of how to do things right....(faceous).

      My point is that you write code to cater to the largest possible demographic of your user base. They don't care if it's XHTML or HTML 1.0 if they can't tell the difference in the end result, and they also don't care how sexy or basic your code is either. Now I can go the new standards route, but why should I if it' just as easy ... no easier to just pop it out in the old trusted reliable format? There is allways a price to pay for trying to keep up with technology for technology's sake, especially if your users aren't even asking for it. I think I-Drive in the 7-series BMW was a good example of that.

    10. Re:W3C trying to make me PC *rolls eyes* by ptlis · · Score: 1
      Well, in 90 days we've gone from 1,000 unique visitors/day to 40,000 with 30% week to week growth and are now pushing a sustained 70Mbps of traffic. Are you trying to tell me that if I designed the site using XHTML the site would be more popular?

      Nowhere did I say that the popularity of a site is dependant on the underlying markup - /. is an excellent example to prove this is not so. What I did say is that for most popular sites significant bandwidth gains can be made by using minimalistic semantic markup and stylesheets when compared to the old-school cruft filled nested tables. Of course if you're serving streaming media the benefits of this are probably minimalistic in the grand scheme of things.

      You could however get some benefit from seperating presentation from content if you decide to redisign the site at a later point or wish to give users the choice between multiple styles.

      --
      There's mischief and malarkies but no queers or yids or darkies within this bastard's carnival, this vicious cabaret.
    11. Re:W3C trying to make me PC *rolls eyes* by ptlis · · Score: 1
      So it's against the law to make a video website that doesn't cater to blind people?

      Disabled != Blind.

      'Disabled' is a term which covers a broad spectrum of ailments from the minor to the very severe. 10% of all men are at least partially colour blind, there are users like myself who although not blind are short-sighted so often need to up the font size, there are users whos eyes are fine but have difficulty with delicate motor control (here DHTML menus can be a big pain) etc etc.

      --
      There's mischief and malarkies but no queers or yids or darkies within this bastard's carnival, this vicious cabaret.
    12. Re:W3C trying to make me PC *rolls eyes* by ptlis · · Score: 1
      That is a value of course, but for the time it takes to render a site on multiple devices (hand held Cell phone.... apparently Brail Browser too considering what that Anonymous Coward wrote) It's almost.... not it is easier for me to just go ahead and write a new site for each device and let the CMS propogate content as needed.

      It may be, it may not be. But there are several things you don't seem to have considered: Firstly once you've made a stylesheet it's done - you can use it for one page, one thousand pages or a million pages. Then when you decide to change the layout or colour scheme you have a handfull of simple files to edit rather than whatever custom hack you've made's method. Secondly the custom stylesheets work 'automagically' without user interaction or any extra effort on your behalf and no, you don't have to target every media type, just the ones pertinant to the site at hand. So rather than a hyperlink to a 'print version' it's simply printed with the print stylesheet - without having a 'handheld devices go here' link you just let the user agent use the handheld styleshet.

      It's not as Sexy of a solution, but it saves oceans of times for cross browser/device compliance. Case in point .NET server pages with complex client side controls render fine in Safari and OSX-Firefox, but blow up in OSX-Internet Explorer. It's easier for me to just write a custom IE-OSX specific control, than it is to make a single control work in all environments. Google had this same plroblem with early releases of GMail too, and we all know they are the ultimate God's of how to do things right....(faceous).

      Do you have any idea how tiny Mac/IE5's market share really is? That's like saying you don't use CSS at all because 0.01% of your users view it in NN4. And of course you're forgetting that the job of the web is to propegate and present information - our ability to make the information look nice is just a bonus.

      My point is that you write code to cater to the largest possible demographic of your user base. They don't care if it's XHTML or HTML 1.0 if they can't tell the difference in the end result, and they also don't care how sexy or basic your code is either.

      Agreed, but as a professional I do. Further I have to maintain my markup for a potentially indefinite period of time, and from past experience some extra effort made at the beginning can make a huge difference later on.

      Now I can go the new standards route, but why should I if it' just as easy ... no easier to just pop it out in the old trusted reliable format?

      Once again it's a matter of professionalism, it disgusts me just how unproffesional the majority of the 'website development' industry is - although it's still relatively young that is no excuse.

      --
      There's mischief and malarkies but no queers or yids or darkies within this bastard's carnival, this vicious cabaret.
    13. Re:W3C trying to make me PC *rolls eyes* by Just+Some+Guy · · Score: 1
      Now that if course is just me and maybe I'm bothered by people saying my site is obsolete.

      Obsolete: maybe. Ugly: definitely. The basic design is fine, sure, but the page renders poorly for anyone with a screen layout slightly different than your own. It's built around the tiny-column-with-wide-borders template that you see splattered around the web. If I change my window size, your content column stays the same width (only the size of the vertical borders changes). If I use a larger font size than you do, parts of the page expand to the point that I have to use the horizontal scrollbars to see the whole page.

      So, yeah, your page is bad because it doesn't look good everywhere. Your use of old fashioned fixed layout means that it can never gracefully cope with changing environments. That ability is what you gave up by going HTML instead of XHTML+CSS. If you and your visitors are content with the tradeoffs, then more power to you. Most webmasters would not be.

      --
      Dewey, what part of this looks like authorities should be involved?
    14. Re:W3C trying to make me PC *rolls eyes* by StreetFire.net · · Score: 1

      Firstly once you've made a stylesheet it's done - you can use it for one page, one thousand pages or a million pages.

      All my sites use styles. As a matter of fact http://videos.streetfire.net/ uses CSS, and that same code base is running (5) other sites with their own style sheet and skin. for example http://www.crossroadvideos.com/ is the same server same code, different ASCX "master tamplate", different CSS. Guess what though, CSS has been around since 1996, so that's not what we're talking about here, and as I said before, since CSS/DHTML came out there have been no improvements to the standard significant enough for me to EOL all my old site code.

      Do you have any idea how tiny Mac/IE5's market share really is? That's like saying you don't use CSS at all because 0.01% of your users view it in NN4. And of course you're forgetting that the job of the web is to propegate and present information - our ability to make the information look nice is just a bonus.

      *confused* so I have to use XHTML to cater to blind people, but making code that looks just as good on a MAC as a PC isn't a factor? Is Disabled > MAC users? *sigh*

      Once again it's a matter of professionalism, it disgusts me just how unproffesional the majority of the 'website development' industry is

      No offense but this just sounds elitist to me. `I use XHTML, and EOL HTML because I'ma "proffesional" all you writing HTML just simply aren't "proffesionals"'? Again my users never once judged the validity of my website based on what HTML standard I'm using or how "proffesional" they think my coding practices are.

    15. Re:W3C trying to make me PC *rolls eyes* by ptlis · · Score: 1
      [...] there have been no improvements to the standard significant enough for me to EOL all my old site code.

      I very strongly disagree, since IE5 and NN6 were became the majority browsers it has been possible to design pages only with semantic, plain HTML 4.01 styled with CSS. Now that IE6 and Fx1 are the current standard browsers (with ~85% and ~10% of market share respectively) and Opera/Safari/KHTML taking the rest there is no good reason not to go down the semantic HTML and CSS route, other than blind pigheadedness and an unwillinness to be dragged into the new millenium. There are huge benefits to such designs both for users, disabled and non-disabled alike, low bandwidth and broadband users alike and yourself as the webmaster/designer.

      No offense but this just sounds elitist to me. `I use XHTML, and EOL HTML because I'ma "proffesional" all you writing HTML just simply aren't "proffesionals"'? Again my users never once judged the validity of my website based on what HTML standard I'm using or how "proffesional" they think my coding practices are.

      The thing is I DON'T use XHTML, as i've already said repeatedly. If you're not even going to read my posts than please don't bother replying to them. What I was saying is the fucking terrible mess of nested tables, depreciated elements and attributes and non-validating code is incredibly, mind-boggling unprofessional. Using five levels of nested tables for layout is about as far as one can get from best-practice when it comes to designing webpages. The 'videos' page of your "streetfire.net" page is 110Kb just for the non-compliant kruft-filled markup, that's fucking insane. Further said markup has no semantic meaning.

      Now really, are you going to address any of my arguements or just continue rambling on about markup practices from the early ninetys?

      --
      There's mischief and malarkies but no queers or yids or darkies within this bastard's carnival, this vicious cabaret.
    16. Re:W3C trying to make me PC *rolls eyes* by StreetFire.net · · Score: 1

      little off your rocker with rage now aren't we?

      110KB for the StreetFire page, sure blast me for it if you want. Just shows you aren't a very competent designer. Rather than evaluate a web application based on what a user needs, you would rather dictate your own needs as a designer on what is and is not needed. Again Elitist, and shows a lack of business sense.

      What is StreetFire? It's a high bandwidth VIDEO STREAMING site. Site design in based on USER NEED, not not the DESIGNER'S NEED. StreetFire's main page could be two megs and my 40,000/users a day wouldn't give a rip, because the first thing they do is watch, on average, watch 15MB of video each. They could give a flip about a 110KB page. Thus it's not a requirement. (BTW we average 75MBps on our 1GBPS Internet Pipe, and run on average 150-200 simulataneous 400Kbps Video streams). These are not low bandwidth types using brail browsers. The site popularity would suffer if it was designed that way.

      Second, and you obviously missed this point as well. StreetFire is one of many Video portals I manage from the same code base. 90% of my customers have HTML 1.0 Level skills. Case in point, http://www.ls1tech.com/ just signed with us, with their 60,000/user per day site. In less than 10 min we were able to get their video portal up http://video.ls1tech.com/ (and populate it with 300+ videos relevant to their portal). We have the capability to be that responsive because we don't rebuild their site to the latest greatest code base. Heck their users don't even want that, they want the same old same old site.

      Did they care what HTML standard we used? Nope. As a matter of fact I have to write my code to fit their need of reusing their site style. Had I used a Sexy DOM site with no nested tables, etc, I would have to rebuild their entire site to fit my standard. Simple as there site is, that's more work for me (and/or them). Thus, the requirements for my application dictate that when I get a customer with a complicated site, such as http://www.crossroadvideos.com/ I can depreciate my code base to fit their site, rather than re-write their site to fit my code.

      Program to your user's need, not your need to feed your ego with "sexy code" forcing your customers (or yourself) to reinvent the wheel every time the W3C farts.

    17. Re:W3C trying to make me PC *rolls eyes* by Anonymous Coward · · Score: 0

      The P tag sucks because it's redundant and the new P tag standard agrees with me.

      "The new P tag standard agrees with you"? What's that supposed to mean?

      It makes more sense to say "New Line" instead of "Stop Paragraph""Start Paragraph". Obviously if you need a new Paragraph then the old one has ended.

      You don't need to explicitly close paragraphs in HTML.

      The reason why you do in XHTML is so parsers are simpler. Parsers being simpler has knock-on effects - less time spent developing and maintaining them, which translates to more time available to add actual features to web browsers. Also, the simpler it is to write a parser, the easier it is for a new browser to be written that can be better than the competition.

      Writing kludgy markup in an attempt to do the absolute minimum necessary to get it to work in popular browsers only raises the bar for browser developers. It also makes things more difficult for the people who want to add neat features to your website with things like bookmarklets and greasemonkey.

      As for <p> vs <br>, that one's a no brainer. If you use <br>, you can't select your pseudo-paragraphs in CSS. This rules out a bunch of things, e.g. text-indent, margins, etc.

  17. That's great if your site is only visited by geeks by sharkb8 · · Score: 2, Insightful

    Grannell firmly advocates designing for standards compliance, usability, accessibility, and last and least, visual design.

    If people keep using HTML, browers will continue to support it. Designing for standards compliance is great, but a crappy website that loads on any standards compiant browser is a lot less useful than a beautiful, usable website that loads on the major brosers like Firefox, IE, Opera and Safari.

    Ever heard someone complain about an ugly website that's hard to navigate? we've all done it.

    Ever heard anyone complain that standard HTML didn't look the same on all broswers? Not too often I bet.

    And standards compliance is great, but with 1) IE having a 90% market share, and 2) IE not being standards compliant, doesn't that mean that most internet users aren't using a standards compliant browser?

  18. Re:What's the need? by Anonymous Coward · · Score: 0

    Look I don't come around to your house and explain which hole you should stick Mr. Johnson into.

  19. plain HTML has to go ! by cablepokerface · · Score: 5, Insightful

    And why is that? So people can screen scrap easier because you're content is xml parsable?

    I lived by those rules not long ago; tableless design, css driven, no client side javascript events in the html (but put there by an initialization function), classnames never revealing structure information, separating structure classes with lay-out classes in different css, xhtml 1.1, etc.

    Where did it get me? Not sure but sticking to all those rules sure costed me much more time then needed. And what for, because browers require that a page validates in a few years? Forget it, not in a decade, not in two.

    Advice, stick to clean html that makes sense, think of your customers, think of your bandwith and don't let that w3c run your web development.

    1. Re:plain HTML has to go ! by Run4yourlives · · Score: 2, Informative

      think of your customers, think of your bandwith

      1. CSS based designs use less bandwidth, because stylesheets are cashed.

      2. Think of yuo customer's customers. Specifically, those using browsers other than ie, those on cell phones, those who are using screen readers etc.

    2. Re:plain HTML has to go ! by cablepokerface · · Score: 1

      Maybe I wasn't specific enough. I do not oppose any of these concepts or methods. But I tried to get the point across that you should not be bound to them to much. I can't remember the last site I made not using css. I will always use it. However, css is a part of what web developers can tie their hands with easily. I was pointing out; don't think the only good site is a site with all these technologies used.

    3. Re:plain HTML has to go ! by edxwelch · · Score: 2, Informative

      Yeah, have a look at any commercial web sites (ie. MacroMedia). They're all using HTML 4.01 transitional (or lower) and tables for layout.
      And the reason is, is because it's the only way that they can make their web sites look good on all browsers.

    4. Re:plain HTML has to go ! by Run4yourlives · · Score: 1

      I'm not seeing your point then.

      Seperating style from content using css has so many pros I don't know why I wouldn't suscribe to it.

      That being said, I do use tables: to present tabular data.

    5. Re:plain HTML has to go ! by the_2nd_coming · · Score: 1

      if you follow those rules then your work load is much much much much much easier. think about maintaining a website... all the links are red, you made them that way with . now your boss wants you to change all of them to orange... you get paid no over time and have a deadline to get this done... if you used XHTML and CSS it would require about 10 keystrokes.

      --



      I am the Alpha and the Omega-3
    6. Re:plain HTML has to go ! by Compenguin · · Score: 1

      You could do it with regexps just as easily

    7. Re:plain HTML has to go ! by antrik · · Score: 1

      No, it only makes it look good on the few "major" browsers they cared to test it on. It makes it look teribble (actually unusable in many cases) on anything else. (Including phones/PDAs, text mode browsers etc.)

      --
      All my comments get moderated +-0, spotless.
    8. Re:plain HTML has to go ! by TLLOTS · · Score: 2, Insightful

      The parent doesn't have a clue what they're talking about. Saying that using tables for layout and HTML 4.01 is the only way to make web sites look good on all browsers is complete bull. Anyone who actually knows how to use CSS properly will see how simply it is to create a nice layout, and it's not all that hard to make it work on all browsers.

    9. Re:plain HTML has to go ! by the_2nd_coming · · Score: 1

      well.. if you had a 10,000 page site, that regex way is going to still take a long time. I like CSS better..

      1: open file
      2: highlight color
      3: type new color code
      4: save file
      5: go back to playing on Yahoo games.

      --



      I am the Alpha and the Omega-3
    10. Re:plain HTML has to go ! by Anonymous Coward · · Score: 0

      well.. if you had a 10,000 page site, that regex way is going to still take a long time. I like CSS better..

      for x in *.html; do mv $x $x.old; sed $x.old -e 's/color="red"/color="orange"/g' > $x; done

      Now, how long would it take to File->Open on your 10,000 page site?

    11. Re:plain HTML has to go ! by turpie · · Score: 1

      Opening and modifying one CSS file wouldn't take long at all. If you define things like link color in CSS you only need to modify one file, not 10,000.
      It'd definately be quicker than me writing and debugging a multi-stage command line.

      By the way he only wanted to change the links to orange, not everything that was red.

    12. Re:plain HTML has to go ! by Anonymous Coward · · Score: 0

      Look, if you want to still to the 50s era and run that horse and wagon of yours, go for it. If it works fine, why fix it and progress right?

    13. Re:plain HTML has to go ! by LordLucless · · Score: 3, Insightful

      I use tables to present tabular data too. But I also use tables to layout my site when the only alternative is horrific CSS kludges.

      Example: try vertically aligning elements using CSS. The vertical-align tag is only valid in something rendered as a table cell. Firefox allows display: table-cell;, IE doesn't.

      If you want something vertically aligned, don't use CSS. Use a table. I would *love* to stop using tables for anything but tabulated content, but CSS Positioning requires far too many awful hacks when you start talking complicated designs. Tables are simple and well-supported by most mainstream browsers.

      This was just one example; there are others. Try creating a footer at the bottom of your page. (bottom: 0px; does not work on all browsers reliably).

      I *like* the concept of CSS. But it's just not all together yet.

      --
      Just because you're paranoid doesn't mean there isn't an invisible demon about to eat your face
    14. Re:plain HTML has to go ! by Anonymous Coward · · Score: 0

      for x in *.css; do mv $x $x.old; sed $x.old -e 's/color: red/color: orange/g' > $x; done

      The point is that the set x is much smaller when you're updating your CSS files than changing all 10,000 HTML files.

      (Granted that's neither the correct regex for fixing 10,000 HTML pages nor for fixing the CSS files because it ignores the fact that you need to only change the color of links.)

    15. Re:plain HTML has to go ! by edxwelch · · Score: 1

      There are many things that you can only be done with tables, for instance if want to make a cell bottom align according to the size of the contents of cell next to it.
      If you want to make a footer always appear on the bottom of a page, except when the window is too small in which case it should appear at below the rest of the contents..

    16. Re:plain HTML has to go ! by Anonymous Coward · · Score: 0

      So what happens when you want to change the red text in your navigation, but leave the red text in your main content area alone? You are screwed, that's what.

      Oh, and you wouldn't have to open 10,000 files when using CSS, just a single stylesheet. Why don't you learn a little about what you are criticising so you don't say stupid things in the future?

    17. Re:plain HTML has to go ! by Washizu · · Score: 1

      I wasn't able to do CSS layouts properly until I came across this site.

      CSS layout techniques

      --
      OddManIn: A Game of guns and game theory.
    18. Re:plain HTML has to go ! by Anonymous Coward · · Score: 0

      So how do you do vertical centering, then? If it's explained there, I couldn't find it.

    19. Re:plain HTML has to go ! by Anonymous Coward · · Score: 0

      This is exactly where CSS is useful -- common text styles and the like.

      I think it is taken too far when people start talking about using CSS to replace tables for hierarchial page layout, especially in a web application where each page has a different user interface anyway.

      But then again, I come from a background that believes web pages shouldn't be designed for exact-pixel layout. If you want that, use PDF.

  20. Another recommendation for beginner's.. by x.Draino.x · · Score: 3, Interesting

    Although I haven't read the book this review is about. I recently purchased another book titled Web Standards Solutions: The Markup and Style Handbook by Dan Cederholm and found it very good for beginner's to XHTML and CSS. Even my wife, who's never dabbled in web design before is enjoying it. Also, quite a few of the chapter's in Dan Cederholm's book appear on his website if you want to get a feel for his writing style.

  21. whoa daddy by rebug · · Score: 2, Informative

    Whoever told you that Firefox was "100% compliant" was selling something.

    Firefox whiffs some CSS2.1 rules among other things.

    --

    there's more than one way to do me.
  22. Old? by HRbnjR · · Score: 3, Insightful
    it provides a nice framework guiding "old dogs" like me into standards-compliant code.


    XHTML 1.0 became a W3C Recommendation on 26 January 2000, meaning it has been around almost as long now as HTML was when it came out! (Well, at least, almost as long as HTML had been in popular use when XHTML came out).

    The only excuse for not using XHTML today is laziness and ineducation on the part of designers and those educating them. The same reasons most web sites don't validate as proper HTML. Sadly, "just good enough" is the rule of the day.
    1. Re:Old? by Anonymous Coward · · Score: 1, Insightful

      I fail to see what the big deal about xhtml is. And I fail to see how the parent post is in any way insightful.

      I've never bothered learning it, because I've never been given a reason to ditch HTML4.01 Strict + CSS.

      It validates, it's simple, and 98% of the time I don't have to modify the original CSS markup for it look and act the same in IE as it does in Moz, Opera and Konq, which makes my lfe easier, and gives me time to do other things.

      No, laziness isn't why people still use HTML, convenience and practicality are. Not to mention that not everyone needs, nor wants what xhtml has to offer. Really, who gives a shit what markup you're using as long as it conforms to the standards ?

  23. Re:What's the need? by Keystroker · · Score: 0

    Excuse me? All I'm saying what is wrong with the current HTML? What exactly needs to be upgraded?

    --
    Avarus animus nullo satiatur lucro.
  24. There is a lot to that. by jd · · Score: 5, Insightful
    It is stupid to re-create, on the fly, essentially identical information that probably won't look right on many browsers anyway. It would make more sense to put that time and effort into getting the page to work well than in getting it to use the latest technology.


    Having said that, using PHP and other dynamic mechanisms to "code around" browser bugs, by implanting "patched" tags or using alternative mechanisms where something is seriously broken, is definitely the most practical solution.


    You can use Apache SSI's to detect the browser and then #include the appropriate page, but that is extremely expensive on maintenance. It is much more practical to embed markers wherever you might need to deviate from the "correct" HTML and simply use a script to search & replace.


    For those pages that genuinely do have dynamic content, you can have a background engine generate static pages every so often, which you then serve, avoiding a continuous rebuild. However, you run the risk of race conditions, where you try to serve a page that is part-way through a rebuild. The result will be the display of a broken page, which is definitely a Bad Idea.


    Really, the "correct" design is to use a mix of approaches. Use static methods for static content, use dynamic methods for dynamic content, use pre-built pages where downloads are more frequent than updates. Hammers are great for nails, but you wouldn't use them in place of a saw or a screwdriver.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    1. Re:There is a lot to that. by INeededALogin · · Score: 2, Informative

      however, you run the risk of race conditions, where you try to serve a page that is part-way through a rebuild.

      Already solved the race condition... At my last company, we generated about 20-25 webpages that took over 35 seconds a piece to generate. These accessed a heavily taxed DB server and was processing around a million rows. Simply generate the code to a temp file. Once finished move the temp file in place of the old file. The time it takes to move the file is extremely quick and should(under most circumstances) keep the blank/half webpages from showing up.

    2. Re:There is a lot to that. by poot_rootbeer · · Score: 1

      It is stupid to re-create, on the fly, essentially identical information

      Yes, and that is why any dynamic website with moire than about 10 visitors per day needs a server-side caching mechanism.

      That way, the first person to request a page with dynamic content that never changes gets it pulled fresh from the database. Then for the next hour, the other 99 people get an essentially-flat-HTML version, served from cache.

      squid would most likely be the Slash-bot's package of choice, but there are plenty of them out there.

    3. Re:There is a lot to that. by quantum+bit · · Score: 2, Informative

      Once finished move the temp file in place of the old file. The time it takes to move the file is extremely quick and should(under most circumstances) keep the blank/half webpages from showing up.

      And on a UNIX server, replacing a file in this manner is an atomic operation, so no one should ever end up with a broken page due to a race condition.

    4. Re:There is a lot to that. by MustardSauce · · Score: 1
      On any *nix system
      mv
      is an atomic operation. There is no should about it. It will keep blank/half webpages from showing up, assuming that you are writing whole pages, not frames, etc.

      I cannot imagine that it would be different on any other OS/Webserver combination, but Microsoft has confounded my expectations more than once before.

    5. Re:There is a lot to that. by SuperBigGulp · · Score: 1
      should(under most circumstances) keep the blank/half webpages from showing up

      I see you're new to /.

      --
      Someday a Slashdot ID of 177180 will mean something.
    6. Re:There is a lot to that. by Flutty · · Score: 1

      The website I currently manage is entirely static and yet the management want it updated with new events, news of new publications etc. It is being done by hand - by part-time students - but if only I could have a database to enter the data into and let the "report parameters" select the most uptodate information.

      What I had not appreciated - if I can sum up this technical debate, as a non-techy - is the choice of

      1. to cache the initial serves from the database,
      2. to remain entirely dynamic or
      3. to create static pages, and rebuild at some trigger point.

      Or is it possible to mix all three, and have my Swiss Army Knife?

      Something I need to ask of my sysadmin about, poor guy.

      >>> Really, the "correct" design is to use a mix of approaches. Use static methods for static content, use dynamic methods for dynamic content, use pre-built pages where downloads are more frequent than updates. Hammers are great for nails, but you wouldn't use them in place of a saw or a screwdriver.

    7. Re:There is a lot to that. by Anonymous Coward · · Score: 0

      Having said that, using PHP and other dynamic mechanisms to "code around" browser bugs, by implanting "patched" tags or using alternative mechanisms where something is seriously broken, is definitely the most practical solution.

      Why? There's very few situations where you have to resort to server-side detection of browsers, and if you do that, you drive cachability way down. One size fits all is much less hassle.

    8. Re:There is a lot to that. by doc+modulo · · Score: 1

      Renaming is even faster than copying.

      Copy the updated temp file with a temporary name into the same directory as the file you're going to replace, then do a rename on both files and you will have an even tinier probability of the webserver showing a broken page.

      Came up with that on my own once. That means I'm smart.

      --
      - -- Truth addict for life.
    9. Re:There is a lot to that. by amiak · · Score: 1

      There is more than one way to get things done.

      --
      accurately define good according to a criteria and seek it out.
  25. that is BAD! by Anonymous Coward · · Score: 0

    remember what happened last time the good folks over at netscape and microsoft thought the w3c spec was incorrect, or lacking in some manner?

    screwy dhtml and authors having to code in all sorts of browser-detection tricks...

  26. Re:What's the need? by man_of_mr_e · · Score: 4, Interesting

    Many things are wrong with current HTML. Well, ok, not CURRENT HTML (4.01) but everything before that.

    Since XHTML is just a reformulation of HTML 4.01 into XML, and XHTML 1.1 is just a modularization of XHTML, technically nothhing is wrong with HTML as it exists today. But what about how it exiists tomorrow?

    XHTML allows for the easy expansion of the language. Right now, DOCTYPES are the only way to define what version of HTML you're using, which makes it an all or nothing proposition. What if you want to use HTML + SUPERCOOLHTML-Extended? XHTML 1.1 allows you to basically define your own syntax, and more importantly allow the standards body to do so easily).

    This way you only have to use as much of the standard as you want to, and if there are two competing standards you can actually choose which one (or ones) to use in a way that the browsers can understand.

    Now, i'll grant you that for the typical "my cat fluffy" site, they don't give a rip. HTML 4.01 is just fine. But did you know that HTML 4.01 strict doesn't have font tags? It doesn't have the target attribute on links. It doesn't have a lot of stuff you're used to that are going away.

    It's best to get used to XHTML now, HTML won't be improved, but XHTML will.

  27. irony... by utexaspunk · · Score: 1

    did someone forget the tag?

    1. Re:irony... by utexaspunk · · Score: 1

      dammit! i said </i>! did someone forget the </i> tag?!

  28. Posting on eBay by Newt-dog · · Score: 3, Insightful
    Try posting a custom layout on eBay with a few whistles and buzzers -- your layout will suck.

    I did a page layout on eBay for an older retired friend who makes wooden toys. I used the normal .css file and div tags -- it looked like crap and was unusable. I had to go back to the drawing board and use tables! (Tables, nested in tables to get the same layout)

    Most of the internet might be ready for bleeding edge stuff, but don't toss away your plain 'ole vanilla flavored HTML just yet.

    Newt-dog

  29. HTML Hasn't needed improvment since CSS by StreetFire.net · · Score: 1

    Call me an old dawg, but I've been doing webpages since 1994 and the only worthwhile change to HTML was CSS. So I don't see a need for the standard to be advanced any more. No driving need. Keep in mind that needs are driven by the website visitor, not by you the designer. So if your visitors needs FRAMES and BLINK tags then good luck with XHTML, becuase your visitors don't give a rip about "advancing the standard" unless it fits their needs.

    1. Re:HTML Hasn't needed improvment since CSS by man_of_mr_e · · Score: 1

      Actually, you're right and wrong. Needs are driven by the website visitor, but they don't know what their needs are.

      In effect, the needs are driven by the software they are using, which means the needs are driven by the browser vendor of the software the site visitors are using.

      Thus, if the site visitor's software is following the "advancing standard" then so does the visitors need. Since all the major browsers (hopefully including IE) are moving in that direction then so will end users as they upgrade.

      What you're saying is "I don't care about all them newfangled horselss carriages, horses are good enough and will be used by everyone I know for years to come". That may be true, but eventually it won't be.

  30. Web quick ref by slapout · · Score: 1

    What I'd like to see is a Quick Reference book that covers most web stuff: HTML, PHP, ASP, JavaScript, CSS, etc. It doesn't have to teach it, just be one quick ref for it all.

    --
    Coder's Stone: The programming language quick ref for iPad
    1. Re:Web quick ref by Run4yourlives · · Score: 1

      www.w3shools.com

      (VERY basic though)

    2. Re:Web quick ref by Optic7 · · Score: 1

      Dynamic HTML: The Definitive Reference Not quick at 1500 pages, but covers three of the ones you listed.

    3. Re:Web quick ref by detzli · · Score: 1

      Here's a few of them: http://www.devguru.com/home.asp

  31. They'll get my bold tag... by Cr0w+T.+Trollbot · · Score: 5, Insightful
    ...when they pry it out of my cold, dead mouse!

    That said:

    "Newer, more compliant browsers, will in time not support the older tags and code
    Garbage. The amount of code necessary to support basic HTML is so tiny amidst the vast beasts major broswers have become that there's no reason to dispense with it. And why use anything else when straight, primative HTML is still the most effective tool for conveying simple information?

    Crow T. Trollbot

  32. Blink tag still works in Firefox. Code inside. by macshune · · Score: 1
    I just made up a web page with the following code and I got the blinkiness of yore (aka the Jar-Jar Binks of HTML):
    <html>
    <head>
    <body>
    <blink>BLINKY!</blink>
    </ html>
  33. beyond HTML is overkill by Anonymous Coward · · Score: 1, Informative

    Personally I think HTML is beautifully simple. My own site uses vanilla grade HTML,a little JavaScript and some basic CSS. That is sufficient. I'm not running an online storefront or something. I have shown extremely computer illiterate people to write their own HTML pages - and one is running 4 busineses from his own website now for 7 years, with no more handholding from me.

    All this PHP, ASP, Today's 3-letter buzzword is mostly HYPE, so "web developers" can stay aloof and whine for more $$ every budget cycle. We need faster, bigger servers to cough up all this bloat, newer browsers to sift through all this crap and spew it up to the user's screen in some useable form. Many of these pages render badly, wrong, or not at all. Countless ones refuse to print or print so f*-ed up it makes the information they offer completely useless.

    Yes, K.I.S.S. and yet we do need 'new' technologies and ideas for the web. I painfully recall dooing CGI in Perl 4 on my hands and knees. There are now such nice tools available!! But their abuse and misuse is widespread.

  34. Re:That's great if your site is only visited by ge by Anonymous Coward · · Score: 0

    And standards compliance is great, but with 1) IE having a 90% market share, and 2) IE not being standards compliant, doesn't that mean that most internet users aren't using a standards compliant browser?

    And this is why monopolies are bad. When you have 90% market share, _you_ are the standard. Cry as your competitors might about your browser not following w3c spec, content-producers will be forced to code their pages for your browser and competition will eventually have to adopt your way of rendering.

    We might think it a blessing in disguise that IE was horribly insecure, otherwise Firefox would never have had the chance to break the IE monoculture.

  35. Re:What's the need? by RingDev · · Score: 1

    That's kind of like saying "I've never used 4 wheel drive beside off roads. My car pretty much has everything I need." -Rick

    --
    "Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
  36. I learnt web design in 1996 by Anonymous Coward · · Score: 1, Insightful

    I learnt html4 and basic CSS as was current back then.

    Moving several client sites to xhtml strict in 2000 was totally painless. Let's face it. the majority of so-called web designers haven't got a clue about markup.

    More books like this please, the majority still need whacking around the head with them a few more times.

    1. Re:I learnt web design in 1996 by edwdig · · Score: 1

      Your timeline is a little off. 1996 leaves you with either Netscape 2.0 or 3.0 as your browser (3.0 was released mid year). Netscape 4 was the first to support CSS. Internet Explorer was at 3.0 then, which was barely usable and still pretty far behind Netscape.

      I can't picture anyone using xhtml strict in 2000. Netscape 4 was still significant back then, and I really can't picture it liking XHTML all that much, although I don't know for sure.

      Even at this point in time, XHTML doesn't gain you much over HTML 4 strict. You can use XML tools on the source, but that's really the only advantage. On the downside, you have to send different MIME types to IE vs Gecko to get proper rendering, and who knows how well more obscure browsers are less likely to like XHTML.

  37. Absurd. by Roadkills-R-Us · · Score: 2, Insightful

    There are plenty of other reasons.

    Like 90% of the pages out there don't need it.
    99.99% of mine don't. All I need is my trusty hammer and screwdriver, and you're trying to insist I use a fully automatic, 50 calibre nailgun and a 3HP power drill with screwdriver attachment.

    1. Re:Absurd. by the_2nd_coming · · Score: 1

      dude.. for work that is larger than ONE FUCKING PAGE XHTML+CSS is far superior in every way.

      --



      I am the Alpha and the Omega-3
    2. Re:Absurd. by Anonymous Coward · · Score: 0

      HTML 4.01 Strict + always closing tags + CSS is just as good.

  38. Re:Three words: by Anonymous Coward · · Score: 0

    You tell 'em, Mr. HTML 4.01 Transitional!

  39. Re:How to Suck in 21 days! -- Mod Parent Down by Anonymous Coward · · Score: 0

    This guy is obviously a jerk.

    How can you mod him insightful and live with yourself?

    Bah.

    I'll not post as myself because I don't want to get spammed like last time I made a comment against him.

  40. Re:Three words: by rainman_bc · · Score: 1

    :) Boy, some DW fanboy really doesn't like me...

    Truth is, I think CSS is limited still. Give me better selectors like the CSS3 spec and that'll catch my attention. Until then, XHTML strict I'm not interested in...

    --
    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
  41. Websites? by Jugalator · · Score: 1

    OK, so that's a good book, but how about good websites for XHTML + CSS authoring? Preferrably with DOM 1+2 documentation too, more accessible than the raw specs at W3C?

    I've looked around a bit for this, for a browser neutral site and not something riddled with stuff related to IE extensions.

    Is W3Schools among the most thorough? It's at least one spanning several web technologies, but not so sure about the depth of it...

    I find it hard to just search for these things on Google as then you're greeted with dozens of sites of highly varying quality.

    Do the Mozilla Foundation provide a good resource nowadays for XHTML/CSS/DOM/Javascript development for the Mozilla platform? Last time I checked it seemed to clearly be a work in progress. :-/

    Actually, Microsoft has a pretty good web development resource content-wise on MSDN, and something I'm looking for. But one can of course imagine how aimed for IE it is. The documentation barely even *renders* correctly on other browsers >:-(

    --
    Beware: In C++, your friends can see your privates!
  42. Re:That's great if your site is only visited by ge by ChreodeRiot · · Score: 1

    I would add that there isn't a lot of imperative from a business standpoint to stop supporting deprecated tags (and syntax)

    People want their browsers to be able to view as many websites as possible, if the average user finds that the browser they are using doesn't render certain sites they like, they're not going to care that it's because the site isn't standards compliant. they're going to say "This browser sucks!"

    I code websites all the time and I appreciate a standard as much or more than anyone else, I just think it's unrealistic to think that XHTML will replace HTML, it will just become a better version of it.

  43. wow by Anonymous Coward · · Score: 0

    that was an amazingly lame attempt at a troll.

    1. Re:wow by trolleri · · Score: 0

      > that was an amazingly lame attempt at a troll.

      The troll is on you, tadpole. If you read my message carefully you'll see there's a few spelling errors and that's what you get with out a leader like Adolf Hitler.

  44. I'm still waiting for ... by Skapare · · Score: 0, Troll

    I'm still waiting for a non-obese browser to come along that supports these standards so I will have a complete user base available to make use of them. Until then, I'm stuck with generating plain old HTML. Oh, and in case you were tempted to suggest Firefox, don't bother; it's still too big and too slow for 100% deployment. How about one that doesn't grow beyond 100 MB?

    --
    now we need to go OSS in diesel cars
    1. Re:I'm still waiting for ... by The+MESMERIC · · Score: 1
    2. Re:I'm still waiting for ... by Skapare · · Score: 1

      Let's hope it works now. Last time I tried Amaya, it was just majorly broken in everywhichway. I was told then, and as recently as a year ago, that it is a reference browser, not a production browser. But things can change, so I will download it and give it a try, again.

      Last time I asked for a non-obese browser in lieu of Mozilla, I was pointed to Firebird, which became Firefox. Sadly, it was still the entire web portion of Mozilla. I do use it, but even I can see it uses a lot of memory (80 MB just to get started, and eventually 300 to 400 MB as it gets used for a week). People with smaller machines than mine will have a bad experience (mine is not all that great).

      --
      now we need to go OSS in diesel cars
    3. Re:I'm still waiting for ... by Anonymous Coward · · Score: 0

      Safari.

    4. Re:I'm still waiting for ... by The+MESMERIC · · Score: 1

      http://www.dillo.org/ = the lightest you can get

      but no javascript/css/ssl

      it is incredibly fast and tiny
      runs even on a pda's

      good for testing a website for accessibility

    5. Re:I'm still waiting for ... by Skapare · · Score: 1

      CSS is getting to be a must-have. I can live without Javascript (I do now, I leave it disabled, as well as Java and Flash). SSL may be needed, too (and it's not that much memory to add it). What's needed is one that satisfies the "web standards" fanatics (except for the ones that insist on Javascript).

      --
      now we need to go OSS in diesel cars
  45. try using a screen reader. by Run4yourlives · · Score: 1

    Then let us know.

  46. Standards tongue in cheek... by Anonymous Coward · · Score: 0

    I'm assuming that the missing out of the closing italic tag was deliberate?

    The only damn story on web standards for a long time and lo and behold, in the exact same article, they leave a tag open giving the rest of the page - minus the headings - a noticable slant to the right.

    Can we have the next web standards story in bold please?

  47. In some ways XHTML/CSS is a step backwards by Anonymous Coward · · Score: 0

    One reason more people don't use XHTML and CSS is that it is a pain in the ass. There is no decent alternative to good, old , and
    trying to arrange everything on the page in a certain way with floats is much harder than just using a table. A well-designed language makes it easy to do the things that people commonly want to do. As long as XHTML/CSS remains deficient in this way it will not be widely adopted.

    If we ever do reach the point where browsers cease supporting old tags, someone will write a program to autoconvert pages to the new format. By then we may have a better alternative to XHTML/CSS.

  48. Re:They'll get my bold tag... by the_2nd_coming · · Score: 1

    because plain XHTML is just as good.

    --



    I am the Alpha and the Omega-3
  49. is anyone moving to xhtml? by yagu · · Score: 2, Funny

    Just curious, after reading the fine article, then doing a little research and reading a couple chapters of the w3c documents I wonder that anyone would change to xhtml for the sake of canonical righteousness.

    Seems to me there are reasons to do xhtml... I DO like the idea of well formed objects, especially things like web pages... at least if it's well formed you've eliminated one source of nasty little bugs creeping into sites, especially sites creating pages dynamically.

    But, for sites already rolled out and wrung out in public forums this seems prissy. And problematic. Consider:

    • what would we do with sites where users can contribute their own html (hmmmm, a particular site comes to mind...)

    I've done an informal look-around, and found some popular and quite famous (hmmmm, a particular site comes to mind...

    So, academically maybe a good direction to consider, but the predictions of html going away to be supplanted by xhtml is premature, and I predict something that in our internet lifetimes will never happen.

    1. Re:is anyone moving to xhtml? by man_of_mr_e · · Score: 1

      What about all those sites out there using blink and marquee tags? Should we just shrug and say "On well, got to support them for life"? OR what about the sites that conform to the crappy and broken Netscape CSS1 support?

      At some point (and i'm not saying that point will be anytime real soon) you have to break with legacy to move forward, unless your legacy was designed to be forward compatible (xhtml 1.1 is).

      There aren't many sites still supporting gopher:// for instance. You just have to move on when better things come along, and you usually end up dragging the laggards kicking and screaming for the good of all.

      As for dynamically generated sites, those sites COULD install filters that would convert code using something like Tidy (of course they might want to do that with their existing code today... ) That's not an exacuse.

      Simply put, I don't see anything wrong with sites having to stay up to currently supported standards TO LOOK GOOD. I wouldn't mind if browsers just stripped *ALL* formatting from older versions of HTML (HTML 2 and earlier today, and HTML 3.2 in a few years). That leaves the data still there, though it may not be very readable.. i suppose some basic kind of style must be preserved.

  50. Re:That's great if your site is only visited by ge by antrik · · Score: 1

    In the long-term view, presentational HTML will (hopfully) drop off the part of the web caring for good looks, and browsers will subsequently start dropping workarounds and presentational tags that make the old sites look as intended. (Note: Most old sites will remain usable; only the looks will detoriate over time...)

    --
    All my comments get moderated +-0, spotless.
  51. Re:That's great if your site is only visited by ge by antrik · · Score: 1

    > Designing for standards compliance is great, but a crappy website that loads on any standards compiant browser is a lot less useful than a beautiful, usable website that loads on the major brosers like Firefox, IE, Opera and Safari.

    How about designing standards-compliant pages that are beatiful and usable, and load in all major browsers plus all the simpler ones?... (Once learned how to do it, it's much easier than presentational HTML anyways.)

    --
    All my comments get moderated +-0, spotless.
  52. Re:Three words: by laffer1 · · Score: 1

    You can do the equivalent of a font tag with a span tag. You can even replace b tags with span tags using a font-weight: bold; (assuming you want the style only and not the meaning...)

    I really don't see why HTML is still used. Browsers could get smaller and faster if they could assume all websites are XHTML! Essentially browsers would be XML parsers that apply style sheets to the markup. In fact, why not just improve XSL instead of CSS.

    Point is, XHTML 1.0 is here to stay. I don't expect most people to adopt XHTML 1.1 or newer CSS versions anytime soon. For one, we have to wait on Microsoft. Where do we want to go today? Standards!!!!!!

  53. Re:Three words: by ptlis · · Score: 1

    Selectors like "input[type=password]:hover"? There are lots of wonderful ways we as designers could use the complex CSS selectors specified in the CSS 2.1 spec if only a certain browser made by Microsoft supported them...

    Also you can use all the goodness of CSS1, 2.1 and 3 with HTML 4.01 so there's still no need for you to switch to XHTML :)

    --
    There's mischief and malarkies but no queers or yids or darkies within this bastard's carnival, this vicious cabaret.
  54. eXtinguish the web - eXtinguisH The Web. by Anonymous Coward · · Score: 1, Funny

    Can't have "ordinary people" text editing a web page. Not enough money in that! What's next "ordinary people" sharing information! Do away with the three tags - html head body - at once. Replace them with 500 pages of *must read this* before you do anything. Yeah that's the ticket. More profit for all us friendly computer companies. Get rid of text files, text readers and simple editors while we are at it. Too damn simple and easy to figure out. A browser should be a full 3D, animated resolution and color depth independent publishing engine. That'll stop those peons from communicating! Corporate profits are on the way back baby!

    1. Re:eXtinguish the web - eXtinguisH The Web. by sharok · · Score: 1

      Yeah, and lets forbid once and for all any standard that cannot be totally own3d by a 13-year-old in less than an hour, or that cannot support all our popunder/virus installing/zombie making applets.
      Spreading viruses and botnets is a REQUIREMENT for the future - no room for lamers.

  55. Overview of Browser-Compliance by Anonymous Coward · · Score: 0

    A good overview about W3C-compliance of IE6, Firefox and Opera 8:
    http://nanobox.chipx86.com/browser_support.php

    Personally, I am sick of IE6 sucking big times and just develope W3C compliant HTML. No sweat in Opera and Firefox. For Internet Explorer, I just enable Dean Edwards IE7 enhancement. Yes, the website does get dependent on Javascript for IE, but it does cut enormously on my developement time, as I am not forced to use the minimal CSS1 support IE has as common denominator.

  56. what is sufficient? Is html sufficient? by falconwolf · · Score: 2, Informative

    Personally I think HTML is beautifully simple. My own site uses vanilla grade HTML,a little JavaScript and some basic CSS. That is sufficient. I'm not running an online storefront or something. I have shown extremely computer illiterate people to write their own HTML pages - and one is running 4 busineses from his own website now for 7 years, with no more handholding from me.

    All this PHP, ASP, Today's 3-letter buzzword is mostly HYPE, so "web developers" can stay aloof and whine for more $$ every budget cycle. We need faster, bigger servers to cough up all this bloat, newer browsers to sift through all this crap and spew it up to the user's screen in some useable form. Many of these pages render badly, wrong, or not at all. Countless ones refuse to print or print so f*-ed up it makes the information they offer completely useless.

    I don't know about you but I know, er used to know, quite a few people who have have some sort of handicap or disability, I have a big one myself, and using "vanilla grade HTML,a little JavaScript and some basic CSS" without a lot of spagetti code just doesn't work. Now I'm not saying all these acronyms make things neccessarily easier and more usable but used properly they can.

    Falcon Falcon
  57. Server side processing by bigsmoke · · Score: 1

    Although many tools like xsltproc can, in fact, handle good ol' broken HTML, using XHTML makes server side processing easier. I've built a light-weight CMS a few times by simply having a bunch of simple XHTML files which are processed into more fancy XHTML by some XSLT stylesheets that are invoked through make/xsltproc. These stylesheets can read some metadata from a sitemap.xml file and then it's just a matter of publishing the fancy XHTML (with ever-changing cruft like logo's and complex menu structures) using weex.

    Also, mixing namespaces can be a very powerfull tool within a CMS. After all, most published websites of more than 5 pages are the result of a process that is more often than not quite complex. Everything that makes complex processing easier, is a win to me.

    --
    Morality is usually taught by the immoral.
  58. HTML or XHTML? by Phantasmo · · Score: 3, Insightful

    XHTML is a good idea but have you noticed how verbose and complicated it's gotten?

    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
    <head profile="http://www.w3.org/2000/08/w3c-synd/#">

    versus:

    <html lang="en-US">
    <head>

    --

    The US Army: promoting democracy through unquestioned obedience
    1. Re:HTML or XHTML? by thomthom · · Score: 1

      It's not that big a problem really. If the program you use don't have it allready, make a XHTML document template with all the basics and you're set to go.

    2. Re:HTML or XHTML? by WWWWolf · · Score: 1

      Yeah, but Saint Stallman, in his infinite wisdom, gave us M-w and C-y, and even among Lord Gates' army Ctrl+c and Ctrl+v are popular...

      ...and nowadays, we're going increasingly toward dynamic page generation and template use where XML verbosity isn't really an issue.

    3. Re:HTML or XHTML? by Anonymous Coward · · Score: 0

      XHTML is a good idea but have you noticed how verbose and complicated it's gotten?

      I've noticed how contrived some examples are that are crafted to show XHTML in a bad light. Let's take this line by line:

      <?xml version="1.0" encoding="utf-8"?>

      This is entirely unnecessary. When the version is 1.0 and the encoding is utf-8 or utf-16, you can omit this line.

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ">

      You actually need the doctype line when you use HTML as well, which you neglected to include in your HTML example.

      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">

      The namespace is unnecessary and the lang attribute is only for backwards compatibility. You obviously don't need the backwards compatibility, since you wanted to include the XML prolog above, which you can't do for text/html documents.

      <head profile="http://www.w3.org/2000/08/w3c-synd/#">

      The profile attribute value is orthogonal to HTML vs XHTML - if you need it in XHTML, you need it in HTML.

      So basically, for the example you gave, there's exactly no difference whatsoever when you aren't purposefully trying to make XHTML look bad.

      Don't get me wrong, there are instances where XHTML is more trouble than its worth, and HTML can give you a few shortcuts, but your example is clearly intended to mislead. Quit it.

    4. Re:HTML or XHTML? by Anonymous Coward · · Score: 0

      And those of us who use a real editor can always y#y and p ;)

  59. Separating Content from Presentation? CSS? by RonBurk · · Score: 1
    I can never quite grasp the argument that CSS is good because it helps separate content from presentation. Every CSS-enabled web page I look at has all kinds of non-content crud in the page.

    Me, I write in XML. Any kind of XML I want. Any XML structure that best fits the type of document I'm working on. I've got XSLT to transform it into {really old HTML; HTML 4.0 strict; XHTML + CSS; whatever the boss wants tomorrow}.

    Does adding that XSLT translation layer have to cost a lot? C'mon, we're programmers -- it really doesn't have to be a big deal unless it has to. For example, if you've got basically static pages, then you can just use make to automatically regenerate the .html page when its .xml source changes.

    If you think you're separating content from presentation via CSS, you should try your hand at Plain Old XML for content, with XSLT to insulate you utterly/completely/totally from the presentation. (OK, I confess: tables still tend to be tables, and I have no shame about naming my tags table/tr/td when the custom equivalent really introduces no particular new semantic value.)

  60. HTML obsolete . . . Prolly not by dweebzilla · · Score: 1

    So long as hoes like me design and make dynamic sites to sell huge volumes of useless crap to the hordes of computer illiterate people with a disposable income, web sites will need to display information and data using the lowest common denominator.


    --See Dick and Jane run

    --
    Get your tagline off my lawn.
    1. Re:HTML obsolete . . . Prolly not by Optic7 · · Score: 1

      Link(s) please... just curious to see what you are talking about.

  61. Re:What's the need? by thomthom · · Score: 1

    Yes, and XHTML doesn't have quirksmode either, so there is one less thing to worry about.

  62. Re:Blink tag still works in Firefox. Code inside. by Anonymous Coward · · Score: 0

    Unclosed head, unclosed body, and the blink tag.

    Firefox shouldn't render that - it should just spontaneously combust =/

  63. Re:They'll get my bold tag... by mibus · · Score: 1

    "Browser support" equates to this default CSS:

    b {
    font-weight: bold;
    }

    I think <b> is safe! :-)

  64. You are a moron and your site is crap. by Sebhelyesfarku · · Score: 0

    You cretin.

  65. You fuckin' asshole by Sebhelyesfarku · · Score: 0

    You are too retarded to understand this stuff.

    1. Re:You fuckin' asshole by Anonymous Coward · · Score: 0

      Heh, you sure pissed off the wrong person.

      Your zonealarm was pretty easy to circumnavigate and now I've hidden some files on your computer which will hopefully put you in jail. Luckily for you, I've contacted your local ISP and asked them to report you to the police for the files you have.

      Good luck with the future investigation and try to be more tactful in prison. Cons won't put up with your anonymous smacktalk. Good luck :)

  66. AND THE FREAKIN POINT IS? by gbulmash · · Score: 0, Troll
    If standards compliant code doesn't work with the browser that is the de facto standard, that doesn't say much about the standards?

    Screw pie-in-the-sky, ivory tower pedagoguery. "The way it should be done" and "the way it gets done in the least amount of time with acceptable results" are rarely the same. You want standards people will follow? Bring those two positions much closer together.

    I peek at these books and agonize whether I should invest the hours in them to learn all the standards and back-implement them on old pages or use them in new ones... for about 15 minutes. Where style sheets make things easier for me (text formatting), I'm all over them. But where they don't... F 'em.

    When all the browser makers distribute viruses that disable all their old browsers and force people to upgrade to fully standards-compliant ones, I'll consider going 100% compliant. Until then, I'll do what makes life simplest for me while keeping my pages accessible to 95%+ of the market.

  67. Re:They'll get my bold tag... by 200_success · · Score: 1

    Don't use the <b> tag; use <strong> instead. The difference is that <strong> puts emphasis on the meaning rather than the display. But for all practical purposes they'll be rendered the same in all browsers.

    That wasn't so hard, was it now?

  68. Nitpick... by Anonymous Coward · · Score: 0

    You're really not supposed to use presentational class names, though, (in this case, .blinktag). That was the whole point of depreciating presentational HTML in the first place. Class names should really be based on sematics of the document structure.

  69. CSS is Awesome! by Anonymous Coward · · Score: 0

    I can't wait for someone to make a standard out of it!

  70. I can't find ONE relevant comment! by zzleeper · · Score: 2, Interesting

    First of all, this is not a troll. I read the review and thought about buying the book, so i surfed at +4 trying to find more reviews of the book, or even better, comments like "wait, this book is better, bla bla". But I only found trolls about why XHTML or XML or HTML4.01 or whatever is the *best* solution, and some useless posts about why PHP is better than ASP. Then i surfed at -1, and read all the freaking comments! And I CANT FIND ANYTHING RELATED TO THE REVIEW!!! All the wasted time.. all the offtopic flamebait etc etc I had to read. So, can SOMEONE please write a useful comment? Is this book actually good? Are there better books out there for teaching good XHTML+CSS2 to someone that has some experience on html?

    1. Re:I can't find ONE relevant comment! by melalouise · · Score: 1

      I can't pass comment on the book reviewed above but I've just finished reading The Zen of CSS Design (from the makers of http://www.csszengarden.com/). It's actually an excellent guide to CSS - aimed at the intermediate to advanced web designers / developers who know CSS and HTML basics.

      If you don't know about the csszengarden then you should take a look - it's an invitation for web designers to come up with new designs for the site changing only the CSS. The HTML has no presentation markup whatsoever and only the hooks (quite a few divs) to make it flexible for the designers. The best ones (hundreds!) are linked from the site.

      In the book the authors have chosen 36 of the best csszengarden designs and one by one they explore examples of a particular topic: how it's done, browser compliance, how it's implemented in CSS3 etc. It also covers DOCTYPEs and document encoding.

      Yes, the designs are all by web designers, and they are real eye candy but it really is a demonstration of how powerful CSS is and what can be done with a little bit of imagination. None of the designs would choke in the majority of browsers and some had little bonuses for those browsers that supported it (as in W3C compliance - not browser-specific tricks). It also has many links to fantastic resources and techniques and also a crib sheet.

      This book has changed the whole way I think about web design (it's part of my job) and I recommend it to anyone who writes HTML/XHTML.

  71. Re:They'll get my bold tag... by Anonymous Coward · · Score: 0

    Because it's "primative" (sp) ??

  72. Not yet... by StandardsSchmandards · · Score: 1

    That is when screen readers start making use of the semantic information in the "strong" element. Right now a lot of the semantic markup is wasted. But, you have designed your web site for the future.

  73. What about doctype? by pjrc · · Score: 1
    People are obviously trying to tell us something - plain HTML has to go!
    (and here's the best part...)

    Newer, more compliant browsers, will in time not support the older tags and code

    If this comes to pass in the next 10 years, I'm probably not the only one who's going to be really upset.

    Only recently, I added the DOCTYPE definition to all my nearly 400 web pages. It looks like this:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    Many of these pages were written years ago, some as far back as 10 years. HTML was simple, and as long as you didn't make excessive use of the netscape only tags (like tables), everything was fine.

    Somewhere along the way, it was announced all pages should begin with a

    <html>
    tag. This was supposed to make things extensible, somehow.

    They changed their minds. Now its DOCTYPE. Ok, fine. I modified hundreds of pages and ran they all through a script to validate them all... and fixed lots of minor little things.

    But damnit, this whole DOCTYPE definition and html validation is for some reason. And in my world view, it's so that I can know my markup fully conforms to the standards and not browser specific features or bugs. Why bother? Sure, being platform neutral is nice. But the real benefit to an author like me is so that I know the pages will continue to work with little or no maintainence into the distant future. Well, html-wise. Content updates are another matter.

    If HTML 4.01 transitional stops being supported by browsers in the next 10 years, and especially if the standards-pushing folks have anything to do with it's accelerated obsolescence.... aside from cursing and swearing, it'll utterly destroy and trust and confidence I may have in the standards process.

    So that's basically my little rant. If standards are going to mean anything, and we've all (or mostly) gone to the trouble to put these damn DOCTYPE specs on every single page supposedly so different standards can co-exist... anyone pushing some "new" standard who wants my buy-in better not do anything to diminish the value of all the time and work I've invested in previously published standards.

    It's a matter of trust and confidence. Why would I trust in the stability of w3c new standards if support for html 4.01 away?

    1. Re:What about doctype? by lieven_dekeyser · · Score: 1

      Browsers will probably maintain backwards compatibility in quirks mode, so I don't think there's a need for people with old html 3.2 style ( /. ? ) code to update them. But when you write new pages, it's a good idea to make them with the latest standards. XHTML fixes a lot of ambiguity that was left in HTML. XHTML 1.0 strict is a clean way to keep away from the layout-in-markup trap..

      The reason why it's so frustrating to write pages that look pretty much the same on all browsers is the lack of standards-support from both browser vendors (IE) and webpage designers ("hey, if it's watchable in IE, why should I care about standards?")

  74. echoing the sentiment... by arothmanmusic · · Score: 1

    As long as IE/Windows is the dominant browser and chooses to ignore the standards, the standards are irrelevant. If I can design a page that is totally out of standards compliance which looks great to 80% of the people online and funny but functional to the other 20%, I'm ignoring the standards.

    1. Re:echoing the sentiment... by zpok · · Score: 1

      Do your clients share your sentiments? Or the clients of your clients?

      --
      I think, therefore I am...I think.
  75. Re:Three words: by Anonymous Coward · · Score: 0

    I just wish I could use li:first-child:before (using both pseudo-class and pseudo-element) instead of having to use an annoying hack (like giving an explicit class or id to first child list items)

  76. Agreed this is so much hype by Anonymous Coward · · Score: 0

    No one is saying XML doesnt have a future, but the honest truth is that html is at the heart of most pages be doled out in companies across the globe large and small. Its proven it works. XML in its current form is a bit like java. A bit overhyped and more complex for its own good.

  77. hehe by Anonymous Coward · · Score: 0

    Not that web desing and slashdot should go together. The push for XHTML isnt about web design or nice commercial looking layout, its more about programming standards since html is so forgiving. Its a display languiage chill. Forcing XHTML actually degrades the concept of web design. Tables are still king for precise layout. I've run across too many hardcore sites using all CSS, layers etc for layout, and you folks have no idea how many times users view your pages with overlapped edges, etc.

  78. pffft by rebug · · Score: 1

    HTML is so non-semantic anyway, it really doesn't matter. Bring on the age of custom schema!

    --

    there's more than one way to do me.
  79. Don't look for this at M.S. by sycodon · · Score: 1

    One thing is for sure. If the subject is standards, then you won't find this book on anyone's desk at M.S.

    --
    When Fascism comes to America, it will call itself Anti-Fascism, and tell you to give up your guns.
  80. There is a lot to that Grease. by Anonymous Coward · · Score: 0

    "It is stupid to re-create, on the fly, essentially identical information that probably won't look right on many browsers anyway. It would make more sense to put that time and effort into getting the page to work well than in getting it to use the latest technology."

    According to the Greasemonkey story, we can let you all fiddle things into place.

  81. re-generation race conditions are for idiots by Anonymous Coward · · Score: 0

    always serve BAH.html
    always re-generate NEW.html
    when done regenerating,
    rename NEW.html to BAH.html,
    it's an atomic operation,
    there is no race condition

  82. Hehehe-Try DENIM. by Anonymous Coward · · Score: 1, Informative

    http://dub.washington.edu/denim/

    "DENIM is a system that helps web site designers in the early stages of design. DENIM supports sketching input, allows design at different refinement levels, and unifies the levels through zooming."

  83. What I want to know is by hotdiggitydawg · · Score: 0

    ...when someone's finally going to implement the tag.

  84. HTML4 + CSS by zpok · · Score: 2, Interesting

    I don't see what XHTML offers me that HTML4+CSS doesn't. I've been "separating code from content" from the day I could dismiss the font tag, I don't see what XHTML offers to a non-programmer (I don't think using markup==programming and I know I'm not good at anything that requires more thinking than that...).

    --
    I think, therefore I am...I think.
    1. Re:HTML4 + CSS by lieven_dekeyser · · Score: 1

      if you write your html4 the way an xhtml writer would write it (i.e. close your tags, write tag names lowercase, enclose attribute values between quotes,..), there's not much advantage, but then again, you could just put the xhtml doctype in front of it, and it will probably validate.

      The big advantage of sticking to these extra guidelines that xhtml defines is that there's only one possible interpretation of your markup, so it makes it more difficult for browsers to find excuses for interpreting things differently.

    2. Re:HTML4 + CSS by zpok · · Score: 1

      Um, I don't close all tags, I will look into that. And while I still don't see the huge advantages touted elsewhere, when you put it like that, I have to admit I don't see any disadvantages either.

      Right now I must say I have a hard time getting the layouts I want without using the dreaded table tag. And books that put style at the end of the list of requirements usually don't help much. I guess that's an easy enough attitude if you don't work for actual clients that cater for the masses. Style (if not pushed over substance) does matter...

      But as an aside I'd like to stress I'm totally allergic to sites that only look and function right in "browser X" or with "plugin Y". Every time someone suggests it's alright to piss off a portion of their target audience because of supposedly technical reasons or inadequate statistics, or the misconception "Internet equals TV" I get a rash... Even the most stupid website is about communication, and you don't start a conversation by talking swahili to swedes...

      --
      I think, therefore I am...I think.
    3. Re:HTML4 + CSS by lieven_dekeyser · · Score: 1

      using xhtml or not has nothing to do with using the table tag or not. You can use tables in xhtml just as you would in html. It's the strict variants of both markup languages that encourage you to use more semantically correct code.

      Using CSS for layouting can be a bit scary at first, especially a few years ago when browsers interpreted things in some wild fashions, but nowadays, the only one that needs a lot of fixing is Internet Explorer.. If you stick to the basics, it shouldn't have too much problems though...

      One tip is to use XHTML or HTML Strict when writing your pages. This will put most browsers in a special mode that tries to be as standards compliant as possible.. The transitional variants make the browsers go in "quirks mode" which means that they'll behave like old and unpredictable browers...

  85. Writing apps in HTML is wrong. A better way exists by master_p · · Score: 1

    Instead of writing programs embedded into HTML, we should use libraries that wrap HTML inside them. Therefore, any changes in the HTML standard would mostly concern the lower layers of the architecture.

    Consider JSP applications, for example. The Java code is embedded into the JSP script along with HTML that is compiled by the JSP server into a Java class. This approach is wrong, for many reasons:

    1. It forces the programmer to learn 100s of tags, each one a little different from the rest.
    2. Programming capabilities are restricted by the available tag libraries.
    3. The Model-View-Controller pattern is not followed (and can not be followed), since the view and the model are the same.
    4. Tag library management is needed.
    5. There is no clear separation of display and content.

    A much better way to do web development would be to have a web GUI library that, instead of generating widgets, it generates HTML. For example, A Swing-like set of components that follow the model-view-controller pattern. When a form is submitted, the framework automatically updates the GUI objects, which in turn automatically fill the model, and thus other views and controllers are notified.

    The above architecture also allows for one person to design the page (the designer), then another person to fill the page with data (the programmer), without each person knowning anything of the other's line of work: the designer designs each page, then each page is compiled to Java GUI component classes, then the programmer comes in and connects the view with the model (for example, Hibernate).

    The above is pretty much valid for ASP, PHP and other architectures.

    Web applications are just like any other application, with the only difference that the GUI is passive and handled from a remote source. HTML is a remote GUI description language, and it should be wrapped up in native language constructs.

  86. Backwards Compatibility of a "standard" by DutchUncle · · Score: 1

    >>Newer, more compliant browsers, will in time not support the older tags and code

    HTML is still a clearly-defined standard. Lots of manuals are on old install CDs; lots of pages, documentation, and other information is archived on CDs in everyone's drawers and shelves. HTML can't just be dropped like it never mattered.

    I am repeatedly disturbed by the attitude that backward compatibility is unimportant, or useless, or wasteful. Much of our technical civilization is built with the assumption that things continue to work, and we expect them to work even after long periods - how many people actually checked their air conditioners this spring before just turning them on?

    Would anyone accept a statement like "My new calculator program won't work on checking your statements from three years ago, because those are old numbers"? Or "You can't speak Latin, Greek, or Hebrew on this new cellphone, because those are ancient languages"? Isn't that the kind of complaint Slashdotters always make about M$ office programs changing document and spreadsheet formats?

    New versions of computer languages should compile old programs. New browsers should display old documents. Old stuff may run (or be processed) less efficiently, but it should do what it used to do.

  87. the best bet by oliderid · · Score: 1
    Try to play around with CSS only tabled structure...Then do the same work with good old table and TD tags and hspace=0 vspace=0 for img border=0 cellspacing=0 cellpadding=0.

    It will take me half of the time plus I won't have to care about compatibility. I know it will work in any browser.

    I use right now CSS with tables. ID and class stuff in the CSS and only 4 years old CSS tag. Maybe that's called HTML 4.01 transitionnal. I don't care as long as I can guarantee to the client that it will look the same in any browser on the markets.

    I still cannot understand what is so wrong with
    tags. Why should I write
    ?

    doesn't give you the same flexibility. Everybody knows that.

    Even for stupid things like

    when you play with CSS only, the dot of

    won't be at the same place (vertically) on Explorer, Safari or Firefox. Who cares? When your biggest clients are communication agencies stupid things like this matter to them most than the code behind. I spent an entire hour trying to fix that damn detail.

    Then you have to define different stylesheets for each browser. You know it will be a pain to maintain even if your are using a CMS like typo3.

    It sounds like the same pain we had to support Netscape and Internet Explorer.

    If you don't want to have a junior marketeer complaining about details all the day because he has an outdated explorer on his even older desktop PC, then you use the most simple and bullet-proof tool you have in your pocket.

    Interportability? They simply have to grab the content from the database, filter some basic HTML tags if there is any and that's all.

    Call me a dinosaur I don't care. I will finish my job before the XHTML fanatic. I won't have to explain what this kaballistic code mean to a marketeer, why it doesn't work and I will have more time to play with my kids.

    W3C folks don't live in the real world.

    I would prefer seeing them promoting PNG compatibility than new HTML formats. PNG is needed, a new HTML format isn't.

    Or what about plug-ins. A large part of the content over the web is handled by propriarty format such as WMV, FLASH and so on. When you have to publish video clips, you have to handle at least three different formats to guarantee that 80% of surfers will be able to see it. Even scarier some Real player or Quicktime aren't properly installed on some PC or will pop-up advertisings(quicktime and its paid version, Real and its own network).

    The HTML war is over. The new war is in the multimedia. Olivier

    1. Re:the best bet by tilk · · Score: 1

      Try to play around with CSS only tabled structure...Then do the same work with good old table and TD tags and hspace=0 vspace=0 for img border=0 cellspacing=0 cellpadding=0.

      It will take me half of the time plus I won't have to care about compatibility. I know it will work in any browser.

      How do you know that? I've seen LOTS of pages built that way that are seriously broken in non-IE browsers.

      Anyway. CSS layout shouldn't be any harder than table layout. There IS something called display: table in CSS, which even allows to build table layouts USING CSS. Why isn't it used? Because IE doesn't support it.

      CSS isn't broken. IE is.
    2. Re:the best bet by oliderid · · Score: 1

      How do you know that? I've seen LOTS of pages built that way that are seriously broken in non-IE browsers. Because I work as a pro web developer since 1997. I understood something quite simple during the browser war: - Make a list of tags (styles properties if you prefer) that work in most (if not all) browsers. - Keep in mind what kind of table architecture works and don't. Update these lists once a year. Check your new tags, etc. on every browser. These are your tools to build a web page. Never used anything that isn't fully supported by the vast majority of browser. Because: - Some customer may check your work on irrelevant browser (such as the infamous internet Explorer 5.2 on MacosX). Ever tried to explain to a customer why his US$ 10.000 or US$20.000 web site is so messy? Curently defining the location of any content by CSS only, isn't part of this list. Then you can try to make your life easier and you coding more efficient with these rules in mind. CSS isn't broken. IE is. You are right except: I'm not paid to make W3C compliant web page. I'm paid to make web sites viewable by the biggest % of surfers possible with the best user experience possible. Nobody cares about the technology behind except web designer/ web developer. Olivier

  88. HTML is worth more than all these "standards" by musicmaster · · Score: 1

    In designing programming languages two things are key: simplicity and power. HTML lives up to that standard. A total amateur can within a day make quite nice pages.

    Unfortunately all those modern standards do not live up to those basic requirements. They are much to complicated. Just make a basic page with some XHTML, CSS and javascript and you have three different incompatible languages. The standards world would need a dictator to finally force a harmonisation between those three.

    Or take the DIV. This is an incomprehensible abstraction that is impossible to explain to the simple homepage hacker. There is a much more comprehensible alternative: the TABLE. But the language purists dislike it so much that they didn't even bother to make the two compatible.

    The modern standards remind me of object oriented programming. It took may years of hype before you could expose its limitations without being ridiculed.

  89. I bet his pages look and surf like shit by elrous0 · · Score: 1
    But they're all XHTML compliant!

    -Eric

    --
    SJW: Someone who has run out of real oppression, and has to fake it.
  90. The sad part is... by AutopsyReport · · Score: 0
    These days I see more focus on making HTML compliant (and letting you know that your website is crap if it doesn't comply) than promoting standards for actual programming languages.



    It's sad, but true at least from my experience.

    --

    For he today that sheds his blood with me shall be my brother.

  91. Smoking crack? by Just+Some+Guy · · Score: 1
    Look around the web, and see all the complicated PHP scripts and ASP pages serving as frontends to database of choice, to serve up what's essentially static information.

    Plain HTML is quite often the most efficient solution, to produce, host and maintain.

    Am I the only one so far who noticed that those two paragraphs have absolutely nothing in common? You can write dynamic HTML or static XHTML+CSS - the underlying technology has exactly zero to do with the resulting page description.

    You might as well claim to hate PDFs because some are made on PowerPCs but Jeeps are more purple.

    --
    Dewey, what part of this looks like authorities should be involved?
  92. Sounds good in theory; but in practice, no thanks. by jafuser · · Score: 1
    I like this part in the first "CSS Technique" they list:

    #centercontent {
    background:#fff;
    margin-left: 199px;
    margin-right:199px;
    border:1px solid #000; /*
    IE5x PC mis-implements the box model. Because of that we sometimes have
    to perform a little CSS trickery to get pixel-perfect display across browsers.
    The following bit of code was proposed by Tantek Celik, and it preys upon a CSS
    parsing bug in IE5x PC that will prematurly close a style rule when it runs
    into the string "\"}\"". After that string appears in a rule, then, we can override
    previously set attribute values and only browsers without the parse bug will
    recognize the new values. So any of the name-value pairs above this comment
    that we need to override for browsers with correct box-model implementations
    will be listed below.

    We use the voice-family property because it is likely to be used very infrequently,
    and where it is used it will be set on the body tag. So the second voice-family value
    of "inherit" will override our bogus "\"}\"" value and allow the proper value to
    cascade down from the body tag.

    The style rule immediately following this rule offers another chance for CSS2
    aware browsers to pick up the values meant for correct box-model implementations.
    It uses a CSS2 selector that will be ignored by IE5x PC.

    Read more at http://www.glish.com/css/hacks.asp
    */

    voice-family: "\"}\"";
    voice-family: inherit;
    margin-left: 201px;
    margin-right:201px;
    }

    If the solution to a simple but inelegant system (plain old HTML tables) is to switch to a more complex, ugly, inelegant system (CSS kludges that exploit parser bugs), I think I'll stick to the simpler, more practical system for now, thanks.
    --
    Please consider making an automatic monthly recurring donation to the EFF
  93. Add lint/verification tags to your page footers by freality · · Score: 1

    I include page lint/verifcation tags (instead of just links to the specs) in my standard page footer across a number of sites I run. This lets me easily check to see if my XHTML and CSS2 is compliant as I browse along. Which isn't to say my pages are perfect, but that I consider it an important and complimentary part of a web browsing experience.

    We shouldn't just build a web to be used, but one to be extended... that means show others how we do it so they can join in.

  94. Um... by Run4yourlives · · Score: 1
    1. Re:Um... by LordLucless · · Score: 1

      I fail to see how:

      <div id="outer">
      <div id="middle">
      <div id="inner">
      any text
      any height
      any content, for example generated from DB
      everything is vertically centered
      </div>
      </div>
      </div>

      <style type="text/css">
      #outer {height: 400px; overflow: hidden; position: relative;}
      #outer[id] {display: table; position: static;}

      #middle {position: absolute; top: 50%;} /* for explorer only*/
      #middle[id] {display: table-cell; vertical-align: middle; position: static;}

      #inner {position: relative; top: -50%} /* for explorer only */ /* optional: #inner[id] {position: static;} */
      </style>

      beats:

      <table>
      <tr>
      <td class="center">
      This is centered
      </td>
      </tr>
      </table> .class { veritcal-align: center; }

      for maintanability and simplicity. Avoiding tables makes more work in some cases. Note that your example only works for fixed-height elements. Also note that it doesn't work for IE Mac.

      --
      Just because you're paranoid doesn't mean there isn't an invisible demon about to eat your face
  95. well. by Run4yourlives · · Score: 1

    1. IE mac is a joke, if MS doesn't feel the need to support it, I certainly don't.

    2. The HTML in the CSS result remains the same should you redesign the site at a future date, the HTML in the table result will change. This matters if a) you have a large site and/or b) you use a CMS to spit out HTML.

    1. Re:well. by LordLucless · · Score: 1

      1) Wonderful, if you're writing for yourself. I'm not, and depending on who I'm writing for, a considerable proportion of the audience, and maybe the client themselves, uses Mac IE. Try explaining to a very untech-savvy Mac user why the website your charging $4,000 for doesn't render correctly in their browser.

      2) Eh? How's that? You have your content inside a div. I have mine inside a td. Because my td is styled using CSS, I can alter it's appearance through CSS, without touching the HTML. Put any style you like on your divs, I can replicate it on my td without changing the structureof the HTML.

      --
      Just because you're paranoid doesn't mean there isn't an invisible demon about to eat your face
  96. This fellow's name by jdpurdyvi · · Score: 1

    Did anyone else notice that we have this guy's name wrong? It's Craig. Not Graig.

  97. you're not understanding. by Run4yourlives · · Score: 1

    I div is a logical structure, it doesn't have a known display. ie, it can be placed anywhere on the page, and anywhere in relation to other divs.

    I could float that div and put it in the top right of the page.

    A td is by defintion a table cell (tabular data), which has an implied structure. Breaking that structure to present a table as something not like a table is the wrong thing to do, especially since you're so concerned about browser compatability.

    Try using a screen reader on you websites and then come back to me.

    1. Re:you're not understanding. by LordLucless · · Score: 1

      I can float a table to the right of the page, I can whack on a position absolute and stick it wherever I want.

      You're right about divs and tables having different logical meanings; but the reality is, pretty much no browser pays any attention at all to the logical meaning of the tags. And I know more people who use Mac IE than who use screen readers. Hell, I know more people who use lynx on a regular basis than who use screen readers.

      Your method is much better in theory. But in practical reality, nobodys going to use it until it's fixed. There's no logical reason why vertical-align should render only on table cells. Fix these, and other odd discrepancies, wait a few years for major browser compatibility, and your method will be not only a better method, but a viable one too. But for now - tables it is.

      --
      Just because you're paranoid doesn't mean there isn't an invisible demon about to eat your face
    2. Re:you're not understanding. by Run4yourlives · · Score: 1

      here, try this:

      http://www.snook.ca/archives/000177.html

      also note that this site is css based as well.

    3. Re:you're not understanding. by LordLucless · · Score: 1

      Guess what: not compatible with IE.

      --
      Just because you're paranoid doesn't mean there isn't an invisible demon about to eat your face
  98. Standards good, despite apparent complexity by NulDevice · · Score: 1

    Every time XHTML/CSS comes up in a forum like this, there's a lot of railing about how it just complicates thing when HTML does the job just fine.

    Well, see, that's just it. HTML doesn't so much do the job just fine. Yes, XHTML and CSS is a bit more complex than basic HTML, but it's not that bad and a good editor makes short work of remembering the syntax. HTML can make a web page very easily. But it can't make a *good* web page easily. The number of hoops one has to jump through to make an old-style HTML page degrade gracefully into accessible browsers, or even look roughly similar between browsers - has led to pages filled with the single-pixel-gif-trick and tables-nested-within-tables -- you get pages where the majority of the markup and even some of the page content has nothing to do with what the page is actually about.

    XHTML is a good thing in the same way that strongly-typed languages are - if you don't keep track of everything correctly, it's not going to work at all. Your tags have to make sense - and if they do, you're no longer relying on the hope that whoever wrote the browser took your specifc exception into account. Heck, just adding the XHTML doctype convinces IE6 to play nice with a lot of standards it previously ignored, which is in itself a small triumph

    Good-old HTML isn't going away, so those of you decrying the death of the democratic internet can stop worrying. Where XHTML/CSS is really handy isn't for the guy making a Buffy Fansite, it's for the organizations that need to create and maintain complex or wide-impacting web presences, or for the people developing web-based applications. XHTML helps make short work of accesibility issues, it leads to smaller pages (esp since stylesheets cache) so bandwidth is conserved, it abstracts the presentation layer (allowing designers to design and programmers to program without each getting in the other's way - a huge problem with a lot of web applications), the code is pretty easy to read (if you do it right, XHTML content makes logical structural sense and isn't cluttered with tags to move that paragraph to the left 25 pixels etc). What it comes down to is more efficient maintenance and wider support, which saves anyone trying to do a large implementation a lot of time and money.

    (and really, XHTML isn't *that* hard. It's at least consistant, unlike a lot of the HTML tags bunged on after version 1...but that's a different argument)

    --

    ----
    "I used to listen to Null Device before they sold out."