updated with some style elements taken from the html5 sdk.