<!doctype html>
<head>
<title>JS Document Methods Example</title>
</head>
<body>
<h3>Document Methods Example</h3>
<p id="demo">It Will change</p>
<script>
// Open document
document.open();
// writing
document.write("Hello" +"<br>");
document.getElementById("demo").innerHTML = "Set by ID";
</script>
</body>
</html>