// Create a new element var s = document.createElement(“strong”); // Find the first paragraph var p = document.getElementsByTagName(“p”)[0]; // Wrap the contents of the

in the element while ( p.firstChild ) { s.appendChild( p.firstChild ); } // Put the element (containing the old

contents) // back into the

element p.appendChild( s );