The <script> tag is most important for dynamic page. It is
use for adding capability of scripting language in HTML
document. Scripting language is use for client-side validation. With the help of
script's event, you can link form controls from script for providing graphical
user interface.
User can not see the code of script. You can put it any where in HTML document
either head or body. You can put script code either within document or outside
the document.
| Attributes | Value | Description |
| async | string | Specify script execute asynchronously |
| src | URL | Address of external script file. |
| defer | defer | script will be execute after loading page. |
| type | MIME type "text/javascript" "text/vbscript" etc |
define the type of script, |
| <script type=""> scripting code </script > |
|
<!doctype html > <html ><head> <title>Document title.</title> <script type="text/javascript"> function multi() { alert("Script embed page."); }</script> </head> <body onload="multi()"> <h1>script tag Example.</h1> <p><b>Implementation of <script > in HTML5.</b></p> <p><strong>Output of script code.</strong></p> <script type="text/javascript"> document.writeln("Bharat Singh"); </script></body> </html> |

The <output> tag is available in both HTML5. It is not present in HTML4.01.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.