Bad Google: Can anyone at Google write XHTML?

Apr 10th, 2008 by Alasdair | Google, Web Design

clip_image002

What is Google? Well, Google is a publicly run company that was founded in 1998. It also happens to provided almost 4 billion search results per month. It’s used by around 55% of people in the United States and is the number one search engine. Oh, and it turns over about $4billion (although that’s bound to be much more now).

So why can’t it get a simple web page right? Google.com has 50 validation errors when queried with W3C Html Validation Service. Now, I know that some of these errors are a consequence of other problems, but my argument still stands. Surely one of the 17,000 has suggested that they fix it?

What’s wrong with the biggest Internet company’s web site…

The Head

  1. No doctype – “Don’t forget to add a doctype” is the title of a page in the W3C guidelines, so why has Google forgotton? Maybe to shove the browser into Quirks Mode? Hmmm… More about quirks mode. Oh, and if your Google, here’s how to define a doctype.
  2. The style tags have no attribute type. <style></style> should be <style type=”text/css”></style> Maybe this is a doctype issue?
  3. The script tags have no attribute type <script></script> should be <script type=”text/javascript”></script>.
  4. We can let Google away with no Meta data (I suppose).
  5. A language would be nice. Let’s just presume that Google has its own made up one.

The Body

  1. The main tag is insane. <body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onload=”sf();if(document.images){new Image().src=’/images/nav_logo3.png’}” topmargin=3 marginheight=3> The old school page properties are a) old and b) pointless as there is a style element defined in the head. And there are no quotes around these, which is a parsers worst nightmare!! Some of them, like TOPMARGIN, are not even ‘real’ attributes. Blaming it all on the incorrect doctype is simply not good enough here.
  2. The JavaScript is executable, but not pretty. There is a delimiter (;) after the first function but not inside the if statement.
  3. Span tags are used for the menu system. A much better idea would be an unordered list. <ul><li style=”selected”>Web</li>…<li>Mail</li></ul>
  4. There are more attributes on the page without quote around them
  5. More out of date tags like <center>
  6. Tables to mark up the search. This is one of my pet hates in web design. Tables are for tabular data!!
  7. <br> is outdated in itself -a big company like Google should be using semantic HTML <br/>, but that isn’t even the issue here. There are multiple occurrences of two line breaks (<br/><br/>) being next to each other - these should be on their own.
  8. There are also a load of horrible mistakes that mean Google won’t validate. An example would be using & instead of & or not closing a <a> tag.

I remember reading an article in .net about accessibility and Google. It was an interview with one of Google’s disability gurus (who also happened to be visually impaired). He was adamant that Google take care to make sure screen readers can read Google’s pages. What now strikes me as odd is that he used the phrase “modern screen readers”. Google’s landing page isn’t even modern! Granted Google alt all their images, but that doesn’t excuse the long <span> menu which doesn’t provide any way of skipping past it. The screen reader on my machine, WebbIE (part of Thunder), reads out every single item in the span tag by default. Not nice.

The only thing that I could maybe forgive Google’s lacklustre homepage is that it renders perfectly even if CSS is disabled. That means that it can cater for audiences far and wide running 20,000 year old machines. Okay, I exaggerate, but why not have an alternative to the main page that handles older browsers.

Don’t get me wrong I’m no accessibility or web design guru, but common sense should tell Google to update the home page.

I might be making a bold statement by saying that Google is the be all and end all of the internet, so I won’t. I will say, however, that it would be nice to see one of the most visited pages on earth validate.


Be the first to leave a comment »

The Power of WordPress Themes

Jan 28th, 2008 by Alasdair | Web Design

Okay, I admit that WordPress template file structure annoys me, but it is pretty powerful (once you mess around with it a bit).>If you toggle between the stylesheets I have associated with this site then you can see a few other designs I use.

In Firefox: View->Page Style-> Select one.

I know they aren�t drastically different in structure, but I happen to like the way my page is laid out. So… :-p


Be the first to leave a comment »

CSS Hacks

Dec 14th, 2007 by Alasdair | CSS, Web Design

“But the fact remains that every browser out there has its quirks, and while problems should generally be dealt with by amending your design on a global basis, sometimes that’s not possible or practical” - .net mag.


I couldn’t disagree more. The fact is that browser standards will never improve if the attitude of web professionals is that hacks are ‘designed to cater for browser shortcomings’.

All that happens is that the web site becomes complex (with loads of horrible mark-up) and the vendor has to keep the rendering bug in order to make sure they don’t break old web sites.

There is a really good argument against using hacks on Digital Web by Peter-Paul Koch. He also writes and maintains the brilliant Quirksmode.org web site.


Be the first to leave a comment »

Google off / Google on…

Nov 24th, 2007 by Ally | Google, Internet, Web Design

imageIf this looks familiar then it’s a shame.

[if IE]> <link rel=”stylesheet” type=”text/css” href=”iehacks.css” /> <![endif]–>

For years Microsoft provided, knowingly and unwittingly (usually because of parsing errors/ conditional comments), the ability to ‘hack’ away at a web page to make it look right in Internet explorer.

In my opinion it is wrong to change the way the web works to suit a particular vendor, but it’s the norm and, admittedly, it does help solve a lot of problems (and I have used it).

Anyway, enough said about Microsoft, Google’s at it now! **[see note]

Continue Reading »


Be the first to leave a comment »

Acid 2 - Screenshots and Information

Oct 9th, 2007 by Alasdair | CSS, Internet, Web Design

I’ve been thinking about comparing all the major browsers in regards to the Acid 2 test, but I found this brilliant page on How to create that goes into a lot of detail about the acid 2 test and includes screenshots too.


Be the first to leave a comment »

CSS 3 - The Long Road to a Brighter Place

Sep 20th, 2007 by Ally | CSS, Web Design

In the past few years CSS has really come though and to not use it is frowned upon by peers, but the problem is that it isn’t implemented the same inside every browser. Some browsers render complex CSS perfectly and some perform pretty badly. The Acid 2 test is a pretty good indicator of how good the browser is in this department. You can see some comparisons on the Acid 2 test Wikipedia page.

Over six years in the making CSS 3 will help spice things up and make life easier, especially for multi-column based sites (like newspapers), but I can’t help but feel that it’s going to be at least 5 years before every browser is compatible… and by that I mean we’ll be waiting on IE.

Note: There is a nice web site that previews CSS 3 called CSS info.


Be the first to leave a comment »

CSS - Consistency

Sep 20th, 2007 by Ally | Web Design

Every product is different; some drinks are fizzier than others.  This is because there is no right answer and  it comes down to what the manufacturer thinks is best.  And browsers are no exception.

Cascading Style Sheets (CSS) simplifies web development in an arbitrary number of ways by reducing complexity and improving semantic structure, but the one thing that really!, really! bugs me about CSS is how some browsers have different and sometimes strange defaults.

This can cause problems down the line for developers, so the best way to get round this is to zero the defaults.  Yahoo developer have a very good solution for this called the “reset.css”

/*

Copyright (c) 2007, Yahoo! Inc. All rights reserved.

Code licensed under the BSD License:

http://developer.yahoo.net/yui/license.txt

version: 2.3.1

*/

body {color:#000;background:#FFF;}

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}

table{border-collapse:collapse;border-spacing:0;}

fieldset,img{border:0;}

address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}

li {list-style:none;}

caption,th {text-align:left;}

h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}

q:before,q:after{content:”;}

abbr,acronym {border:0;font-variant:normal;}

sup,sub {line-height:-1px;vertical-align: text-top;}

sub {vertical-align:text-bottom;}

input, textarea, select{font-family:inherit;font-size:inherit;font-weight:inherit;}

 

It would be nice to have someway of saying to the browser “Hey! I want to set everything to 0″.  It worries me that Microsoft might realize this and we’ll end up with some obscure Internet Explorer conditional comment to do it…

<!–[if IE]><style>document{ resetall:0;}</style><![endif]–>

*shudders* Standards are becoming more and more important and I’m pretty sure Microsoft won’t walk down that kind of road again, but hey! you never know.


Be the first to leave a comment »

Yahoo! Lvz Developers

Aug 12th, 2007 by Ally | Internet, PHP, Programming, Web Design

I don’t know about you, but when I discovered the Yahoo! developers section on their web site I was in a state of disbelief at how much stuff it had on it.  It takes ages to realise the depth that Yahoo have covered. 

The main areas they cover are JavaScript, Flash, .NET, PHP, Python and Ruby.

I particularly like the design patterns section of the site where Yahoo provide “optimal solutions to common problems within a specific context”.  Brilliant! 

By far the most useful section is YUI that provide utilities and controls for building rich interactive web applications… And its all open source!

In fact, the stimulation for this article has come from watching a video from Joe Hewitt (the co-founder of Firefox) demonstrating his iUi for the iPhone.  It basically uses similar principles to the Yahoo User Interface kit, but optimized for the iPhone (note: the iPhone, despite having a very good browser, has limitation, especially with mouse events).   it inspired my to take another look at Yahoo!s dev stuff. [Just as a side note: is anyone else excited about Facebook's acquisition of parakey.]

Anyway, I better get back to re-exploring the Yahoo! developers site.


Be the first to leave a comment »

Quake Wars Player Card for PHPBB and Forums

Aug 6th, 2007 by Ally | PHP, Programming, Web Design

This is the first player card (version 2, already!) for Enemy Territory: Quake Wars.

There are a heap of stats that can be included, so I’ve only selected a few.

The difference between this and the last version is that the last version produced an HTML output whereas this one produces an image output by using PHP to dynamically create the image.

This solves the biggest problem of using html, it can’t be used for forums.

There are many different themes and sizes, but here is an example of one:

Player Card

I’ve included the code needed to use it as your sig in PHPBB, if anyone wants to comment and show how to do it in other forums then please do.

You can find the ZIP and tutorial here.

And if anyone wants to host this on their site so others can link to it then that’s cool too, but please link back to me

Hopefully this will help folk get started.


Be the first to leave a comment »

Windows Live Product List

Jun 1st, 2007 by Ally | Windows Live

Is it just me or is it really hard to find a definitive list of all the Windows Live Products?

Browser-based

Desktop/Application-based

Still in the Labs / Pre beta


Be the first to leave a comment »