Wrapping Elements
wrap, wrapAll and unwrap change structure.
Example
$("p").wrap("<div class=\"box\"></div>");
$("span").wrapAll("<section></section>");
$("p").unwrap();Exercise
Wrap each.
$("p").("<div></div>")
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.