Week 1: Exercise 2 (p.31-32)

Writing text: Here we are using the Javascript document.write(); function to insert some text and code into our HTML.

Notes:


See the code:

<-- Insert some text and code into our HTML page -->
<script>
   document.write("<p>Hello world!</p>");
</script>