HTML Tag <SCRIPT>

HTML Tag <SCRIPT>

<SCRIPT> Contains browser script code. Examples include JavaScript and VBScript. It is a good idea to place the actual script code within the comment tags so that browsers that don’t support the <SCRIPT> tag code can ignore it.

Attribute of <SCRIPT> Tag

LANGUAGE

Indicates the type of script.

<SCRIPT LANGUAGE="JavaScript">

Possible Values

Language name like javascript, vbscript etc.



TYPE

Indicates the MIME type of the script. This is an alternative to the langUAGE tag for declaring the type of scripting.

<SCRIPT type="text/javascript"> document.write ("<h2>Welcome to cs-tutorial.com</h2> ") </SCRIPT>

Possible Values

Content Type.




Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad