I see people creating HTML elements in jQuery in two different ways:
$(\'\')
and
$(\' \')
<
No, it makes no difference at all, as long as the element definition is well-formed. The second style is simply an alternate syntax which can actually save keystrokes:
$(''); // XML-like syntax
$(''); // Well-formed HTML
$(''); // Malformed (no closing tag)