15
You can use this:
$('body').append('<div>footer</div>');
but also this:
$('<div>footer</div>').appendTo('body');
or this:
$('body').html($('body').html()+'<div>footer</div>');
Reference with differences here: http://api.jquery.com/appendTo/