Manipulating the DOM

$("#demo").html("Hello, jQuery!");
$("#myLink").attr("href", "https://example.com");
$("#box").addClass("highlight");
$("#box").removeClass("highlight");
$("#list").append("<li>New Item</li>");
$("#list").prepend("<li>First Item</li>");
$("#element").remove();
$("#element").empty(); // Removes content but keeps the element