title: Styling the `<html>` element in CSS?
body: <p>Can anyone explain to me why can we style the element <code>html</code>?<br>
  What are differences between it and <code>body</code>?</p>
  
  <p>I usually see tutorials and multiple websites using <code>body</code> and never <code>html</code>, I only found about it when using <a href="http://developer.yahoo.com/yui/3/cssreset/" rel="noreferrer">YUI 3: CSS Reset</a> since changing the background in <code>body</code> didn't work.  </p>
  
  <p><em>Edit</em>: <strike>Actually, I still haven't found the problem regarding that, when I add the reset.css the background gets white, when I remove it returns to normal. Yet Chrome inspector says that the background is the normal one. Btw, this is getting off topic. :p</strike><br>
  <em>Edit 2</em>: The culprit was the doctype. Somehow it made the <code>html</code> style in the css-reset render after the <code>body</code> style in my stylesheet.  Maybe I should open a question regarding this.</p>
  
  <p>Doctype: <code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;</code></p>