Preview:
<!DOCTYPE html>
<html>

<head>
    <script>
        document.getElementById("testingID").innerHTML = "<b>Surprise!</b>";
    </script>
</head>

<body>
    <h1>JavaScript example</h1>
    <p>Here is some content that I would like to keep before the div</p>
    <div id="testingID"></div>
    <p>And here is some other content after the div section.</p>
</body>

</html>
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter