// Creating and adding an element to the page at the same time.
$( "ul" ).append( "<li>list item</li>" );