QP School

Full Version: Exercise 0001 - Hello World in JavaScript within a HTML document
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In order to write content in HTML documents we will need the document.write() function.

As usual I will take "Hello, World!" as example.


Quote:<!DOCTYPE HTML>

<html>

<head>
    <title>Hello World</title>
</head>

<body>

    <script>
        document.write("Hello, World!");
    </script>

</body>

</html>