Any URL's added here will be added as
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div id="greeting"> <h1>Hello, world!</h1> <p>It's a lovely day in the neighborhood.</p> </div>
// Get the current element var currentNode = document.querySelector('#greeting'); // Logs the element and it's content into the console console.log(currentNode.outerHTML); // Replace the element currentNode.outerHTML = '<div id="salutations">' + '<h1>Hi, universe!</h1>' + '<p>The sun is always shining!</p>' + '</div>';
Also see: Tab Triggers