// Create and add $('').text('Item').appendTo('ul'); // With attributes $('', { href: 'https://example.com', text: 'Click me', class: 'link' }).appendTo('nav'); // Clone existing element $('#template').clone().appendTo('#list');