What is wrong with my code?

  1. Inserting Elements

it says Oops, try again. Make sure to use the .append() jQuery function to add your

to the body of your HTML document.

(document).ready(function() {
$("<p>I'm a paragraph!</p>").append($("body"));


First of all, you are missing a "$" before the document ready function. Second, your append syntax is off.
The correct syntax would be:

$("body").append("<p>I'm a paragraph</p>");


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.