<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Chapter 1, Example 3</title>
</head>
<body>
<code id="results"></code>
<script>
document.getElementById("results").innerHTML = "Hello World!";
</script>
</body>
</html>
Key source : Beginning JavaScript, 5th Edition (wrox)