However, you would destroy the overview of your script so it is not advisable.
- Always put the text within " ".
In the next section you will learn why this would cause an error to your script.
- Capital letters are different from lowercase letters.
You should always remember that capital letters are different from lowercase letters.
Now consider this example:
document.write("Welcome to my world!!!");
The script in the example would produce this output on
document.write("Welcome to my world!!!<br>");
Enjoy your stay...<br>
The output from this example would look like this:
Welcome to my world!!!
Enjoy your stay...
An interesting aspect is that you can write all kinds of HTML tags to webpages with the document.write method.
On that page, there are 15 tables with 25 columns in each.
Each cell shows different mixtures of the basic colors red, green and blue.