You can also read our tutorial post on: Css Positioning
The Script tag takes two important attributes:
Next we are going to call a function document.write which writes a string into the HTML document. This function can be used to write text, HTML, or both. So the above code will produce the result below.
You can also read our tutorial post on: Pseudo elements
Whitespace and Line Breaks
Because you can use spaces, tabs, newlines freely in your program so you are free to format and indent your program in a neat and consistent way that makes the code easy to read and understand.
Semicolons are optional:
But when formatted in a single line as follows, the semicolons are required:
Note: It is a good programming practice to use semicolons.
You can also read our tutorial post on: Css Visibility
- Any text between the characters /* and */ is treated as a comment. This may span multiple lines.
This blog has a chat box that is meant for interaction, so you guys should always feel free to interact there and share ideas, or you can also interact in the comment box below.
Like our facebook page and subscribe with us to get our tutorial posts delivered directly to your emails. Also share this tutorial post on the various social media platforms available.