11:18, Sunday, May 02, 2010 Kevin Bedward
HTML 5 is the next major version of HTML. It introduces a bunch of new elements. Fancy APIs for drawing graphics on screen, storing data offline, dragging and dropping, and more. In HTML 5, there is only one doctype. It is declared in the beginning of the page by doctype html. It simply tells the browser that it's dealing with an HTML-document.
The new era will also feature upgrades to CSS. CSS 3 builds upon the principles about styles, selectors and the cascade that we know so well from earlier versions of CSS. It adds loads of new features, including new selectors, pseudo-classes and properties. Using these new features it becomes a lot easier for us to set up your layout. New properties Kate! woohoo!.
One is background-size, which allows you to scale the background-image...the box expands as we add more content to it, the gradient background will scale as well. This is something that was not possible in CSS 2.1 without non-semantic markup and miscellaneous browser issues. Border-radius, applies rounded corners to the element. You could specify different values for each corner!! or choose to only round individual corners. Wow. - more on this as we do a byitsized review.
other articles page