creating and appending elements

PHOTO EMBED

Wed Jan 19 2022 19:02:39 GMT+0000 (Coordinated Universal Time)

Saved by @shinesheray

let newParagraph = $("<p></p>").text("This is a new paragraph.");
// creates a new paragraph

$("body").append(newParagraph); // appends newParagraph to the end of the body element
content_copyCOPY