Rendering JavaScript HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body >
<!-- H1 element will be create in body using Javascirpt -->
<script type="text/javascript">
var h1_tag = document.createElement("h1");
h1_tag.innerHTML = "H1 Generated with Javascirpt";
body_tag = document.getElementsByTagName('body')[0];
body_tag.appendChild(h1_tag);
</script>
</body>
</html> Copy Code
Pythonist