At the example of YouTube.
Their logo comes in fact from a big master image containing other graphical elements. However one can click on the logo which point to the root of the site. I'm researching their HTML but still not quite sure how they achieved that.
Could anyone please look at it and maybe explain it?