Arjan Eising

Pages

Feeds

You can subscribe to my feeds to get notified when I have written a new post, using RSS or Atom.

Categories

Archives

Archive for August 2007

How Google will die

Lately I’ve been talking with Johan Stokking about several interesting things. One point was the growing the Internet bubble that is growing at the moment. The current bubble will grow larger than the previous one, and also will have more impact if it bursts.

I’m talking about all Web 2.0 companies, like Google but also several others. Those companies are interesting because they are personal. People can do things in a personalized environment, a huge difference from static web pages. One point to care about is the privacy. There is a lot of discussion around Google and that kind of thing (so I won’t go into depth about this).

But there is even a larger problem those Web 2.0 companies need to solve, if it even is solvable. I’m talking about advertisements. People hate them, even when they are personalized. All those Web 2.0 companies rely on those advertisements. Also business plans of new Web 2.0 sites include being purchased by Google (or Yahoo, etc).
The popular Firefox extension AdBlock can easily block advertisements on a web page. Several websites blocked Firefox because of that extension. Something I think it indicates the need of the web site owners to display advertisements, as well as the need of the people who browse to block the advertisements.

So, when will Google die? I don’t know. But for a company where over 99 percent of the incoming money is earned from advertisements, it is just waiting for the day people stand up and advocate their own privacy.

HTML documents without html, head and body elements

Just a few hours ago the results of the second CSS OFF competition became public. Dan Ott won this time, and as also said in the comments over there: congrats Dan! More important than winning are the results from everybody who competed. A lots of useful ideas for Front-End techniques can be found over there. A comment on my entry was made about the non-usage of the html, head and body elements.

So what’s that about? To know what I’m talking about, take a look at my entry. As you see: no html, head and body elements. If you want, you can also try to validate the document. As you may see, it passes the validation. As far as I know, the html, head and body elements shouldn’t be used, but could be used.

Now take a closer look at my document. In the stylesheet, you might see at the top of the document the body used as selector. The body element isn’t a box like a div, it is the viewport (not exactly, but it comes closer than a div). As we all know, you can set the background to the body, and even without any text it has that color for the hundred percent of the height of the browser window. And as there always is some kind of viewport, there is also always a body element in all HTML documents. I came across this at Harmen Janssens web log in this article.

Like CSS, the same thing goes for JavaScript. If you try to access the body element via document.getElementsByTagName('body')[0], it will return your ‘invisible’ body element reference.

Everything works nice, and is different from the expectation you might have. There is only one exception on this non-usage of these elements. When you markup your document as XHTML, send it with mimetype application/xhtml+xml and use the correct namespace, this all will not work. Mainly because your page is handled as and XML document, and therefor it uses the XML DOM instead of the HTML DOM.

So, now you have a lot of new information. But what do you think of the non-usage of these elements? I’d like to hear some additions and critique on this point, also because I’m not an expert on this part of serving documents.