jQuery element constructors - which is the recommended way?
<p>When you create an element by passing HTML to jQuery, there's a number of formats you could use, for example:</p>

<pre><code>$("&lt;span&gt;").addClass("foo")
$("&lt;span class=\"foo\"&gt;&lt;/span&gt;")
</code></pre>

<p>etc...</p>

<p>Is there one style which works better than others?</p>
