Write HTML tags in JavaScript

Example

<html>
<head>
    <title>Write HTML Tags</title>
</head>
<body>
    <script type="text/javascript">
        document.write("<h1>H1 heading!</h1>");
        document.write("<h2>H2 heading!</h2>");
        document.write("<h3>H3 heading!</h3>");
        document.write("<h4>H4 heading!</h4>");
        document.write("<h5>H5 heading!</h5>");
        document.write("<h6>H6 heading!</h6>");
    </script>
</body>
</html>

Run it...   »

Example Result