views:

48

answers:

2

Like its style.css has body {background:transparent} So am i suppose to keep background transparent always to make good html5 website ? Are these default ? Should i override them as per my website ?

+1  A: 

So am i suppose to keep background transparent always to make good html5 website ?

No.

Are these default ?

No.

Should i override them as per my website ?

Yes.

Boilerplate code definition from wikipedia (more eloquent than i would be), and an example and short description of a reset stylesheet.

NimChimpsky
Hey Nim...Thanks for your reply. Can u please elaborate a bit what exactly boilerplate is ? I mean what they mean by css reset ? And for example, what background:transparent means in style.css ?
Jigar Shah
ammended answer follow the links.
NimChimpsky
+1  A: 

The idea of the boilerplate is to give a base set of code which you won't need to change - as these tags will always be used on every site. Of course there will be exceptions to this, as you may use a different javaScript library or not agree with how Paul Irish targets Internet Explorer (see his article and comments on this).

If you are starting to explore HTML5 and CSS3 then this is a fantastic starting point but you should always adapt (and ideally form your own boilerplate tailored to your sites and coding style) the core code as you learn and start to create HTML5 sites.

In the CSS, the code included is for a CSS reset, based on resets mentioned in the code comments. So where the body background is transparent this is to make sure it is the same in every browser. There is an empty section in the CSS for your own styles:

200. /* Primary Styles
201.    Author:
202. */

So if you wanted a specific background colour you can state it here, along with any other styles you add.

graham