<SCRIPT> Tag & its Attribute

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.




CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz