Suppose we want to write "hello students in js tutorial"
document.write and one string will be passed within a double quotes "hello students in js tutorial" when we open this script.html file in browsers, we will get output as hello students in js tutorial.
document.write("Welcome Students in JS Tutorial");
Welcome Students in JS Tutorial
Script tag Attributes
Script tag can be incorporate with following attributes:
language(this is deprecated)
* type(this is no longer required on new browsers)
* src(which is used URL specification of an external JS file)