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.




CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad