HTML 5.0 Interesting changes

On a slow day at work I finally got time to browse through the changes in the propsed HTML 5.0 standard (Editor’s Draft 6 July 2008). The fith version of HTML will come in two flavours, standard HTML and XHTML. More or less the significant difference is that XHTML will not allow any errors in the XML-structure whereas the HTML-version will render the source as best as it can.

There are some interesting new features incoming by the looks of it, many of them seem influenced by what up until now have been solved using scripts. A quick look at the changes in elements shows us that we are handed the tools to further differenciate between layout and semantic.

Removed Elements
Almost all “legacy”1 layout elements are removed such as BASEFONT, BIG, CENTER, FONT, FRAME, FRAMESET, NOFRAMES, S, STRIKE, TT and U. Most of these are hardly used anymore anyway but I guess there are a few sites out there that will miss the FRAMES-support (allthough IFRAME is still around).  There are a few other removed elements as well; ACRONYM (which is replaced by the aptly named ABBR), APPLET (replaced by EMBED like all other embeded material), DIR (replaced by CSS or simply UL/OL), ISINDEX and XMP.

Added Elements
As previously noted the added elements often reflect semantic structures in HTML. HEADER and FOOTER are two examples, these display as their names implies header and footer information in their current context. This can be used to display chapter headings in a document and other similar information. Also new are the elements ARTICLE and ASIDE which are used to define areas of information in the current document. For example ARTICLE could refer to a single post, a blog entry, a written article or similar and has the ability to stand alone from the rest of the content. An ASIDE is used within an ARTICLE to add information related to the article but to be displayed seperately like in a column next to the main article.

NAV is a new element to mark the navigation of a site. For example “previous” and “next” link are typical navigation elements and should be enclosed in a NAV element.

There are many other new elements in HTML 5.0 but those are beyond the scope of this small review I’m afraid. Read the full HTML 5.0 document for further information.

Changed Attributes and Events
The attribute ACCESSKEY is the only one removed and this is likely due to the addition of the KBD element which replaces it’s functionallity. An interesting addition is DRAGGABLE which is a boolean value which makes an element draggable by the user, this attibute is also followed by several new event types (onDrag, onDragend, onDragenter, onDragleave, onDragover, onDragstart and onDrop). This element togheter with the attribute CONTENTEDITABLE  makes a great couple for future on-line applications.

Other new useful events added in HTML 5.0 are for example onMousewheel, onScroll and onResize which all do what they sound like.

Summary
All in all HTML 5.0 is no revolution but adds some convenient elements for more detailed semantic structures within HTML. It also takes out legacy formating elements and suggests the use of CSS to solve all the layout issues. Hopefully the drafts will soon become a new standard because of what I’ve seen so far it looks promising.

Sources:
http://www.w3.org/html/wg/html5/
http://www.w3schools.com/tags/html5.asp

Footnotes:
1. Wow, this is the first time I’ve used the word legacy in a HTML context! The only other (in)famous element I can think of that was removed is good old BLINK.

Featured picture on Wikipedia.org

Lone HouseTodays featured picture on wikipedia.org is a lone house in sunset. Now there is nothing special about the picture in itself other than that it is pretty beautifully set. What is special about it to me is that it was rendered using an open source 3D rendering software called Blender. Images like these used to be rendered by Silicon Graphics dedicated machines running programs nobody would ever have access to, at least not outside of very large companies. Now I’m not saying it’s easy now, but at least it is possible, for almost anyone to start using software to create whatever comes to mind. This can be programming, music, art or possibly just about anything else that people can think of using the computers and Internet for. This is a time of great oppertunities and I hope that everybody who has an idea can use the tools available and create something that will be in museums or history books in one hundred years.

OpenSolaris 2008.05 – interesting but not yet for me.

I downloaded and tried OpenSolaris 2008.05. I had high hopes this would be “as easy as Ubuntu” but with the stability I rememberd from my days at the University or the few Unix boxes I’ve come across during my work. I downloaded the CD to try out on a virtual VMWare machine (latest version 1.0.6).

Downloading and burning a live CD posed no problem and booting it up was as easy as any other LiveCD. A slight dissapointment was the text-interface for choosing keyboard layout and locale, even for being a text-layout which I could accept it was a very boring text-layout.

After bootup the problems began. First thing I noticed was that I had no network. Apparently the Network Auto-Magic (NWAM) wasn’t magic enough to understand my network card. After some digging on the Internet I found the reason was not the network card but rather some other drivers in VMWare that OpenSolaris had problems with. This issue will most likely be gone in a future patch of either VMWare or OpenSolaris.

The first thing that struck me, before the network errors above, was how Linux-like the installation was with Gnome as desktop manager. I of course expected it to be very similar but not to this degree. Much of the “standard” Linux software was included. I was a bit dissapointed that Gnome was the only window manager found on the system, I had hoped to see the “old” look and feel from my University days (allthough I quickly switched to Gnome at the University when that was opened up as an option on the UltraSparcs we where using).

Next I tried to install the distribution to my virtual machine, and not run it as a live CD anymore. This was a very easy procedure, just add all the information needed and then start the installation. Having asked all questions first the installation then completed on it’s own but to me it felt quite slow.

Overall the impressions was mixed. While not impressed by the “first try” I am impressed about what I’ve read about OpenSolaris. The Zetabyte File System (ZFS) available and the support for high end machines with high availability (or so they claim but they are Sun so I take their word for it!). However since it has current legal problems with full integration with the Linux world (OpenSolaris is released under the CDDL license while most of the Linux world are distributed under the currently non-compatible GPL license). I hope in future versions this operating system will bring about a stable open source platform generally available.

Firefox 3 evaluation

Firefox logoWith the release of Firefox 3 I finally made the switch on all my computers to have this as the main web browser instead of Internet Explorer that used to be standard on some of my windows machines (I have too many computers I use daily). There where several reasons I switched and I thought I’d publish them so perhaps other people could find the same benefits I saw.

First of all I have no love for Microsoft in general, while they have some good products I do not find Internet Explorer to be one of them. They seem to invest as little as possible in it and only making changes when “forced” by an outside source (take tabed browsing for example, it wasn’t included into Internet Explorer until Firefox started using it). I’d also like to point out that other web browsers like Safari and Opera might also be great but I haven’t had the time to get acquainted with them. This also only concerns desktop/laptop browsers, on my Wii and phone I use Opera!

Why did I choose Firefox as my main browser? Here is the simple list:

  • Security – this is probably the main reason. Firefox out of the box is a slightly lesser target for hackers at the moment but while that might change there are several other factors making Firefox the number one security choice and one of them is the addon NoScript. A really nifty little program that simply stops all scripts on all pages you visit. With a simple click you can activate a single domain to use scripts either always or just temporarily for your current visit. This really improves security while browsing the Internet. While some pages look terrible these days without scripting ability you can always choose to trust those that you want to visit (and remember you used to trust ALL of them). This still doesnt save you if your favourite site is targeted by a cross-site scripting attack but at least being conservative with who may run scripts on your computer makes the odds work against you being a target.
  • Speed – the rendering engine of Firefox 3 seems faster, I do not know if this is true of just a perception of mine. It may also help that I’ve installed AdBlock Plus. This is another great addon that makes you able to block all incoming adds before they are downloaded, you can either manually block different ad-vendors by domain or different filters or you can also choose to subscribe to a kind of blacklist filter. With the blacklist filter “EasyList” most of the ads are gone! Visiting ad heavy site used to be very slow but with all the flash graphics and different connections to ad servers but with the filter in place you get to download what you really came from and not all the crap the site tries to throw at you. I’ve also found this very helpfull while being out with my laptop and wanting to conserve the amount of traffic I use while browsing the web.
  • AddOns – I’ve allready mentioned two addons but still the ability to customize your browser deserves special mention as well. While the average guy might not be able to develop addons for Firefox the open interface makes it perfect for everybody wanting to add their own idea to the web browser. This is clearly a popular feature and when visiting the official addon site you can download almost anything you could think of to pimp your browser.
  • Privacy – while maybe not a reason to install the web browser at my own computers the privacy settings and features of firefox are very well to my liking, when I use a public computer I use Firefox if they have it since the ability to remove personal data is made so easy.
  • Bookmarks / History – a fresh take on bookmarks and history is made in Firefox 3. I don’t know if I’m alone in having stoped to add bookmarks for everything but the improvements really support my way of browsing. The history list is made part of the bookmarks with features to visit the latest sites (also available in most browsers with history of course) but also the most visited sites. If you choose to skip bookmarks all togheter (like I usually do) and just type the URL the dropdown that used to be only the domains is expanded with domain, icon, title and a small description of the site. This really helps casual browsing and is a nice looking feature.
  • Open Source – while not a major benefit in itself I am a strong supporter of open source and if there are two products, one open source and one proprietary software I would go for the open source alternative any day (on a private level, this might be different in a business point of view depending on the situation).

While there are major improvements in choosing Firefox there are of course also drawbacks. Most of these are minor and will probably change with time. There are a few sites that just doesnt work well in Firefox and one of them is my on-line bank which at the moment only accepts Internet Explorer. These sites are very rare though and I think most site administrators are adapting to the fact that Firefox is becoming one of the major browsers.

Firefox is no longer a browser trying to catch up with Internet Explorer, Firefox just took the lead. Now let’s see some healthy competition and more innovate features ahead in all browsers.

Jeff Bezoz talking about the Internet

I stumbled upon a great site with lots of great talks, TED Ideas Worth Spreading. I could probably watch these for hours but one of them caught my eye and that was Jeff Bezoz talk about the Internet. I think it’s a very inspirational talk he has, he compares the Internet revolution with other “similar” events in the recent human history such as the gold rush and the home electricity.

We are at the dawn of a new age, let’s figure out how it works!

Spiders

It’s amazing really… I post an entry in my tech blog and just a few minutes later no less than 9 spiders have visited my page and index whatever I have to say. Before a human eye reads what I have to say several computers have allready checked and categorized everything. It’s really mind boggling when you think about how the Internet works and how all things interact and adapt. Think if the Internet did not exsist and someone asked you to construct it… and build it. The technology is one thing but the amount of hardware world wide supporting it is certainly not cheap. We as a human race might finally have created something larger than life, let’s see if it turns out it was a good or bad move 🙂