title: In html5 to set a checkbox as checked, should I simply use checked (as a property) or checked="checked" ( as an attribute)?
body: <p>Currently in our plugin we were setting the checkboxes as checked by setting</p>
  
  <pre><code>&lt;input type="checkbox" checked="checked" /&gt;
  </code></pre>
  
  <p>This was to preserve xhtml compatibility. I'm more used to setting checked as a property</p>
  
  <pre><code>&lt;input type="checkbox" checked /&gt;
  </code></pre>
  
  <p>What is the correct way to proceed in html5?Should we still care about xhtml compatibility?</p>