title: Creating an element with properties, using an object-literal
body: <p>Since version 1.4 of jQuery; you have been able to create an element using an object literal, defining the elements properties...</p>
  
  <pre><code>$("&lt;div /&gt;",
  {
      id: "test",
      name: "test",
      class: "test-class"
  });
  </code></pre>
  
  <p>On top of assigning a few properties to an element; I'd like to add some in-line styles. Is this possible, using the object literal?... I'm thingking something along the lines of:</p>
  
  <pre><code>$("&lt;div /&gt;",
  {
      id: "test",
      name: "test",
      class: "test-class",
      style: {
          width: "100px",
          height: "100px",
          background-color: "#fff"
      }
  });
  </code></pre>